diff options
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 4614709..e9d4c66 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -785,9 +785,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
785 | new PhysicsVector(Scale.X, Scale.Y, Scale.Z), | 785 | new PhysicsVector(Scale.X, Scale.Y, Scale.Z), |
786 | new Quaternion(RotationOffset.W, RotationOffset.X, | 786 | new Quaternion(RotationOffset.W, RotationOffset.X, |
787 | RotationOffset.Y, RotationOffset.Z), RigidBody); | 787 | RotationOffset.Y, RotationOffset.Z), RigidBody); |
788 | PhysActor.LocalID = LocalId; | 788 | |
789 | 789 | // Basic Physics returns null.. joy joy joy. | |
790 | DoPhysicsPropertyUpdate(RigidBody, true); | 790 | if (PhysActor != null) |
791 | { | ||
792 | PhysActor.LocalID = LocalId; | ||
793 | DoPhysicsPropertyUpdate(RigidBody, true); | ||
794 | } | ||
791 | } | 795 | } |
792 | } | 796 | } |
793 | 797 | ||