fix: NRE in RO simulator

This commit is contained in:
bd_ 2024-10-14 21:20:32 -07:00
parent 5d399dce4a
commit b36536afe7

View File

@ -256,7 +256,7 @@ namespace nadena.dev.modular_avatar.core.editor.Simulator
return;
}
_btn_clear.SetEnabled(!PropertyOverrides.Value.IsEmpty || !MenuItemOverrides.Value.IsEmpty);
_btn_clear.SetEnabled(PropertyOverrides.Value?.IsEmpty == false || MenuItemOverrides.Value?.IsEmpty == false);
e_debugInfo.style.display = DisplayStyle.Flex;