This commit is contained in:
Nicolas Predella 2026-06-02 10:53:05 +03:00
parent 5a7f2300e9
commit f7f74a4cc1
3 changed files with 5 additions and 4 deletions

View file

@ -78,8 +78,8 @@ class MathNode(SliceNode):
def evaluate_output(self, socket_name: str, **_kwargs) -> math_type:
t = self.math_type
a: t = resolve_input(self.inputs[0])
b: t = resolve_input(self.inputs[1])
a: t = resolve_input(self.inputs[0]) or 0
b: t = resolve_input(self.inputs[1]) or 0
op = self.operation
try:

View file

@ -175,7 +175,8 @@ class SLICENODE_JoinGcode(SliceNodeJoiner):
from ....infra.blender.blender_slice_nodes_generic import resolve_input
gcode_input: list[str] = []
for input in self.inputs:
gcode_input += [resolve_input(input)] or [""]
gc: str = str(resolve_input(input))
gcode_input += [gc] or [""]
return "\n".join(gcode_input)
@register_class

View file

@ -39,7 +39,7 @@ class SLICENODE_JoinMesh(SliceNodeJoiner):
def evaluate_output(self, socket_name: str, **_kwargs) -> SlicingCollection:
from ....infra.blender.blender_slice_nodes_generic import resolve_input
merged_coll = resolve_input(self.inputs[0])
merged_coll = resolve_input(self.inputs[0]) or SlicingCollection([],'')
for input in self.inputs[1:]:
coll = resolve_input(input)