Ensure the remembered velocity is zero when physical is turned off on a prim. Without this the velocity gets sent to the client and the prim appears to move.

Fixes Mantis #3303
0.6.5-rc1
idb 2009-03-20 15:59:11 +00:00
parent 78a19528c6
commit aab38c2cb2
1 changed files with 5 additions and 1 deletions

View File

@ -2264,7 +2264,11 @@ namespace OpenSim.Region.Physics.OdePlugin
public override bool IsPhysical public override bool IsPhysical
{ {
get { return m_isphysical; } get { return m_isphysical; }
set { m_isphysical = value; } set {
m_isphysical = value;
if (!m_isphysical) // Zero the remembered last velocity
m_lastVelocity = new PhysicsVector(0.0f, 0.0f, 0.0f);
}
} }
public void setPrimForRemoval() public void setPrimForRemoval()