Fix minor race condition in llGetOmega() where a call whilst a prim was changing angular velocity could return inconsistent results

0.7.4-extended
Justin Clark-Casey (justincc) 2013-03-14 22:04:11 +00:00
parent 99a0f76998
commit b025cdf6be
1 changed files with 2 additions and 1 deletions

View File

@ -2334,7 +2334,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public LSL_Vector llGetAccel()
{
m_host.AddScriptLPS(1);
return new LSL_Vector(m_host.Acceleration.X, m_host.Acceleration.Y, m_host.Acceleration.Z);
return new LSL_Vector(m_host.Acceleration);
}
public LSL_Vector llGetOmega()