diff options
author | idb | 2009-03-20 15:59:11 +0000 |
---|---|---|
committer | idb | 2009-03-20 15:59:11 +0000 |
commit | aab38c2cb2a00f89b6fd796b5e1d58a8ee1a4305 (patch) | |
tree | e6cdd6918b17ad6e6846a56574fdc258b1547715 /OpenSim/Region/Physics | |
parent | Change DropObject to public. Fixes Mantis #3314 (diff) | |
download | opensim-SC_OLD-aab38c2cb2a00f89b6fd796b5e1d58a8ee1a4305.zip opensim-SC_OLD-aab38c2cb2a00f89b6fd796b5e1d58a8ee1a4305.tar.gz opensim-SC_OLD-aab38c2cb2a00f89b6fd796b5e1d58a8ee1a4305.tar.bz2 opensim-SC_OLD-aab38c2cb2a00f89b6fd796b5e1d58a8ee1a4305.tar.xz |
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
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index 2046ff9..e42c711 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | |||
@@ -2264,7 +2264,11 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2264 | public override bool IsPhysical | 2264 | public override bool IsPhysical |
2265 | { | 2265 | { |
2266 | get { return m_isphysical; } | 2266 | get { return m_isphysical; } |
2267 | set { m_isphysical = value; } | 2267 | set { |
2268 | m_isphysical = value; | ||
2269 | if (!m_isphysical) // Zero the remembered last velocity | ||
2270 | m_lastVelocity = new PhysicsVector(0.0f, 0.0f, 0.0f); | ||
2271 | } | ||
2268 | } | 2272 | } |
2269 | 2273 | ||
2270 | public void setPrimForRemoval() | 2274 | public void setPrimForRemoval() |