diff options
Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/careminster into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Prioritizer.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Prioritizer.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Prioritizer.cs b/OpenSim/Region/Framework/Scenes/Prioritizer.cs index c6db7af..145f9ed 100644 --- a/OpenSim/Region/Framework/Scenes/Prioritizer.cs +++ b/OpenSim/Region/Framework/Scenes/Prioritizer.cs | |||
@@ -197,9 +197,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
197 | return 0.0; | 197 | return 0.0; |
198 | 198 | ||
199 | // Use group position for child prims | 199 | // Use group position for child prims |
200 | Vector3 entityPos = entity.AbsolutePosition; | 200 | Vector3 entityPos; |
201 | if (entity is SceneObjectPart) | 201 | if (entity is SceneObjectPart) |
202 | entityPos = m_scene.GetGroupByPrim(entity.LocalId).AbsolutePosition; | 202 | entityPos = ((SceneObjectPart)entity).ParentGroup.AbsolutePosition; |
203 | else | 203 | else |
204 | entityPos = entity.AbsolutePosition; | 204 | entityPos = entity.AbsolutePosition; |
205 | 205 | ||