diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index 17552d2532..9e9c36f3ff 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs @@ -2099,7 +2099,10 @@ Console.WriteLine(" JointCreateFixed"); // Re creates body on size. // EnableBody also does setMass() enableBody(); - d.BodyEnable(Body); + if (Body != IntPtr.Zero) + { + d.BodyEnable(Body); + } } _parent_scene.geom_name_map[prim_geom] = oldname;