Give attachments the same priority as other avatars in BestAvatarResponsiveness

policy
soprefactor
Melanie 2010-06-09 17:00:24 +01:00
parent 008e840cf2
commit 1be53b58a7
1 changed files with 4 additions and 1 deletions

View File

@ -210,7 +210,10 @@ 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;
} }