Fix minor race condition in llGetOmega() where inconsistent results could be returned (accidentally stated that commit 1774c631 was this fix).

Commit 1774c631 was actually a fix for a similar minor race condition in llGetAccel()
0.7.4-extended
Justin Clark-Casey (justincc) 2013-03-14 22:07:07 +00:00
parent b025cdf6be
commit 4531b2274e
1 changed files with 2 additions and 1 deletions

View File

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