up
This commit is contained in:
parent
6536d34eca
commit
083aa66436
1 changed files with 4 additions and 8 deletions
|
|
@ -99,14 +99,10 @@ class SLICENODE_PrusaslicerSlice(SliceNode):
|
||||||
return super().evaluate_output(socket_name, **kwargs)
|
return super().evaluate_output(socket_name, **kwargs)
|
||||||
|
|
||||||
def evaluate_for_index(self, index: int, operator=None) -> str:
|
def evaluate_for_index(self, index: int, operator=None) -> str:
|
||||||
mesh_groups: list[SlicingCollection | SlicingGroup] = self.resolve_multi_input("Slicing Group")
|
# Optimization: Only resolve the specific mesh input for this index
|
||||||
if index >= len(mesh_groups):
|
target_id = f"Slicing Group_ms_in_{index}"
|
||||||
return ""
|
mesh_data: SlicingCollection | SlicingGroup = self.resolve(target_id)
|
||||||
|
|
||||||
mesh_data = mesh_groups[index]
|
|
||||||
if not mesh_data:
|
|
||||||
return ""
|
|
||||||
|
|
||||||
conf_data = self.resolve("Config")
|
conf_data = self.resolve("Config")
|
||||||
overrides = self.resolve("Settings")
|
overrides = self.resolve("Settings")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue