Allow a Thing's flags value field to be edited even when "Absolute Height" is checked, but uncheck it after editing

This commit is contained in:
MascaraSnake 2016-01-13 19:35:42 +01:00
parent 36ec727743
commit 7b276580fb

View file

@ -451,7 +451,6 @@ namespace CodeImp.DoomBuilder.Windows
MakeUndo(); MakeUndo();
useabsoluteheight = cbAbsoluteHeight.Checked; useabsoluteheight = cbAbsoluteHeight.Checked;
flagsvalue.ReadOnly = cbAbsoluteHeight.Checked;
zlabel.Text = (useabsoluteheight ? "Z:" : "Height:"); zlabel.Text = (useabsoluteheight ? "Z:" : "Height:");
preventchanges = true; preventchanges = true;
@ -591,6 +590,7 @@ namespace CodeImp.DoomBuilder.Windows
posZ.Text = z.ToString(); posZ.Text = z.ToString();
} }
flagsvalue_ignore = false; flagsvalue_ignore = false;
cbAbsoluteHeight.Checked = false;
} }
} }