Fix minor race condition in llGetLocalRot() where inconsistent results could be returned if the prim was rotating during the call
parent
66749eafdd
commit
608a569bd5
|
@ -2201,7 +2201,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
public LSL_Rotation llGetLocalRot()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
return new LSL_Rotation(m_host.RotationOffset.X, m_host.RotationOffset.Y, m_host.RotationOffset.Z, m_host.RotationOffset.W);
|
||||
|
||||
return new LSL_Rotation(m_host.RotationOffset);
|
||||
}
|
||||
|
||||
public void llSetForce(LSL_Vector force, int local)
|
||||
|
|
Loading…
Reference in New Issue