diff options
Diffstat (limited to '')
-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 8cd0160..7c3746b 100644 --- a/OpenSim/Region/Framework/Scenes/Prioritizer.cs +++ b/OpenSim/Region/Framework/Scenes/Prioritizer.cs | |||
@@ -186,9 +186,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
186 | return 0.0; | 186 | return 0.0; |
187 | 187 | ||
188 | // Use group position for child prims | 188 | // Use group position for child prims |
189 | Vector3 entityPos = entity.AbsolutePosition; | 189 | Vector3 entityPos; |
190 | if (entity is SceneObjectPart) | 190 | if (entity is SceneObjectPart) |
191 | entityPos = m_scene.GetGroupByPrim(entity.LocalId).AbsolutePosition; | 191 | entityPos = ((SceneObjectPart)entity).ParentGroup.AbsolutePosition; |
192 | else | 192 | else |
193 | entityPos = entity.AbsolutePosition; | 193 | entityPos = entity.AbsolutePosition; |
194 | 194 | ||