diff options
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin/OdePlugin.cs')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index 4bd36aa..8b8aac6 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | |||
@@ -1086,9 +1086,12 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1086 | // Construction of new prim | 1086 | // Construction of new prim |
1087 | if (this._parent_scene.needsMeshing(_pbs)) | 1087 | if (this._parent_scene.needsMeshing(_pbs)) |
1088 | { | 1088 | { |
1089 | 1089 | ||
1090 | |||
1090 | // Don't need to re-enable body.. it's done in SetMesh | 1091 | // Don't need to re-enable body.. it's done in SetMesh |
1091 | Mesh mesh = Meshmerizer.CreateMesh(oldname, _pbs, _size); | 1092 | Mesh mesh = Meshmerizer.CreateMesh(oldname, _pbs, _size); |
1093 | // createmesh returns null when it's a shape that isn't a cube. | ||
1094 | if (mesh != null) | ||
1092 | setMesh(_parent_scene, mesh); | 1095 | setMesh(_parent_scene, mesh); |
1093 | } else { | 1096 | } else { |
1094 | prim_geom = d.CreateBox(_parent_scene.space, _size.X, _size.Y, _size.Z); | 1097 | prim_geom = d.CreateBox(_parent_scene.space, _size.X, _size.Y, _size.Z); |