Fix minor race condition in llGetOmega() where a call whilst a prim was changing angular velocity could return inconsistent results
parent
04e806036f
commit
1774c631cb
|
@ -2320,7 +2320,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
public LSL_Vector llGetAccel()
|
public LSL_Vector llGetAccel()
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
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()
|
public LSL_Vector llGetOmega()
|
||||||
|
|
Loading…
Reference in New Issue