Fix undo of rotation of single prims in a linkset

This commit is contained in:
Justin Clark-Casey (justincc)
2011-07-19 04:40:02 +01:00
parent 97f1edfd95
commit b2722e984a
2 changed files with 11 additions and 9 deletions

View File

@@ -2991,6 +2991,9 @@ namespace OpenSim.Region.Framework.Scenes
// "[SCENE OBJECT GROUP]: Updating single position and rotation of {0} {1} to {2}",
// part.Name, part.LocalId, rot);
part.StoreUndoState();
part.IgnoreUndoUpdate = true;
if (part.UUID == m_rootPart.UUID)
{
UpdateRootRotation(rot);
@@ -2998,12 +3001,11 @@ namespace OpenSim.Region.Framework.Scenes
}
else
{
part.IgnoreUndoUpdate = true;
part.UpdateRotation(rot);
part.OffsetPosition = pos;
part.IgnoreUndoUpdate = false;
part.StoreUndoState();
}
part.IgnoreUndoUpdate = false;
}
}