mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 14:31:50 +00:00
@ Fixed an undo/redo bug that caused problems in Visual Mode when multiple levels are undone at once
This commit is contained in:
parent
d247492c31
commit
5edec9046b
1 changed files with 9 additions and 6 deletions
|
@ -387,11 +387,6 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
{
|
||||
General.Map.Map.AutoRemove = false;
|
||||
|
||||
General.Map.Map.ClearAllMarks(false);
|
||||
|
||||
geometrychanged = false;
|
||||
populationchanged = false;
|
||||
|
||||
pstream.Seek(0, SeekOrigin.Begin);
|
||||
DeserializerStream ds = new DeserializerStream(pstream);
|
||||
ds.Begin();
|
||||
|
@ -630,6 +625,10 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
// This returns false when mode was not volatile
|
||||
if(!General.Editing.CancelVolatileMode())
|
||||
{
|
||||
geometrychanged = false;
|
||||
populationchanged = false;
|
||||
General.Map.Map.ClearAllMarks(false);
|
||||
|
||||
// Go for all levels to undo
|
||||
for(int lvl = 0; lvl < levels; lvl++)
|
||||
{
|
||||
|
@ -763,7 +762,11 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
// This returns false when mode was not volatile
|
||||
if(!General.Editing.CancelVolatileMode())
|
||||
{
|
||||
// Go for all levels to undo
|
||||
geometrychanged = false;
|
||||
populationchanged = false;
|
||||
General.Map.Map.ClearAllMarks(false);
|
||||
|
||||
// Go for all levels to redo
|
||||
for(int lvl = 0; lvl < levels; lvl++)
|
||||
{
|
||||
FinishRecording();
|
||||
|
|
Loading…
Reference in a new issue