diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index a7eb0b7..4148f9b 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -426,14 +426,15 @@ namespace OpenSim.Region.Environment.Scenes | |||
426 | } | 426 | } |
427 | if (IsAttachment) | 427 | if (IsAttachment) |
428 | { | 428 | { |
429 | if (m_parentGroup != null && m_parentGroup.RootPart != null) | 429 | // if (m_parentGroup != null && m_parentGroup.RootPart != null) |
430 | { | 430 | // { |
431 | ScenePresence sp = m_parentGroup.Scene.GetScenePresence(m_parentGroup.RootPart.AttachedAvatar); | 431 | // ScenePresence sp = m_parentGroup.Scene.GetScenePresence(m_parentGroup.RootPart.AttachedAvatar); |
432 | ScenePresence sp = m_parentGroup.Scene.GetScenePresence(AttachedAvatar); | ||
432 | if (sp != null) | 433 | if (sp != null) |
433 | { | 434 | { |
434 | return sp.AbsolutePosition; | 435 | return sp.AbsolutePosition; |
435 | } | 436 | } |
436 | } | 437 | // } |
437 | } | 438 | } |
438 | 439 | ||
439 | return m_groupPosition; | 440 | return m_groupPosition; |