diff options
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index b0e9a91..8459dab 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | |||
@@ -2158,7 +2158,10 @@ Console.WriteLine(" JointCreateFixed"); | |||
2158 | // Re creates body on size. | 2158 | // Re creates body on size. |
2159 | // EnableBody also does setMass() | 2159 | // EnableBody also does setMass() |
2160 | enableBody(); | 2160 | enableBody(); |
2161 | d.BodyEnable(Body); | 2161 | if (Body != IntPtr.Zero) |
2162 | { | ||
2163 | d.BodyEnable(Body); | ||
2164 | } | ||
2162 | } | 2165 | } |
2163 | _parent_scene.geom_name_map[prim_geom] = oldname; | 2166 | _parent_scene.geom_name_map[prim_geom] = oldname; |
2164 | 2167 | ||