mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 14:31:50 +00:00
- Little bit of undo/redo optimization
This commit is contained in:
parent
837c725395
commit
6f1abda51f
1 changed files with 7 additions and 1 deletions
|
@ -628,6 +628,7 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
geometrychanged = false;
|
||||
populationchanged = false;
|
||||
General.Map.Map.ClearAllMarks(false);
|
||||
General.Map.Map.BeginAddRemove();
|
||||
|
||||
// Go for all levels to undo
|
||||
for(int lvl = 0; lvl < levels; lvl++)
|
||||
|
@ -706,6 +707,8 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
levelsundone++;
|
||||
}
|
||||
|
||||
General.Map.Map.EndAddRemove();
|
||||
|
||||
if(levels > 1)
|
||||
General.Interface.DisplayStatus(StatusType.Action, "Undone " + levelsundone + " changes.");
|
||||
|
||||
|
@ -765,6 +768,7 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
geometrychanged = false;
|
||||
populationchanged = false;
|
||||
General.Map.Map.ClearAllMarks(false);
|
||||
General.Map.Map.BeginAddRemove();
|
||||
|
||||
// Go for all levels to redo
|
||||
for(int lvl = 0; lvl < levels; lvl++)
|
||||
|
@ -822,7 +826,7 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
}
|
||||
|
||||
General.WriteLogLine("Performing redo \"" + r.Description + "\", Ticket ID " + r.TicketID + "...");
|
||||
|
||||
|
||||
if(levels == 1)
|
||||
General.Interface.DisplayStatus(StatusType.Action, r.Description + " redone.");
|
||||
|
||||
|
@ -842,6 +846,8 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
levelsundone++;
|
||||
}
|
||||
|
||||
General.Map.Map.EndAddRemove();
|
||||
|
||||
if(levels > 1)
|
||||
General.Interface.DisplayStatus(StatusType.Action, "Redone " + levelsundone + " changes.");
|
||||
|
||||
|
|
Loading…
Reference in a new issue