* Deal with git thinking that file was changed even though it wasn't and it's blocking a pull
parent
66c40dd3de
commit
b8d7663f54
|
@ -1978,30 +1978,30 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
return new LSL_Rotation(q.X, q.Y, q.Z, q.W);
|
return new LSL_Rotation(q.X, q.Y, q.Z, q.W);
|
||||||
}
|
}
|
||||||
|
|
||||||
private LSL_Rotation GetPartRot( SceneObjectPart part )
|
private LSL_Rotation GetPartRot( SceneObjectPart part )
|
||||||
{
|
{
|
||||||
Quaternion q;
|
Quaternion q;
|
||||||
if (part.LinkNum == 0 || part.LinkNum == 1) // unlinked or root prim
|
if (part.LinkNum == 0 || part.LinkNum == 1) // unlinked or root prim
|
||||||
{
|
{
|
||||||
if (part.ParentGroup.RootPart.AttachmentPoint != 0)
|
if (part.ParentGroup.RootPart.AttachmentPoint != 0)
|
||||||
{
|
{
|
||||||
ScenePresence avatar = World.GetScenePresence(part.AttachedAvatar);
|
ScenePresence avatar = World.GetScenePresence(part.AttachedAvatar);
|
||||||
if (avatar != null)
|
if (avatar != null)
|
||||||
if ((avatar.AgentControlFlags & (uint)AgentManager.ControlFlags.AGENT_CONTROL_MOUSELOOK) != 0)
|
if ((avatar.AgentControlFlags & (uint)AgentManager.ControlFlags.AGENT_CONTROL_MOUSELOOK) != 0)
|
||||||
q = avatar.CameraRotation; // Mouselook
|
q = avatar.CameraRotation; // Mouselook
|
||||||
else
|
else
|
||||||
q = avatar.Rotation; // Currently infrequently updated so may be inaccurate
|
q = avatar.Rotation; // Currently infrequently updated so may be inaccurate
|
||||||
else
|
else
|
||||||
q = part.ParentGroup.GroupRotation; // Likely never get here but just in case
|
q = part.ParentGroup.GroupRotation; // Likely never get here but just in case
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
q = part.ParentGroup.GroupRotation; // just the group rotation
|
q = part.ParentGroup.GroupRotation; // just the group rotation
|
||||||
return new LSL_Rotation(q.X, q.Y, q.Z, q.W);
|
return new LSL_Rotation(q.X, q.Y, q.Z, q.W);
|
||||||
}
|
}
|
||||||
q = part.GetWorldRotation();
|
q = part.GetWorldRotation();
|
||||||
return new LSL_Rotation(q.X, q.Y, q.Z, q.W);
|
return new LSL_Rotation(q.X, q.Y, q.Z, q.W);
|
||||||
}
|
}
|
||||||
|
|
||||||
public LSL_Rotation llGetLocalRot()
|
public LSL_Rotation llGetLocalRot()
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
|
|
Loading…
Reference in New Issue