Fix minor race condition in SOP.SitTargetOrientationLL where inconsistent values could be returned if the sit orientation was changed whilst the property was being fetched.

This commit is contained in:
Justin Clark-Casey (justincc)
2013-04-03 00:24:33 +01:00
parent 97f0c9da84
commit 7bf1986e91

View File

@@ -1152,17 +1152,8 @@ namespace OpenSim.Region.Framework.Scenes
public Quaternion SitTargetOrientationLL
{
get
{
return new Quaternion(
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); }
get { return m_sitTargetOrientation; }
set { m_sitTargetOrientation = value; }
}
public bool Stopped