aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Prioritizer.cs
diff options
context:
space:
mode:
authorTom Grimshaw2010-06-20 14:45:36 -0700
committerTom Grimshaw2010-06-20 14:45:36 -0700
commit33d05ef554c4cbbdfa8c744a0ac2c23a0683ad08 (patch)
treefb2c737c93f61f686ee5eaef0b10eb615e1f7a6f /OpenSim/Region/Framework/Scenes/Prioritizer.cs
parentUpdate all clients sitting on a linkset if a child prim is moved. This preven... (diff)
parentModify avatar responsiveness policy to send roots before children (diff)
downloadopensim-SC-33d05ef554c4cbbdfa8c744a0ac2c23a0683ad08.zip
opensim-SC-33d05ef554c4cbbdfa8c744a0ac2c23a0683ad08.tar.gz
opensim-SC-33d05ef554c4cbbdfa8c744a0ac2c23a0683ad08.tar.bz2
opensim-SC-33d05ef554c4cbbdfa8c744a0ac2c23a0683ad08.tar.xz
Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/careminster into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Prioritizer.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Prioritizer.cs15
1 files changed, 11 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Prioritizer.cs b/OpenSim/Region/Framework/Scenes/Prioritizer.cs
index 7b7677b..b95b5f2 100644
--- a/OpenSim/Region/Framework/Scenes/Prioritizer.cs
+++ b/OpenSim/Region/Framework/Scenes/Prioritizer.cs
@@ -208,12 +208,19 @@ namespace OpenSim.Region.Framework.Scenes
208 208
209 if (entity is SceneObjectPart) 209 if (entity is SceneObjectPart)
210 { 210 {
211 PhysicsActor physActor = ((SceneObjectPart)entity).ParentGroup.RootPart.PhysActor;
212 if (physActor == null || !physActor.IsPhysical)
213 priority += 100;
214
215 if (((SceneObjectPart)entity).ParentGroup.RootPart.IsAttachment) 211 if (((SceneObjectPart)entity).ParentGroup.RootPart.IsAttachment)
212 {
216 priority = 1.0; 213 priority = 1.0;
214 }
215 else
216 {
217 PhysicsActor physActor = ((SceneObjectPart)entity).ParentGroup.RootPart.PhysActor;
218 if (physActor == null || !physActor.IsPhysical)
219 priority += 100;
220 }
221
222 if (((SceneObjectPart)entity).ParentGroup.RootPart != (SceneObjectPart)entity)
223 priority +=1;
217 } 224 }
218 return priority; 225 return priority;
219 } 226 }