aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODEPrim.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
index 6ade638..507030b 100644
--- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
+++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
@@ -882,8 +882,11 @@ namespace OpenSim.Region.Physics.OdePlugin
882 } 882 }
883 if (m_isphysical) 883 if (m_isphysical)
884 { 884 {
885 d.BodySetLinearVel(Body, 0f, 0f, 0f); 885 if (Body != IntPtr.Zero)
886 enableBodySoft(); 886 {
887 d.BodySetLinearVel(Body, 0f, 0f, 0f);
888 enableBodySoft();
889 }
887 } 890 }
888 } 891 }
889 892