fix runtime errors + stack passing for noise

This commit is contained in:
mcDandy
2026-02-10 17:29:21 +01:00
parent 5f6f648636
commit 0ba8c8cf26
13 changed files with 32 additions and 20 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ from .Parser.MathExprLexer import MathExprLexer
from .Parser.MathExprParser import MathExprParser
import re
from .Stack import MrmthStack
import copy
class ModelMathNode(io.ComfyNode):
"""
@@ -76,7 +77,7 @@ class ModelMathNode(io.ComfyNode):
def execute(cls, V, F, Expression, length_mismatch="tile",stack={}) -> io.NodeOutput:
# Determine reference model for cloning
a = V.get("V0")
stack = stack.deepcopy() if stack is not None else {}
stack = copy.deepcopy(stack) if stack is not None else {}
if a is None:
# Try finding first valid model