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

@ -208,12 +208,19 @@ namespace OpenSim.Region.Framework.Scenes
if (entity is SceneObjectPart)
{
PhysicsActor physActor = ((SceneObjectPart)entity).ParentGroup.RootPart.PhysActor;
if (physActor == null || !physActor.IsPhysical)
priority += 100;
if (((SceneObjectPart)entity).ParentGroup.RootPart.IsAttachment)
{
priority = 1.0;
}
else
{
PhysicsActor physActor = ((SceneObjectPart)entity).ParentGroup.RootPart.PhysActor;
if (physActor == null || !physActor.IsPhysical)
priority += 100;
}
if (((SceneObjectPart)entity).ParentGroup.RootPart != (SceneObjectPart)entity)
priority +=1;
}
return priority;
}