mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
CURA-4400 on load mesh, set the extruder to the default extruder
This commit is contained in:
parent
37d02da1f1
commit
01f4e7c0e3
1 changed files with 4 additions and 0 deletions
|
@ -1601,6 +1601,8 @@ class CuraApplication(QtApplication):
|
|||
fixed_nodes.append(node_)
|
||||
arranger = Arrange.create(fixed_nodes = fixed_nodes)
|
||||
min_offset = 8
|
||||
default_extruder_position = self.getMachineManager().defaultExtruderPosition
|
||||
default_extruder_id = self._global_container_stack.extruders[default_extruder_position].getId()
|
||||
|
||||
for original_node in nodes:
|
||||
|
||||
|
@ -1666,6 +1668,8 @@ class CuraApplication(QtApplication):
|
|||
|
||||
op = AddSceneNodeOperation(node, scene.getRoot())
|
||||
op.push()
|
||||
|
||||
node.callDecoration("setActiveExtruder", default_extruder_id)
|
||||
scene.sceneChanged.emit(node)
|
||||
|
||||
self.fileCompleted.emit(filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue