mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 05:37:50 -06:00
Don't loop extruders before checking if there is a global extruder stack
This commit is contained in:
parent
b4a40915bb
commit
b90a9c490d
1 changed files with 2 additions and 2 deletions
|
@ -883,10 +883,10 @@ class MachineManager(QObject):
|
||||||
# the current root material was changed.
|
# the current root material was changed.
|
||||||
def _onRootMaterialChanged(self):
|
def _onRootMaterialChanged(self):
|
||||||
self._current_root_material_id = {}
|
self._current_root_material_id = {}
|
||||||
for position in self._global_container_stack.extruders:
|
|
||||||
self._current_root_material_id[position] = self._global_container_stack.extruders[position].material.getMetaDataEntry("base_file")
|
|
||||||
|
|
||||||
if self._global_container_stack:
|
if self._global_container_stack:
|
||||||
|
for position in self._global_container_stack.extruders:
|
||||||
|
self._current_root_material_id[position] = self._global_container_stack.extruders[position].material.getMetaDataEntry("base_file")
|
||||||
self._current_root_material_name = {}
|
self._current_root_material_name = {}
|
||||||
for position in self._global_container_stack.extruders:
|
for position in self._global_container_stack.extruders:
|
||||||
if position not in self._current_root_material_name:
|
if position not in self._current_root_material_name:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue