diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 532d003..2a9ad0a 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -734,6 +734,18 @@ namespace OpenSim.Region.Environment.Scenes | |||
734 | { | 734 | { |
735 | StoreUndoState(); | 735 | StoreUndoState(); |
736 | m_shape.Scale = value; | 736 | m_shape.Scale = value; |
737 | |||
738 | if (PhysActor != null && m_parentGroup != null) | ||
739 | { | ||
740 | if (m_parentGroup.Scene != null) | ||
741 | { | ||
742 | if (m_parentGroup.Scene.PhysicsScene != null) | ||
743 | { | ||
744 | PhysActor.Size = new PhysicsVector(m_shape.Scale.X, m_shape.Scale.Y, m_shape.Scale.Z); | ||
745 | m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor); | ||
746 | } | ||
747 | } | ||
748 | } | ||
737 | TriggerScriptChangedEvent(Changed.SCALE); | 749 | TriggerScriptChangedEvent(Changed.SCALE); |
738 | } | 750 | } |
739 | } | 751 | } |