aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Prioritizer.cs
diff options
context:
space:
mode:
authorMelanie2010-06-09 17:00:24 +0100
committerMelanie2010-06-09 17:00:24 +0100
commit30d3ea3d4be1bed3001e2bda5890cce183c4f388 (patch)
tree1baf61504ae5957b282c0f2fa033465eb91cd6be /OpenSim/Region/Framework/Scenes/Prioritizer.cs
parentMerge branch 'master' into careminster-presence-refactor (diff)
downloadopensim-SC-30d3ea3d4be1bed3001e2bda5890cce183c4f388.zip
opensim-SC-30d3ea3d4be1bed3001e2bda5890cce183c4f388.tar.gz
opensim-SC-30d3ea3d4be1bed3001e2bda5890cce183c4f388.tar.bz2
opensim-SC-30d3ea3d4be1bed3001e2bda5890cce183c4f388.tar.xz
Give attachments the same priority as other avatars in BestAvatarResponsiveness
policy
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Prioritizer.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Prioritizer.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Prioritizer.cs b/OpenSim/Region/Framework/Scenes/Prioritizer.cs
index 4780cdd..7b7677b 100644
--- a/OpenSim/Region/Framework/Scenes/Prioritizer.cs
+++ b/OpenSim/Region/Framework/Scenes/Prioritizer.cs
@@ -210,7 +210,10 @@ namespace OpenSim.Region.Framework.Scenes
210 { 210 {
211 PhysicsActor physActor = ((SceneObjectPart)entity).ParentGroup.RootPart.PhysActor; 211 PhysicsActor physActor = ((SceneObjectPart)entity).ParentGroup.RootPart.PhysActor;
212 if (physActor == null || !physActor.IsPhysical) 212 if (physActor == null || !physActor.IsPhysical)
213 priority+=100; 213 priority += 100;
214
215 if (((SceneObjectPart)entity).ParentGroup.RootPart.IsAttachment)
216 priority = 1.0;
214 } 217 }
215 return priority; 218 return priority;
216 } 219 }