mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
Fix minor race condition in llGetOmega() where a call whilst a prim was changing angular velocity could return inconsistent results
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user