mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
* While I couldn't reproduce it, I was able to see how it *might* happen, so therefore; fix to: 0001058: Physics crash when changing Type of Prim intersecting with ground.
This commit is contained in:
@@ -882,8 +882,11 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
}
|
||||
if (m_isphysical)
|
||||
{
|
||||
d.BodySetLinearVel(Body, 0f, 0f, 0f);
|
||||
enableBodySoft();
|
||||
if (Body != IntPtr.Zero)
|
||||
{
|
||||
d.BodySetLinearVel(Body, 0f, 0f, 0f);
|
||||
enableBodySoft();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user