diff options
author | meta7 | 2010-08-08 17:31:29 -0700 |
---|---|---|
committer | meta7 | 2010-08-08 17:31:29 -0700 |
commit | 603b3a1606396e355416eae838f6bdaa5051bf1f (patch) | |
tree | 264bd5aa8ea4b1f28d96ed8169158eb09d410e9a | |
parent | Add debug messages to attachment receiving and cowardly refuse to create (diff) | |
download | opensim-SC-603b3a1606396e355416eae838f6bdaa5051bf1f.zip opensim-SC-603b3a1606396e355416eae838f6bdaa5051bf1f.tar.gz opensim-SC-603b3a1606396e355416eae838f6bdaa5051bf1f.tar.bz2 opensim-SC-603b3a1606396e355416eae838f6bdaa5051bf1f.tar.xz |
Fix minimap issues. This addresses mantis #228.
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneGraph.cs | 23 |
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 | ||