Move checking for some global features outside of the per node loop

CURA-7106
This commit is contained in:
Jaime van Kessel 2020-06-23 13:24:22 +02:00
parent 1f698fd664
commit f9b288f3c6
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -221,8 +221,11 @@ class ExtruderManager(QObject):
# if there is no per-mesh stack, we use the build extruder for this mesh
stack_to_use = container_registry.findContainerStacks(id = extruder_stack_id)[0]
if not support_enabled:
support_enabled |= stack_to_use.getProperty("support_enable", "value")
if not support_bottom_enabled:
support_bottom_enabled |= stack_to_use.getProperty("support_bottom_enable", "value")
if not support_roof_enabled:
support_roof_enabled |= stack_to_use.getProperty("support_roof_enable", "value")
# Check limit to extruders