瀏覽代碼

adjusted for non-context override expression math

Krzysztof Krysiński 5 月之前
父節點
當前提交
e378e834d2
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      src/Drawie
  2. 3 3
      src/PixiEditor.ChangeableDocument/Changeables/Graph/Nodes/MathNode.cs

+ 1 - 1
src/Drawie

@@ -1 +1 @@
-Subproject commit 29ac832a30912042cf1f65a73eb4046ba3659309
+Subproject commit aa536e8bd572941f77c75755ad918eb09677712f

+ 3 - 3
src/PixiEditor.ChangeableDocument/Changeables/Graph/Nodes/MathNode.cs

@@ -81,9 +81,9 @@ public class MathNode : Node
             return context.NewFloat1(result);
         }
 
-        var xConst = x.ConstantValue;
-        var yConst = y.ConstantValue;
-        var zConst = z.ConstantValue;
+        var xConst = (double)x.GetConstant();
+        var yConst = (double)y.GetConstant();
+        var zConst = (double)z.GetConstant();
         
         var constValue = Mode.Value switch
         {