mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 10:47:49 -06:00
Select default extruder if a setting has an extruder nr that's not available
Fixes Sentry issue CURA-G2.
This commit is contained in:
parent
ea31d9d41b
commit
3d399672d0
1 changed files with 2 additions and 0 deletions
|
@ -248,6 +248,8 @@ class ExtruderManager(QObject):
|
||||||
extruder_nr = int(global_stack.getProperty(extruder_nr_feature_name, "value"))
|
extruder_nr = int(global_stack.getProperty(extruder_nr_feature_name, "value"))
|
||||||
if extruder_nr == -1:
|
if extruder_nr == -1:
|
||||||
continue
|
continue
|
||||||
|
if str(extruder_nr) not in self.extruderIds:
|
||||||
|
extruder_nr = int(self._application.getMachineManager().defaultExtruderPosition)
|
||||||
used_extruder_stack_ids.add(self.extruderIds[str(extruder_nr)])
|
used_extruder_stack_ids.add(self.extruderIds[str(extruder_nr)])
|
||||||
|
|
||||||
# Check support extruders
|
# Check support extruders
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue