Fix: Hide unused states of legendary camouflage parts (fixes maus)

This commit is contained in:
Mark Greene committed 2026-11-01 14:46:21 +13:00
1 parent 0632899ecf
commit 682f039c6c
4 files changed
+20 -8

No files matched your search

@@ -209,7 +209,10 @@ export async function extractModel(
case "StateSwitcherComponent":
node.setExtras({
state: component[`ssc.state${component["ssc.activeState"]}`],
// a part's scenarios can pick its state as it loads
state:
component[`ssc.state${component["ssc.activeState"]}`] ??
(isPart ? null : undefined),
});
break;