diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Prioritizer.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Prioritizer.cs | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Prioritizer.cs b/OpenSim/Region/Framework/Scenes/Prioritizer.cs index de3c360..8cd0160 100644 --- a/OpenSim/Region/Framework/Scenes/Prioritizer.cs +++ b/OpenSim/Region/Framework/Scenes/Prioritizer.cs | |||
@@ -211,12 +211,19 @@ namespace OpenSim.Region.Framework.Scenes | |||
211 | 211 | ||
212 | if (entity is SceneObjectPart) | 212 | if (entity is SceneObjectPart) |
213 | { | 213 | { |
214 | PhysicsActor physActor = ((SceneObjectPart)entity).ParentGroup.RootPart.PhysActor; | ||
215 | if (physActor == null || !physActor.IsPhysical) | ||
216 | priority += 100; | ||
217 | |||
218 | if (((SceneObjectPart)entity).ParentGroup.RootPart.IsAttachment) | 214 | if (((SceneObjectPart)entity).ParentGroup.RootPart.IsAttachment) |
215 | { | ||
219 | priority = 1.0; | 216 | priority = 1.0; |
217 | } | ||
218 | else | ||
219 | { | ||
220 | PhysicsActor physActor = ((SceneObjectPart)entity).ParentGroup.RootPart.PhysActor; | ||
221 | if (physActor == null || !physActor.IsPhysical) | ||
222 | priority += 100; | ||
223 | } | ||
224 | |||
225 | if (((SceneObjectPart)entity).ParentGroup.RootPart != (SceneObjectPart)entity) | ||
226 | priority +=1; | ||
220 | } | 227 | } |
221 | return priority; | 228 | return priority; |
222 | } | 229 | } |