Clément Espeute 9 tháng trước cách đây
mục cha
commit
9e8e0aa9cc
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      hide/view/animgraph/AnimGraphEditor.hx

+ 6 - 2
hide/view/animgraph/AnimGraphEditor.hx

@@ -152,12 +152,16 @@ class AnimGraphEditor extends GenericGraphEditor {
                 slider.on("input", (e) -> {
                     var value = Std.parseFloat(slider.val());
                     param.runtimeValue = value;
-                    runtimeParam?.runtimeValue = value;
+                    if (runtimeParam != null) {
+                        runtimeParam.runtimeValue = value;
+                    }
                 });
                 slider.change((e) -> {
                     var value = Std.parseFloat(slider.val());
                     param.runtimeValue = value;
-                    runtimeParam?.runtimeValue = value;
+                    if (runtimeParam != null) {
+                        runtimeParam.runtimeValue = value;
+                    }
                 });
 
                 var line = new Element("<li></li>").appendTo(props);