aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
authorUbitUmarov2016-07-07 00:16:25 +0100
committerUbitUmarov2016-07-07 00:16:25 +0100
commit4119e60c0ce56ea1dab6d797b3c9f2a91d3d3f9e (patch)
treeb7503f1746fd7ff46cc3ef17e40b2116de5c70ae /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
parentlet RePrioritization also work on child agents (diff)
downloadopensim-SC-4119e60c0ce56ea1dab6d797b3c9f2a91d3d3f9e.zip
opensim-SC-4119e60c0ce56ea1dab6d797b3c9f2a91d3d3f9e.tar.gz
opensim-SC-4119e60c0ce56ea1dab6d797b3c9f2a91d3d3f9e.tar.bz2
opensim-SC-4119e60c0ce56ea1dab6d797b3c9f2a91d3d3f9e.tar.xz
avoid InvalidBoundsRadius() calls caused by small changes
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-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)