Fix bool editor when null.

This commit is contained in:
Chandler Cox
2023-09-28 19:49:59 -05:00
parent fd3f10864b
commit 8f5af2e149

View File

@@ -34,7 +34,9 @@ namespace FlaxEditor.CustomEditors.Editors
}
else
{
element.CheckBox.Checked = (bool)Values[0];
var value = (bool?)Values[0];
if (value != null)
element.CheckBox.Checked = value.Value;
}
}
}