aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 3d6a4c8..d7e2c46 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -867,7 +867,8 @@ namespace OpenSim.Region.Framework.Scenes
867 867
868 if (ParentGroup != null && !ParentGroup.IsDeleted) 868 if (ParentGroup != null && !ParentGroup.IsDeleted)
869 { 869 {
870 ParentGroup.InvalidBoundsRadius(); 870 if((oldpos - m_offsetPosition).LengthSquared() > 1.0f)
871 ParentGroup.InvalidBoundsRadius();
871 872
872 PhysicsActor actor = PhysActor; 873 PhysicsActor actor = PhysActor;
873 if (ParentID != 0 && actor != null) 874 if (ParentID != 0 && actor != null)
@@ -1165,9 +1166,9 @@ namespace OpenSim.Region.Framework.Scenes
1165 { 1166 {
1166 if (m_shape != null) 1167 if (m_shape != null)
1167 { 1168 {
1168 1169 Vector3 oldscale = m_shape.Scale;
1169 m_shape.Scale = value; 1170 m_shape.Scale = value;
1170 if (ParentGroup != null) 1171 if (ParentGroup != null && ((value - oldscale).LengthSquared() >1.0f))
1171 ParentGroup.InvalidBoundsRadius(); 1172 ParentGroup.InvalidBoundsRadius();
1172 PhysicsActor actor = PhysActor; 1173 PhysicsActor actor = PhysActor;
1173 if (actor != null) 1174 if (actor != null)