mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 05:29:01 +08:00
Fix typing
This commit is contained in:
parent
0ed4931056
commit
a3dea81d7d
@ -191,7 +191,11 @@ class ObjectsModel(ListModel):
|
|||||||
per_object_settings_count -= 1 # do not count this mesh type setting
|
per_object_settings_count -= 1 # do not count this mesh type setting
|
||||||
break
|
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"):
|
if node_mesh_type == "anti_overhang_mesh" or node.callDecoration("isGroup"):
|
||||||
# for anti overhang meshes and groups the extruder nr is irrelevant
|
# for anti overhang meshes and groups the extruder nr is irrelevant
|
||||||
extruder_number = -1
|
extruder_number = -1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user