From ccbd5c85ff5bfbb7c97f74b3a0ee237f123a0d07 Mon Sep 17 00:00:00 2001 From: spherallic <spherallic@gmail.com> Date: Mon, 6 Feb 2023 20:30:24 +0100 Subject: [PATCH] Don't disable dynamic grid when changing the grid manually --- Source/Core/Editing/GridSetup.cs | 6 ------ Source/Core/Windows/GridSetupForm.cs | 3 --- Source/Core/Windows/MainForm.cs | 3 --- 3 files changed, 12 deletions(-) diff --git a/Source/Core/Editing/GridSetup.cs b/Source/Core/Editing/GridSetup.cs index 3b1ce05..ffd5663 100644 --- a/Source/Core/Editing/GridSetup.cs +++ b/Source/Core/Editing/GridSetup.cs @@ -291,9 +291,6 @@ namespace CodeImp.DoomBuilder.Editing // Not lower than 1 if(gridsize >= 2) { - //mxd. Disable automatic grid resizing - General.MainWindow.DisableDynamicGridResize(); - // Change grid SetGridSize(gridsize >> 1); @@ -310,9 +307,6 @@ namespace CodeImp.DoomBuilder.Editing // Not higher than 1024 if(gridsize <= 512) { - //mxd. Disable automatic grid resizing - General.MainWindow.DisableDynamicGridResize(); - // Change grid SetGridSize(gridsize << 1); diff --git a/Source/Core/Windows/GridSetupForm.cs b/Source/Core/Windows/GridSetupForm.cs index 5eecedc..19d1127 100644 --- a/Source/Core/Windows/GridSetupForm.cs +++ b/Source/Core/Windows/GridSetupForm.cs @@ -144,9 +144,6 @@ namespace CodeImp.DoomBuilder.Windows int newgridsize = gridsize.GetResult(General.Map.Grid.GridSize); if(newgridsize != General.Map.Grid.GridSize) { - //Disable automatic grid resizing - General.MainWindow.DisableDynamicGridResize(); - //Apply grid size General.Map.Grid.SetGridSize(newgridsize); } diff --git a/Source/Core/Windows/MainForm.cs b/Source/Core/Windows/MainForm.cs index e98b808..33f4f14 100644 --- a/Source/Core/Windows/MainForm.cs +++ b/Source/Core/Windows/MainForm.cs @@ -943,9 +943,6 @@ namespace CodeImp.DoomBuilder.Windows // Get integral zoom level int size = int.Parse(item.Tag.ToString(), CultureInfo.InvariantCulture); - //mxd. Disable automatic grid resizing - DisableDynamicGridResize(); - // Change grid size General.Map.Grid.SetGridSize(size);