aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/UndoState.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-07-19 05:05:50 +0100
committerJustin Clark-Casey (justincc)2011-07-19 05:05:50 +0100
commit1fdb16f1cdf6e2722a763cdc0e9b7af9fed27a29 (patch)
tree4bfe52463c4337bb2dca29a2b8611397793699f0 /OpenSim/Region/Framework/Scenes/UndoState.cs
parentFix undo of rotation of single prims in a linkset (diff)
downloadopensim-SC_OLD-1fdb16f1cdf6e2722a763cdc0e9b7af9fed27a29.zip
opensim-SC_OLD-1fdb16f1cdf6e2722a763cdc0e9b7af9fed27a29.tar.gz
opensim-SC_OLD-1fdb16f1cdf6e2722a763cdc0e9b7af9fed27a29.tar.bz2
opensim-SC_OLD-1fdb16f1cdf6e2722a763cdc0e9b7af9fed27a29.tar.xz
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.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/UndoState.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/UndoState.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/UndoState.cs b/OpenSim/Region/Framework/Scenes/UndoState.cs
index 68d4cb4..dc509d9 100644
--- a/OpenSim/Region/Framework/Scenes/UndoState.cs
+++ b/OpenSim/Region/Framework/Scenes/UndoState.cs
@@ -150,8 +150,10 @@ namespace OpenSim.Region.Framework.Scenes
150 "[UNDO STATE]: Undoing rotation {0} to {1} for root part {2} {3}", 150 "[UNDO STATE]: Undoing rotation {0} to {1} for root part {2} {3}",
151 part.RotationOffset, Rotation, part.Name, part.LocalId); 151 part.RotationOffset, Rotation, part.Name, part.LocalId);
152 152
153 part.UpdateRotation(Rotation); 153 if (ForGroup)
154 //part.RotationOffset = Rotation; 154 part.UpdateRotation(Rotation);
155 else
156 part.ParentGroup.UpdateRootRotation(Rotation);
155 157
156 if (Scale != Vector3.Zero) 158 if (Scale != Vector3.Zero)
157 { 159 {