mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Merge branch '3.4'
This commit is contained in:
commit
8202b62343
4 changed files with 17 additions and 10 deletions
|
@ -606,9 +606,10 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
|||
machine_name = self._container_registry.uniqueName(self._machine_info.name)
|
||||
|
||||
global_stack = CuraStackBuilder.createMachine(machine_name, self._machine_info.definition_id)
|
||||
extruder_stack_dict = global_stack.extruders
|
||||
if global_stack: #Only switch if creating the machine was successful.
|
||||
extruder_stack_dict = global_stack.extruders
|
||||
|
||||
self._container_registry.addContainer(global_stack)
|
||||
self._container_registry.addContainer(global_stack)
|
||||
else:
|
||||
# Find the machine
|
||||
global_stack = self._container_registry.findContainerStacks(name = self._machine_info.name, type = "machine")[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue