Browse Source

Merge pull request #936 from PixiEditor/fixes/node-math

adjusted for non-context override expression math
Krzysztof Krysiński 3 months ago
parent
commit
9a2d303e4d

+ 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);
             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
         var constValue = Mode.Value switch
         {
         {