This fixes a crash when loading a 3mf with a printer that has no extruders while the current global stack also has no extruders.

This was caused by trying to compare "extruders_enabled_count" which was None with an integer.

CURA-9714
This commit is contained in:
Joey de l'Arago 2022-10-06 11:44:30 +02:00
parent cb6c19c1c6
commit 8e883cf546

View File

@ -904,6 +904,7 @@ class MachineManager(QObject):
if self._global_container_stack is None \
or self._global_container_stack.getProperty(setting_key, "value") == new_value \
or self._global_container_stack.definitionChanges.getProperty("extruders_enabled_count", "value") is None \
or self._global_container_stack.definitionChanges.getProperty("extruders_enabled_count", "value") < 2:
return