Don't disable dynamic grid when changing the grid manually

This commit is contained in:
spherallic 2023-02-06 20:30:24 +01:00
parent 768f4b9ea9
commit ccbd5c85ff
3 changed files with 0 additions and 12 deletions

View file

@ -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);

View file

@ -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);
}

View file

@ -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);