Stop undo of just the root prim position in the linkset from shifting the whole linkset.

However, what happens now is that undo just doesn't do anything when the root prim is selected on its own.  This requires more code than just fiddling with undo states.
This commit is contained in:
Justin Clark-Casey (justincc)
2011-07-19 03:38:22 +01:00
parent c94dc95844
commit 7c468cda36
4 changed files with 20 additions and 14 deletions

View File

@@ -3705,9 +3705,9 @@ namespace OpenSim.Region.Framework.Scenes
m_undo.Push(nUndo);
// m_log.DebugFormat(
// "[SCENE OBJECT PART]: Stored undo state for {0} {1}, stack size now {2}",
// Name, LocalId, m_undo.Count);
m_log.DebugFormat(
"[SCENE OBJECT PART]: Stored undo state for {0} {1}, stack size now {2}",
Name, LocalId, m_undo.Count);
}
}
}
@@ -3740,9 +3740,9 @@ namespace OpenSim.Region.Framework.Scenes
{
lock (m_undo)
{
// m_log.DebugFormat(
// "[SCENE OBJECT PART]: Handling undo request for {0} {1}, stack size {2}",
// Name, LocalId, m_undo.Count);
m_log.DebugFormat(
"[SCENE OBJECT PART]: Handling undo request for {0} {1}, stack size {2}",
Name, LocalId, m_undo.Count);
if (m_undo.Count > 0)
{