Modify avatar responsiveness policy to send roots before children
parent
797767da57
commit
13a0b65a80
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue