fix: incorrect initial states for Shape Changer (#1463)

This commit is contained in:
bd_ 2025-03-02 18:20:18 -08:00 committed by GitHub
parent 6768f3ef91
commit 419f34baaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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