mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-24 06:39:38 +08:00
Show correct number of settings for support and anti overhang meshes
This commit is contained in:
parent
3e64ed155d
commit
dbc4c69142
@ -191,6 +191,17 @@ 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
|
||||||
|
|
||||||
|
if per_object_settings_count > 0:
|
||||||
|
if node_mesh_type == "support_mesh":
|
||||||
|
# support meshes only allow support settings
|
||||||
|
per_object_settings_count = 0
|
||||||
|
for key in per_object_stack.getTop().getAllKeys():
|
||||||
|
if per_object_stack.getTop().getInstance(key).definition.isAncestor("support"):
|
||||||
|
per_object_settings_count += 1
|
||||||
|
elif node_mesh_type == "anti_overhang_mesh":
|
||||||
|
# anti overhang meshes ignore per model settings
|
||||||
|
per_object_settings_count = 0
|
||||||
|
|
||||||
extruder_position = node.callDecoration("getActiveExtruderPosition")
|
extruder_position = node.callDecoration("getActiveExtruderPosition")
|
||||||
if extruder_position is None:
|
if extruder_position is None:
|
||||||
extruder_number = -1
|
extruder_number = -1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user