mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 00:05:57 +08:00
Loading single extrusion machine from file no longer gives exception
CURA-1263
This commit is contained in:
parent
dffb54d901
commit
47d0e95e53
@ -281,10 +281,10 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
|||||||
quality_changes_index = stack.getContainerIndex(old_container)
|
quality_changes_index = stack.getContainerIndex(old_container)
|
||||||
stack.replaceContainer(quality_changes_index, container)
|
stack.replaceContainer(quality_changes_index, container)
|
||||||
|
|
||||||
|
# TODO: This is nasty hack; this should be made way more robust (setter?)
|
||||||
|
if global_stack.getId() not in ExtruderManager.getInstance()._extruder_trains:
|
||||||
|
ExtruderManager.getInstance()._extruder_trains[global_stack.getId()] = {}
|
||||||
for stack in extruder_stacks:
|
for stack in extruder_stacks:
|
||||||
if global_stack.getId() not in ExtruderManager.getInstance()._extruder_trains:
|
|
||||||
ExtruderManager.getInstance()._extruder_trains[global_stack.getId()] = {}
|
|
||||||
#TODO: This is nasty hack; this should be made way more robust (setter?)
|
|
||||||
ExtruderManager.getInstance()._extruder_trains[global_stack.getId()][stack.getMetaDataEntry("position")] = stack
|
ExtruderManager.getInstance()._extruder_trains[global_stack.getId()][stack.getMetaDataEntry("position")] = stack
|
||||||
|
|
||||||
Logger.log("d", "Workspace loading is notifying rest of the code of changes...")
|
Logger.log("d", "Workspace loading is notifying rest of the code of changes...")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user