mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Show correct number of settings for support and anti overhang meshes
This commit is contained in:
parent
3e64ed155d
commit
dbc4c69142
1 changed files with 11 additions and 0 deletions
|
@ -191,6 +191,17 @@ class ObjectsModel(ListModel):
|
|||
per_object_settings_count -= 1 # do not count this mesh type setting
|
||||
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")
|
||||
if extruder_position is None:
|
||||
extruder_number = -1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue