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 #33030.6.5-rc1
parent
78a19528c6
commit
aab38c2cb2
|
@ -2264,7 +2264,11 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
public override bool 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()
|
||||
|
|
Loading…
Reference in New Issue