mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
Update svn properties, minor formatting cleanup.
This commit is contained in:
@@ -6440,20 +6440,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
// special case: If we are root, rotate complete SOG to new rotation
|
||||
SetRot(part, Rot2Quaternion(q));
|
||||
}
|
||||
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.
|
||||
SceneObjectGroup group = part.ParentGroup;
|
||||
if (group != null) // a bit paranoid, maybe
|
||||
{
|
||||
SceneObjectPart rootPart = group.RootPart;
|
||||
if (rootPart != null) // again, better safe than sorry
|
||||
{
|
||||
SetRot(part, rootPart.RotationOffset * Rot2Quaternion(q));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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.
|
||||
SceneObjectGroup group = part.ParentGroup;
|
||||
if (group != null) // a bit paranoid, maybe
|
||||
{
|
||||
SceneObjectPart rootPart = group.RootPart;
|
||||
if (rootPart != null) // again, better safe than sorry
|
||||
{
|
||||
SetRot(part, rootPart.RotationOffset * Rot2Quaternion(q));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user