mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-30 10:12:59 +08:00
fix: occasional NRE from RO analysis
This commit is contained in:
parent
f799af4c03
commit
10f74ec1d6
@ -137,7 +137,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
|
||||
var mami_condition = ParameterAssignerPass.AssignMenuItemParameter(mami, _simulationInitialStates);
|
||||
|
||||
if (mami_condition != null &&
|
||||
if (mami_condition != null && ForceMenuItems != null &&
|
||||
ForceMenuItems.TryGetValue(mami_condition.Parameter, out var forcedMenuItem))
|
||||
{
|
||||
var enable = forcedMenuItem == mami;
|
||||
|
Loading…
Reference in New Issue
Block a user