aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index 2b0ad12..b4b9f00 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -498,6 +498,17 @@ namespace OpenSim.Region.Environment.Scenes
498 Console.WriteLine(e.Message); 498 Console.WriteLine(e.Message);
499 } 499 }
500 } 500 }
501
502 // TODO if we decide to do sitting in a more SL compatible way (multiple avatars per prim), this has to be fixed, too
503 if(m_sitTargetAvatar != UUID.Zero) {
504 if (m_parentGroup != null) // TODO can there be a SOP without a SOG?
505 {
506 ScenePresence avatar;
507 if(m_parentGroup.Scene.TryGetAvatar(m_sitTargetAvatar, out avatar)) {
508 avatar.ParentPosition = GetWorldPosition();
509 }
510 }
511 }
501 512
502 } 513 }
503 } 514 }