mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 22:41:46 +00:00
Fixed a problem where custom boolean UDMF fields could not set be to false
This commit is contained in:
parent
2945ca24cd
commit
9090642d4e
1 changed files with 4 additions and 4 deletions
|
@ -260,12 +260,12 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
// This defines the field
|
||||
public void Define(object value)
|
||||
{
|
||||
//mxd. Don't count as defined when default value is passed
|
||||
if(value.ToString() == fieldtype.GetDefaultValue().ToString()) return;
|
||||
|
||||
// Now defined
|
||||
fieldtype.SetValue(value);
|
||||
this.Cells[2].Value = fieldtype.GetStringValue();
|
||||
|
||||
//mxd. Don't count as defined when default value is passed
|
||||
if (value.ToString() == fieldtype.GetDefaultValue().ToString()) return;
|
||||
|
||||
this.DefaultCellStyle.ForeColor = (rowtype == FieldsEditorRowType.USERVAR ? SystemColors.HotTrack : SystemColors.WindowText);
|
||||
isdefined = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue