diff options
author | Teravus Ovares | 2008-06-06 08:03:12 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-06-06 08:03:12 +0000 |
commit | e9a444917a8eb92b5efe6003eb83d3a315a5968b (patch) | |
tree | 2eeb3965f2d8bb4cac5959636737324178d8393c /OpenSim/Region/Environment | |
parent | Fixed a build problem with r5019 (Mikems patch) (diff) | |
download | opensim-SC_OLD-e9a444917a8eb92b5efe6003eb83d3a315a5968b.zip opensim-SC_OLD-e9a444917a8eb92b5efe6003eb83d3a315a5968b.tar.gz opensim-SC_OLD-e9a444917a8eb92b5efe6003eb83d3a315a5968b.tar.bz2 opensim-SC_OLD-e9a444917a8eb92b5efe6003eb83d3a315a5968b.tar.xz |
Fixes scale property with regards to the physics engine.
Diffstat (limited to '')
-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 | } |