aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneGraph.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneGraph.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs23
1 files changed, 2 insertions, 21 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index 5acc227..94ec534 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -228,27 +228,8 @@ namespace OpenSim.Region.Framework.Scenes
228 if (sp.IsChildAgent) 228 if (sp.IsChildAgent)
229 return; 229 return;
230 230
231 if (sp.ParentID != 0) 231 coarseLocations.Add(sp.AbsolutePosition);
232 { 232 avatarUUIDs.Add(sp.UUID);
233 // sitting avatar
234 SceneObjectPart sop = m_parentScene.GetSceneObjectPart(sp.ParentID);
235 if (sop != null)
236 {
237 coarseLocations.Add(sop.AbsolutePosition + sp.AbsolutePosition);
238 avatarUUIDs.Add(sp.UUID);
239 }
240 else
241 {
242 // we can't find the parent.. ! arg!
243 coarseLocations.Add(sp.AbsolutePosition);
244 avatarUUIDs.Add(sp.UUID);
245 }
246 }
247 else
248 {
249 coarseLocations.Add(sp.AbsolutePosition);
250 avatarUUIDs.Add(sp.UUID);
251 }
252 } 233 }
253 } 234 }
254 235