mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
Remove some duplicate addExtruder() and setNextStack() calls
This commit is contained in:
parent
ebbb7ad88f
commit
5e8dba5266
2 changed files with 1 additions and 3 deletions
|
@ -367,6 +367,7 @@ class ExtruderManager(QObject):
|
|||
# Single extrusion machine without an ExtruderStack, create it
|
||||
from cura.Settings.CuraStackBuilder import CuraStackBuilder
|
||||
CuraStackBuilder.createExtruderStackWithDefaultSetup(global_stack, 0)
|
||||
extruder_stack_0.setNextStack(global_stack)
|
||||
|
||||
elif extruder_stack_0.definition.getId() != expected_extruder_definition_0_id:
|
||||
Logger.log("e", "Single extruder printer [{printer}] expected extruder [{expected}], but got [{got}]. I'm making it [{expected}].".format(
|
||||
|
@ -374,8 +375,6 @@ class ExtruderManager(QObject):
|
|||
extruder_definition = container_registry.findDefinitionContainers(id = expected_extruder_definition_0_id)[0]
|
||||
extruder_stack_0.definition = extruder_definition
|
||||
|
||||
extruder_stack_0.setNextStack(global_stack)
|
||||
|
||||
## Get all extruder values for a certain setting.
|
||||
#
|
||||
# This is exposed to qml for display purposes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue