mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Fix stack handling in project loading
CURA-5663
This commit is contained in:
parent
f35005c8ba
commit
af64d91587
@ -630,6 +630,11 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
|||||||
type = "extruder_train")
|
type = "extruder_train")
|
||||||
extruder_stack_dict = {stack.getMetaDataEntry("position"): stack for stack in extruder_stacks}
|
extruder_stack_dict = {stack.getMetaDataEntry("position"): stack for stack in extruder_stacks}
|
||||||
|
|
||||||
|
# Make sure that those extruders have the global stack as the next stack or later some value evaluation
|
||||||
|
# will fail.
|
||||||
|
for stack in extruder_stacks:
|
||||||
|
stack.setNextStack(global_stack, connect_signals = False)
|
||||||
|
|
||||||
Logger.log("d", "Workspace loading is checking definitions...")
|
Logger.log("d", "Workspace loading is checking definitions...")
|
||||||
# Get all the definition files & check if they exist. If not, add them.
|
# Get all the definition files & check if they exist. If not, add them.
|
||||||
definition_container_files = [name for name in cura_file_names if name.endswith(self._definition_container_suffix)]
|
definition_container_files = [name for name in cura_file_names if name.endswith(self._definition_container_suffix)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user