mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
If we store an undo, wipe anything already present on the redo stack
This stops problems when we undo a few steps and start off down another path. Surprisingly, apart from this now fixed problem, redo appears to be working too.
This commit is contained in:
@@ -3705,6 +3705,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
m_undo.Push(nUndo);
|
||||
|
||||
if (m_redo.Count > 0)
|
||||
m_redo.Clear();
|
||||
|
||||
// m_log.DebugFormat(
|
||||
// "[SCENE OBJECT PART]: Stored undo state for {0} {1}, forGroup {2}, stack size now {3}",
|
||||
// Name, LocalId, forGroup, m_undo.Count);
|
||||
|
||||
Reference in New Issue
Block a user