mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
Replace axis rotation numeric constants (STATUS_ROTATE_XYZ) with symbols. Also made it so llSetStatus() can individually enable disable rotation axi using the bitmask of flags.
This commit is contained in:
@@ -1334,19 +1334,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return 0;
|
||||
|
||||
case ScriptBaseClass.STATUS_ROTATE_X:
|
||||
if (m_host.GetAxisRotation(2) == 2)
|
||||
// if (m_host.GetAxisRotation(2) != 0)
|
||||
if (m_host.GetAxisRotation((int)SceneObjectGroup.axisSelect.STATUS_ROTATE_X) != 0)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
|
||||
case ScriptBaseClass.STATUS_ROTATE_Y:
|
||||
if (m_host.GetAxisRotation(4) == 4)
|
||||
if (m_host.GetAxisRotation((int)SceneObjectGroup.axisSelect.STATUS_ROTATE_Y) != 0)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
|
||||
case ScriptBaseClass.STATUS_ROTATE_Z:
|
||||
if (m_host.GetAxisRotation(8) == 8)
|
||||
if (m_host.GetAxisRotation((int)SceneObjectGroup.axisSelect.STATUS_ROTATE_Z) != 0)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user