瀏覽代碼

[gradient] cdb Preview now properly works with multiple targets

Clément Espeute 11 月之前
父節點
當前提交
972e01cfcd
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      hide/comp/GradientEditor.hx

+ 1 - 0
hide/comp/GradientEditor.hx

@@ -661,6 +661,7 @@ class GradientEditor extends Popup {
 
             for (prefab in currentPrefabs) {
                 prefabToRefresh.set(prefab, true);
+                var propPath = propPath.copy();
                 var currentProps = getObjectPathRec(propPath, prefab, false);
 
                 if (value != null) {