executor fix
This commit is contained in:
parent
d4738c62e5
commit
d14266b10b
2 changed files with 2 additions and 6 deletions
|
|
@ -339,11 +339,6 @@ class SLICENODE_GetMesh(SliceNode):
|
||||||
|
|
||||||
sc: SlicingCollection = SlicingCollection(family, obj.name)
|
sc: SlicingCollection = SlicingCollection(family, obj.name)
|
||||||
|
|
||||||
for so in sc.objects:
|
|
||||||
so.assign_modifiers(modifiers)
|
|
||||||
so.object_type = part_type
|
|
||||||
so.extruder = extruder
|
|
||||||
|
|
||||||
return sc
|
return sc
|
||||||
|
|
||||||
@register_class
|
@register_class
|
||||||
|
|
@ -1575,6 +1570,7 @@ class SLICENODE_Executor(ExecSliceNode, SliceNodeJoiner):
|
||||||
|
|
||||||
def init(self, context):
|
def init(self, context):
|
||||||
self._init_exec()
|
self._init_exec()
|
||||||
|
self.add_multi_input(self.socket_type, "Links")
|
||||||
|
|
||||||
def draw_buttons(self, context, layout):
|
def draw_buttons(self, context, layout):
|
||||||
super().draw_buttons(context, layout)
|
super().draw_buttons(context, layout)
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ def get_gcode_name_from_metadata(gcode: str, default: str = "output") -> str:
|
||||||
if parts_match:
|
if parts_match:
|
||||||
try:
|
try:
|
||||||
gcode_info = json.loads(parts_match.group(1))
|
gcode_info = json.loads(parts_match.group(1))
|
||||||
names: list[str] = [str(v['name']) for v in gcode_info['objects']]
|
names: list[str] = [str(v['name'].split(".")[0]) for v in gcode_info['objects']]
|
||||||
counts = Counter(names)
|
counts = Counter(names)
|
||||||
return "-".join(f"{c}x{n}" if c > 1 else n for n, c in counts.items())
|
return "-".join(f"{c}x{n}" if c > 1 else n for n, c in counts.items())
|
||||||
except:
|
except:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue