diff options
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index c5f20da..5dbf3b7 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -2335,8 +2335,11 @@ if (m_shape != null) { | |||
2335 | 2335 | ||
2336 | public void SetPhysicsAxisRotation() | 2336 | public void SetPhysicsAxisRotation() |
2337 | { | 2337 | { |
2338 | PhysActor.LockAngularMotion(RotationAxis); | 2338 | if (PhysActor != null) |
2339 | m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor); | 2339 | { |
2340 | PhysActor.LockAngularMotion(RotationAxis); | ||
2341 | m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor); | ||
2342 | } | ||
2340 | } | 2343 | } |
2341 | 2344 | ||
2342 | public void SetScriptEvents(UUID scriptid, int events) | 2345 | public void SetScriptEvents(UUID scriptid, int events) |