Update svn properties, minor formatting cleanup.
parent
3fe42386e4
commit
03076b0d33
|
@ -6440,20 +6440,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
{
|
{
|
||||||
// special case: If we are root, rotate complete SOG to new rotation
|
// special case: If we are root, rotate complete SOG to new rotation
|
||||||
SetRot(part, Rot2Quaternion(q));
|
SetRot(part, Rot2Quaternion(q));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// we are a child. The rotation values will be set to the one of root modified by rot, as in SL. Don't ask.
|
// we are a child. The rotation values will be set to the one of root modified by rot, as in SL. Don't ask.
|
||||||
SceneObjectGroup group = part.ParentGroup;
|
SceneObjectGroup group = part.ParentGroup;
|
||||||
if (group != null) // a bit paranoid, maybe
|
if (group != null) // a bit paranoid, maybe
|
||||||
{
|
{
|
||||||
SceneObjectPart rootPart = group.RootPart;
|
SceneObjectPart rootPart = group.RootPart;
|
||||||
if (rootPart != null) // again, better safe than sorry
|
if (rootPart != null) // again, better safe than sorry
|
||||||
{
|
{
|
||||||
SetRot(part, rootPart.RotationOffset * Rot2Quaternion(q));
|
SetRot(part, rootPart.RotationOffset * Rot2Quaternion(q));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue