From 4ec36ca489c2b14f5adf05d06f62342a75bd36e7 Mon Sep 17 00:00:00 2001 From: bd_ Date: Wed, 2 Oct 2024 19:48:38 -0700 Subject: [PATCH] fix: shape changer preview overrides default blendshape values inappropriately (#1250) Closes: #1227 --- Editor/ReactiveObjects/ShapeChangerPreview.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Editor/ReactiveObjects/ShapeChangerPreview.cs b/Editor/ReactiveObjects/ShapeChangerPreview.cs index d17c7a37..2ca011c7 100644 --- a/Editor/ReactiveObjects/ShapeChangerPreview.cs +++ b/Editor/ReactiveObjects/ShapeChangerPreview.cs @@ -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);