mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-03-13 22:23:20 +00:00
Don't disable dynamic grid when changing the grid manually
This commit is contained in:
parent
768f4b9ea9
commit
ccbd5c85ff
3 changed files with 0 additions and 12 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue