* 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.
parent
e0b821f875
commit
c0f631dbdb
|
@ -881,11 +881,14 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags);
|
||||
}
|
||||
if (m_isphysical)
|
||||
{
|
||||
if (Body != IntPtr.Zero)
|
||||
{
|
||||
d.BodySetLinearVel(Body, 0f, 0f, 0f);
|
||||
enableBodySoft();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
resetCollisionAccounting();
|
||||
m_isSelected = m_taintselected;
|
||||
|
|
Loading…
Reference in New Issue