mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fix typing
This commit is contained in:
parent
0ed4931056
commit
a3dea81d7d
1 changed files with 5 additions and 1 deletions
|
@ -191,7 +191,11 @@ class ObjectsModel(ListModel):
|
|||
per_object_settings_count -= 1 # do not count this mesh type setting
|
||||
break
|
||||
|
||||
extruder_number = int(node.callDecoration("getActiveExtruderPosition"))
|
||||
extruder_position = node.callDecoration("getActiveExtruderPosition")
|
||||
if extruder_position is None:
|
||||
extruder_number = -1
|
||||
else:
|
||||
extruder_number = int(extruder_position)
|
||||
if node_mesh_type == "anti_overhang_mesh" or node.callDecoration("isGroup"):
|
||||
# for anti overhang meshes and groups the extruder nr is irrelevant
|
||||
extruder_number = -1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue