fix: incorrect initial state for inverted Shape Changers (#1458)

This commit is contained in:
bd_ 2025-02-19 18:26:09 -08:00 committed by GitHub
parent 07cce41329
commit 242a108703
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -255,7 +255,7 @@ namespace nadena.dev.modular_avatar.core.editor
var action = ObjectRule(key, changer, value); var action = ObjectRule(key, changer, value);
action.Inverted = _computeContext.Observe(changer, c => c.Inverted); action.Inverted = _computeContext.Observe(changer, c => c.Inverted);
if (changer.gameObject.activeInHierarchy) info.currentState = action.Value; if (changer.gameObject.activeInHierarchy ^ changer.Inverted) info.currentState = action.Value;
if (info.actionGroups.Count == 0) if (info.actionGroups.Count == 0)
{ {