- Fixed an issue where the current editing mode was not re-initialized properly when opening a map from current WAD
This commit is contained in:
parent
c6a2288c22
commit
0043160e30
|
@ -548,6 +548,10 @@ namespace CodeImp.DoomBuilder
|
|||
ClassicMode mode = (ClassicMode)General.Editing.Mode;
|
||||
mode.OnRedoEnd();
|
||||
|
||||
// biwa. Cancel current mode. This will re-engage non-volatile modes to make sure it's
|
||||
// properly initialized for the new map. Fixes issues mentioned in #196
|
||||
General.Editing.CancelMode();
|
||||
|
||||
// Center map in screen or on stored coordinates
|
||||
if (options.ViewPosition.IsFinite() && !float.IsNaN(options.ViewScale))
|
||||
mode.CenterOnCoordinates(options.ViewPosition, options.ViewScale);
|
||||
|
@ -558,6 +562,10 @@ namespace CodeImp.DoomBuilder
|
|||
{
|
||||
VisualMode mode = (VisualMode)General.Editing.Mode;
|
||||
|
||||
// biwa. Cancel current mode. This will re-engage non-volatile modes to make sure it's
|
||||
// properly initialized for the new map. Fixes issues mentioned in #196
|
||||
General.Editing.CancelMode();
|
||||
|
||||
// This will rebuild blockmap, among the other things
|
||||
General.Editing.Mode.OnReloadResources();
|
||||
|
||||
|
|
Loading…
Reference in New Issue