aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneGraph.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index 8a05772..0098add 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -306,7 +306,8 @@ namespace OpenSim.Region.Framework.Scenes
306 if (rot != null) 306 if (rot != null)
307 sceneObject.UpdateGroupRotationR((Quaternion)rot); 307 sceneObject.UpdateGroupRotationR((Quaternion)rot);
308 308
309 if (sceneObject.RootPart.PhysActor != null && sceneObject.RootPart.PhysActor.IsPhysical && vel != Vector3.Zero) 309 PhysicsActor pa = sceneObject.RootPart.PhysActor;
310 if (pa != null && pa.IsPhysical && vel != Vector3.Zero)
310 { 311 {
311 sceneObject.RootPart.ApplyImpulse((vel * sceneObject.GetMass()), false); 312 sceneObject.RootPart.ApplyImpulse((vel * sceneObject.GetMass()), false);
312 sceneObject.Velocity = vel; 313 sceneObject.Velocity = vel;