some changes in link/unlink code, bypassing complex variables set methods

This commit is contained in:
UbitUmarov
2014-09-22 23:32:55 +01:00
parent c82e456345
commit 79e47eb60e
2 changed files with 47 additions and 26 deletions

View File

@@ -771,9 +771,20 @@ namespace OpenSim.Region.Framework.Scenes
set { m_damage = value; }
}
public void setGroupPosition(Vector3 pos)
{
m_groupPosition = pos;
}
/// <summary>
/// The position of the entire group that this prim belongs to.
/// </summary>
///
public Vector3 GroupPosition
{
get
@@ -811,7 +822,7 @@ namespace OpenSim.Region.Framework.Scenes
// Root prim actually goes at Position
if (ParentID == 0)
{
actor.Position = value;
actor.Position = value;
}
else
{
@@ -832,6 +843,11 @@ namespace OpenSim.Region.Framework.Scenes
}
}
public void setOffsetPosition(Vector3 pos)
{
m_offsetPosition = pos;
}
public Vector3 OffsetPosition
{
get { return m_offsetPosition; }
@@ -890,6 +906,11 @@ namespace OpenSim.Region.Framework.Scenes
}
}
public void setRotationOffset(Quaternion q)
{
m_rotationOffset = q;
}
public Quaternion RotationOffset
{
get