mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-12 15:38:59 +08:00
fix: incorrect initial states for Shape Changer (#1464)
This commit is contained in:
parent
7e5d631b9d
commit
70dd38e970
@ -254,8 +254,8 @@ 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 ^ changer.Inverted) info.currentState = action.Value;
|
info.currentState = currentValue;
|
||||||
|
|
||||||
if (info.actionGroups.Count == 0)
|
if (info.actionGroups.Count == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user