diff options
author | Tom Grimshaw | 2010-07-05 05:44:35 -0700 |
---|---|---|
committer | Tom Grimshaw | 2010-07-05 05:44:35 -0700 |
commit | e947d04038f7b42929368d9f7b6d440be139e675 (patch) | |
tree | 4aa09d4b727307a7cf50f10ee2e93511af1a62c9 /OpenSim/Region/Framework/Scenes/UndoState.cs | |
parent | Bring "Redo" up to date with "Undo" so it works too (diff) | |
download | opensim-SC_OLD-e947d04038f7b42929368d9f7b6d440be139e675.zip opensim-SC_OLD-e947d04038f7b42929368d9f7b6d440be139e675.tar.gz opensim-SC_OLD-e947d04038f7b42929368d9f7b6d440be139e675.tar.bz2 opensim-SC_OLD-e947d04038f7b42929368d9f7b6d440be139e675.tar.xz |
Undo fix is now complete. This commit repairs the special case of the root prim moving or rotating independently of the rest of the group.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/UndoState.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/UndoState.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/UndoState.cs b/OpenSim/Region/Framework/Scenes/UndoState.cs index 2af3316..f71b507 100644 --- a/OpenSim/Region/Framework/Scenes/UndoState.cs +++ b/OpenSim/Region/Framework/Scenes/UndoState.cs | |||
@@ -172,8 +172,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
172 | if (part.ParentID == 0 && GroupChange == false) | 172 | if (part.ParentID == 0 && GroupChange == false) |
173 | { | 173 | { |
174 | if (Position != Vector3.Zero) | 174 | if (Position != Vector3.Zero) |
175 | part.ParentGroup.AbsolutePosition = Position; | 175 | |
176 | part.RotationOffset = Rotation; | 176 | part.ParentGroup.UpdateSinglePosition(Position, part.LocalId); |
177 | part.ParentGroup.UpdateSingleRotation(Rotation, part.LocalId); | ||
177 | if (Scale != Vector3.Zero) | 178 | if (Scale != Vector3.Zero) |
178 | part.Resize(Scale); | 179 | part.Resize(Scale); |
179 | part.ParentGroup.ScheduleGroupForTerseUpdate(); | 180 | part.ParentGroup.ScheduleGroupForTerseUpdate(); |