Give attachments the same priority as other avatars in BestAvatarResponsiveness

policy
avinationmerge
Melanie 2010-06-09 17:00:24 +01:00
parent 6b2d2413f7
commit 30d3ea3d4b
1 changed files with 4 additions and 1 deletions

View File

@ -211,6 +211,9 @@ namespace OpenSim.Region.Framework.Scenes
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)
priority = 1.0;
} }
return priority; return priority;
} }