mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-22 04:29:01 +08:00
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:
parent
cb6c19c1c6
commit
8e883cf546
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user