From fa786c480b288f86a8a90dfa6c216fc4774e3d7a Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 24 Jun 2009 09:49:49 +0000 Subject: Reading GroupPosition, but setting OffsetPosition in undo doesnt' seem right. This may fix the Mantii where individual prims ctrl-z to nirvana, but it's not tested. --- OpenSim/Region/Framework/Scenes/UndoState.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes') diff --git a/OpenSim/Region/Framework/Scenes/UndoState.cs b/OpenSim/Region/Framework/Scenes/UndoState.cs index 82a85e6..713ff69 100644 --- a/OpenSim/Region/Framework/Scenes/UndoState.cs +++ b/OpenSim/Region/Framework/Scenes/UndoState.cs @@ -54,7 +54,7 @@ namespace OpenSim.Region.Framework.Scenes } else { - Position = part.GroupPosition; + Position = part.OffsetPosition; Rotation = part.RotationOffset; Scale = part.Shape.Scale; @@ -75,7 +75,7 @@ namespace OpenSim.Region.Framework.Scenes } else { - if (Position == part.GroupPosition && Rotation == part.RotationOffset && Scale == part.Shape.Scale) + if (Position == part.OffsetPosition && Rotation == part.RotationOffset && Scale == part.Shape.Scale) return true; else return false; -- cgit v1.1