diff options
author | Melanie | 2011-12-05 15:26:22 +0100 |
---|---|---|
committer | Melanie | 2011-12-05 15:26:22 +0100 |
commit | 35800d6a8639c033aa9934b493320ec0ba961fda (patch) | |
tree | c8c7efbc7279fa3e1cfe972cc4a9c8d3d4df0a32 /OpenSim | |
parent | Don't allow position update on sitting avatar. Don't bounds check sitting (diff) | |
download | opensim-SC-35800d6a8639c033aa9934b493320ec0ba961fda.zip opensim-SC-35800d6a8639c033aa9934b493320ec0ba961fda.tar.gz opensim-SC-35800d6a8639c033aa9934b493320ec0ba961fda.tar.bz2 opensim-SC-35800d6a8639c033aa9934b493320ec0ba961fda.tar.xz |
Reinstate setter for OffsetPosition to allow setting the offset by script
while seated
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 0dd338e..21c9402 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -567,6 +567,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
567 | public Vector3 OffsetPosition | 567 | public Vector3 OffsetPosition |
568 | { | 568 | { |
569 | get { return m_pos; } | 569 | get { return m_pos; } |
570 | set | ||
571 | { | ||
572 | // There is no offset position when not seated | ||
573 | if (ParentID == 0) | ||
574 | return; | ||
575 | m_pos = value; | ||
576 | } | ||
570 | } | 577 | } |
571 | 578 | ||
572 | /// <summary> | 579 | /// <summary> |