aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODEPrim.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
index 690e9d3..aa80a84 100644
--- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
+++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
@@ -127,6 +127,18 @@ namespace OpenSim.Region.Physics.OdePlugin
127 m_targetSpace = _parent_scene.space; 127 m_targetSpace = _parent_scene.space;
128 } 128 }
129 m_primName = primName; 129 m_primName = primName;
130 if (mesh != null)
131 {
132 }
133 else
134 {
135 if (_parent_scene.needsMeshing(_pbs))
136 {
137 // Don't need to re-enable body.. it's done in SetMesh
138 mesh = _parent_scene.mesher.CreateMesh(m_primName, _pbs, _size);
139 // createmesh returns null when it's a shape that isn't a cube.
140 }
141 }
130 142
131 lock (OdeScene.OdeLock) 143 lock (OdeScene.OdeLock)
132 { 144 {