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.

0.7.4-extended
Justin Clark-Casey (justincc) 2013-04-03 00:24:33 +01:00
parent 9d6ff81a07
commit f603cbec02
1 changed files with 2 additions and 11 deletions

View File

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