Closed neitsa closed 7 years ago
Bug was easy to spot...
While loading a preset, in LoadThreeState
(code) method: if there is no corresponding preset entry, the default behavior was to return default(MultiCheckboxState)
:
return xChild == null ? default(MultiCheckboxState) : LoadEnum<MultiCheckboxState>(xChild, StateNode);
The problem is that default(MultiCheckboxState)
returns MultiCheckboxState.On
and not MultiCheckboxState.Partial
.
Patch is to return Partial state by default:
// note: if xChild is null do NOT return default(MultiCheckboxState) because the default state will be ON!
return xChild == null ? MultiCheckboxState.Partial : LoadEnum<MultiCheckboxState>(xChild, StateNode);
This filter seems to be used even when not specifically asked for. There might also be some quirks about preset saves.
From steam comments [user QuakeIV]:
2nd comment:
From steam user Ozymandias: