Add some comments to better understand the code - CURA-4404

This commit is contained in:
Diego Prado Gesto 2017-10-05 15:45:14 +02:00
parent 5e970fa5a5
commit 80ae45ac13
3 changed files with 15 additions and 2 deletions

View file

@ -33,6 +33,9 @@ class UserProfilesModel(ProfilesModel):
extruder_stacks = extruder_manager.getActiveExtruderStacks()
if multiple_extrusion:
# Place the active extruder at the front of the list.
# This is a workaround checking if there is an active_extruder or not before moving it to the front of the list.
# Actually, when a printer has multiple extruders, should exist always an active_extruder. However, in some
# cases the active_extruder is still None.
if active_extruder in extruder_stacks:
extruder_stacks.remove(active_extruder)
new_extruder_stacks = []