mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
fix: shape changer preview overrides default blendshape values inappropriately (#1250)
Closes: #1227
This commit is contained in:
parent
409592f952
commit
4ec36ca489
@ -101,6 +101,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
|
||||
var activeRule = prop.actionGroups.LastOrDefault(rule => rule.InitiallyActive);
|
||||
if (activeRule == null || activeRule.Value is not float value) continue;
|
||||
if (activeRule.ControllingObject == null) continue; // default value is being inherited
|
||||
|
||||
value = Math.Clamp(value, 0, 100);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user