From f0f1e00ec389c54c69c65fb2590b91d46cab6068 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 3 Jul 2008 18:25:18 +0000 Subject: add a couple of LL conversion properties to SOP. I'll wait to clean up the sit target usage until the sit target fix patch goes in, but it should be cleaned. Get prims table mappings to the point where nhibernate likes them enough to start. Remove field from asset mapping so it will start --- .../Region/Environment/Scenes/SceneObjectPart.cs | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 3f5e618..5b92a8d 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -776,13 +776,41 @@ namespace OpenSim.Region.Environment.Scenes public Quaternion SitTargetOrientation { get { return m_sitTargetOrientation; } + set { m_sitTargetOrientation = value; } } + public Vector3 SitTargetPosition { get { return m_sitTargetPosition; } + set { m_sitTargetPosition = value; } + } + + // This sort of sucks, but I'm adding these in to make some of + // the mappings more consistant. + public LLVector3 SitTargetPositionLL + { + get { return new LLVector3(m_sitTargetPosition.x, m_sitTargetPosition.y,m_sitTargetPosition.z); } + set { m_sitTargetPosition = new Vector3(value.X, value.Y, value.Z); } } + public LLQuaternion SitTargetOrientationLL + { + get + { + return new LLQuaternion( + m_sitTargetOrientation.x, + m_sitTargetOrientation.y, + m_sitTargetOrientation.z, + m_sitTargetOrientation.w + ); + } + + set { m_sitTargetOrientation = new Quaternion(value.X, value.Y, value.Z, value.W); } + } + + + public bool Stopped { get { -- cgit v1.1