From 35800d6a8639c033aa9934b493320ec0ba961fda Mon Sep 17 00:00:00 2001 From: Melanie Date: Mon, 5 Dec 2011 15:26:22 +0100 Subject: Reinstate setter for OffsetPosition to allow setting the offset by script while seated --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim/Region/Framework/Scenes') 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 public Vector3 OffsetPosition { get { return m_pos; } + set + { + // There is no offset position when not seated + if (ParentID == 0) + return; + m_pos = value; + } } /// -- cgit v1.1