aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorHomer Horwitz2008-09-13 18:42:09 +0000
committerHomer Horwitz2008-09-13 18:42:09 +0000
commitae9e4e8144c5f787d71eafe2e0470887f36e3566 (patch)
tree249cefab9705639c83c469969a60d49a1dcc0a66 /OpenSim/Region/Environment/Scenes/ScenePresence.cs
parentRemove the cruft of accessing a private member of another module's class (diff)
downloadopensim-SC_OLD-ae9e4e8144c5f787d71eafe2e0470887f36e3566.zip
opensim-SC_OLD-ae9e4e8144c5f787d71eafe2e0470887f36e3566.tar.gz
opensim-SC_OLD-ae9e4e8144c5f787d71eafe2e0470887f36e3566.tar.bz2
opensim-SC_OLD-ae9e4e8144c5f787d71eafe2e0470887f36e3566.tar.xz
Update avatar-position while avatar is sitting and the prim is moved (#2159).
I decided to make ParentPosition a public property in ScenePresence, because that's exactly what happens (the parent position changes on prim move).
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs5
1 files changed, 5 insertions, 0 deletions
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'