mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-11 23:19:00 +08:00
fix: shape changer preview overrides default blendshape values inappropriately
Closes: #1227
This commit is contained in:
parent
a71af7ae0a
commit
e27e04f34c
@ -101,6 +101,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
|
|
||||||
var activeRule = prop.actionGroups.LastOrDefault(rule => rule.InitiallyActive);
|
var activeRule = prop.actionGroups.LastOrDefault(rule => rule.InitiallyActive);
|
||||||
if (activeRule == null || activeRule.Value is not float value) continue;
|
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);
|
value = Math.Clamp(value, 0, 100);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user