mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
CURA-4785 fix slow cura for Custom FDM printer: now it's not checking for errors in unused extruders
This commit is contained in:
parent
e2bc14cc58
commit
204af1b6ed
1 changed files with 7 additions and 1 deletions
|
@ -395,7 +395,13 @@ class MachineManager(QObject):
|
||||||
|
|
||||||
if self._global_container_stack.hasErrors():
|
if self._global_container_stack.hasErrors():
|
||||||
return True
|
return True
|
||||||
for stack in ExtruderManager.getInstance().getMachineExtruders(self._global_container_stack.getId()):
|
|
||||||
|
# Not a very pretty solution, but the extruder manager doesn't really know how many extruders there are
|
||||||
|
machine_extruder_count = self._global_container_stack.getProperty("machine_extruder_count", "value")
|
||||||
|
extruder_stacks = ExtruderManager.getInstance().getMachineExtruders(self._global_container_stack.getId())
|
||||||
|
if len(extruder_stacks) > machine_extruder_count:
|
||||||
|
extruder_stacks = extruder_stacks[:machine_extruder_count] # we only have to check the used extruders
|
||||||
|
for stack in extruder_stacks:
|
||||||
if stack.hasErrors():
|
if stack.hasErrors():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue