Fix undo for rotation of the root prim in a linkset on its own.

The only obviously broken things right now are the undo of the position of just a root prim (stays in place) and the fact that resizes need two undoes.
This commit is contained in:
Justin Clark-Casey (justincc)
2011-07-19 05:05:50 +01:00
parent b2722e984a
commit 1fdb16f1cd
2 changed files with 15 additions and 8 deletions

View File

@@ -150,8 +150,10 @@ namespace OpenSim.Region.Framework.Scenes
"[UNDO STATE]: Undoing rotation {0} to {1} for root part {2} {3}",
part.RotationOffset, Rotation, part.Name, part.LocalId);
part.UpdateRotation(Rotation);
//part.RotationOffset = Rotation;
if (ForGroup)
part.UpdateRotation(Rotation);
else
part.ParentGroup.UpdateRootRotation(Rotation);
if (Scale != Vector3.Zero)
{