From 10f74ec1d633023d0ec8b43041442b97fc9397aa Mon Sep 17 00:00:00 2001 From: bd_ Date: Mon, 27 Jan 2025 21:31:41 -0800 Subject: [PATCH] fix: occasional NRE from RO analysis --- .../ReactiveObjectAnalyzer.LocateReactions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editor/ReactiveObjects/AnimationGeneration/ReactiveObjectAnalyzer.LocateReactions.cs b/Editor/ReactiveObjects/AnimationGeneration/ReactiveObjectAnalyzer.LocateReactions.cs index 7cc2e403..2f804945 100644 --- a/Editor/ReactiveObjects/AnimationGeneration/ReactiveObjectAnalyzer.LocateReactions.cs +++ b/Editor/ReactiveObjects/AnimationGeneration/ReactiveObjectAnalyzer.LocateReactions.cs @@ -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;