Modify avatar responsiveness policy to send roots before children

avinationmerge
Melanie Thielker 2010-06-20 21:38:06 +02:00
parent 797767da57
commit 13a0b65a80
1 changed files with 11 additions and 4 deletions

View File

@ -207,13 +207,20 @@ namespace OpenSim.Region.Framework.Scenes
if (p < 0.0f) priority *= 2.0; if (p < 0.0f) priority *= 2.0;
if (entity is SceneObjectPart) if (entity is SceneObjectPart)
{
if (((SceneObjectPart)entity).ParentGroup.RootPart.IsAttachment)
{
priority = 1.0;
}
else
{ {
PhysicsActor physActor = ((SceneObjectPart)entity).ParentGroup.RootPart.PhysActor; PhysicsActor physActor = ((SceneObjectPart)entity).ParentGroup.RootPart.PhysActor;
if (physActor == null || !physActor.IsPhysical) if (physActor == null || !physActor.IsPhysical)
priority += 100; priority += 100;
}
if (((SceneObjectPart)entity).ParentGroup.RootPart.IsAttachment) if (((SceneObjectPart)entity).ParentGroup.RootPart != (SceneObjectPart)entity)
priority = 1.0; priority +=1;
} }
return priority; return priority;
} }