aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs11
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs5
2 files changed, 16 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 }
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index ff043fb..f58bba6 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -287,6 +287,11 @@ namespace OpenSim.Region.Environment.Scenes
287 } 287 }
288 288
289 protected Vector3 m_parentPosition = new Vector3(); 289 protected Vector3 m_parentPosition = new Vector3();
290 public Vector3 ParentPosition
291 {
292 get { return m_parentPosition; }
293 set { m_parentPosition = value; }
294 }
290 295
291 /// <summary> 296 /// <summary>
292 /// Absolute position of this avatar in 'region cordinates' 297 /// Absolute position of this avatar in 'region cordinates'