From e9a444917a8eb92b5efe6003eb83d3a315a5968b Mon Sep 17 00:00:00 2001
From: Teravus Ovares
Date: Fri, 6 Jun 2008 08:03:12 +0000
Subject: Fixes scale property with regards to the physics engine.

---
 OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 12 ++++++++++++
 1 file changed, 12 insertions(+)

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
             {
                 StoreUndoState();
                 m_shape.Scale = value;
+
+                if (PhysActor != null && m_parentGroup != null)
+                {
+                    if (m_parentGroup.Scene != null)
+                    {
+                        if (m_parentGroup.Scene.PhysicsScene != null)
+                        {
+                            PhysActor.Size = new PhysicsVector(m_shape.Scale.X, m_shape.Scale.Y, m_shape.Scale.Z);
+                            m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor);
+                        }
+                    }
+                }
                 TriggerScriptChangedEvent(Changed.SCALE);
             }
         }
-- 
cgit v1.1