mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-02-24 15:15:03 +08:00
fix: incorrect initial state for inverted Shape Changers (#1457)
This commit is contained in:
parent
d7e949239a
commit
930d25a4f6
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user