aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/UndoState.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-07-19 05:14:58 +0100
committerJustin Clark-Casey (justincc)2011-07-19 05:14:58 +0100
commit62325829ecab7d956416ff0450faa3f90f267e6c (patch)
tree1e7e11a8c574c6c42bc5beb84270c94e58c251ab /OpenSim/Region/Framework/Scenes/UndoState.cs
parentFix undo for rotation of the root prim in a linkset on its own. (diff)
downloadopensim-SC_OLD-62325829ecab7d956416ff0450faa3f90f267e6c.zip
opensim-SC_OLD-62325829ecab7d956416ff0450faa3f90f267e6c.tar.gz
opensim-SC_OLD-62325829ecab7d956416ff0450faa3f90f267e6c.tar.bz2
opensim-SC_OLD-62325829ecab7d956416ff0450faa3f90f267e6c.tar.xz
comment out all kinds of debugging guff
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/UndoState.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/UndoState.cs36
1 files changed, 18 insertions, 18 deletions
diff --git a/OpenSim/Region/Framework/Scenes/UndoState.cs b/OpenSim/Region/Framework/Scenes/UndoState.cs
index dc509d9..b013d68 100644
--- a/OpenSim/Region/Framework/Scenes/UndoState.cs
+++ b/OpenSim/Region/Framework/Scenes/UndoState.cs
@@ -64,32 +64,32 @@ namespace OpenSim.Region.Framework.Scenes
64 else 64 else
65 Position = part.OffsetPosition; 65 Position = part.OffsetPosition;
66 66
67 m_log.DebugFormat( 67// m_log.DebugFormat(
68 "[UNDO STATE]: Storing undo position {0} for root part", Position); 68// "[UNDO STATE]: Storing undo position {0} for root part", Position);
69 69
70 Rotation = part.RotationOffset; 70 Rotation = part.RotationOffset;
71 71
72 m_log.DebugFormat( 72// m_log.DebugFormat(
73 "[UNDO STATE]: Storing undo rotation {0} for root part", Rotation); 73// "[UNDO STATE]: Storing undo rotation {0} for root part", Rotation);
74 74
75 Scale = part.Shape.Scale; 75 Scale = part.Shape.Scale;
76 76
77 m_log.DebugFormat( 77// m_log.DebugFormat(
78 "[UNDO STATE]: Storing undo scale {0} for root part", Scale); 78// "[UNDO STATE]: Storing undo scale {0} for root part", Scale);
79 } 79 }
80 else 80 else
81 { 81 {
82 Position = part.OffsetPosition; 82 Position = part.OffsetPosition;
83 m_log.DebugFormat( 83// m_log.DebugFormat(
84 "[UNDO STATE]: Storing undo position {0} for child part", Position); 84// "[UNDO STATE]: Storing undo position {0} for child part", Position);
85 85
86 Rotation = part.RotationOffset; 86 Rotation = part.RotationOffset;
87 m_log.DebugFormat( 87// m_log.DebugFormat(
88 "[UNDO STATE]: Storing undo rotation {0} for child part", Rotation); 88// "[UNDO STATE]: Storing undo rotation {0} for child part", Rotation);
89 89
90 Scale = part.Shape.Scale; 90 Scale = part.Shape.Scale;
91 m_log.DebugFormat( 91// m_log.DebugFormat(
92 "[UNDO STATE]: Storing undo scale {0} for child part", Scale); 92// "[UNDO STATE]: Storing undo scale {0} for child part", Scale);
93 } 93 }
94 } 94 }
95 } 95 }
@@ -134,9 +134,9 @@ namespace OpenSim.Region.Framework.Scenes
134 134
135 if (part.ParentID == 0) 135 if (part.ParentID == 0)
136 { 136 {
137 m_log.DebugFormat( 137// m_log.DebugFormat(
138 "[UNDO STATE]: Undoing position to {0} for root part {1} {2}", 138// "[UNDO STATE]: Undoing position to {0} for root part {1} {2}",
139 Position, part.Name, part.LocalId); 139// Position, part.Name, part.LocalId);
140 140
141 if (Position != Vector3.Zero) 141 if (Position != Vector3.Zero)
142 { 142 {
@@ -146,9 +146,9 @@ namespace OpenSim.Region.Framework.Scenes
146 part.OffsetPosition = Position; 146 part.OffsetPosition = Position;
147 } 147 }
148 148
149 m_log.DebugFormat( 149// m_log.DebugFormat(
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 if (ForGroup) 153 if (ForGroup)
154 part.UpdateRotation(Rotation); 154 part.UpdateRotation(Rotation);