mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:29:02 +08:00
Exclude support blockers in used extruders
CURA-6440
This commit is contained in:
parent
6f3cd38682
commit
8da1f8fa7d
@ -224,7 +224,16 @@ class ExtruderManager(QObject):
|
|||||||
|
|
||||||
# Get the extruders of all printable meshes in the scene
|
# Get the extruders of all printable meshes in the scene
|
||||||
meshes = [node for node in DepthFirstIterator(scene_root) if isinstance(node, SceneNode) and node.isSelectable()] #type: ignore #Ignore type error because iter() should get called automatically by Python syntax.
|
meshes = [node for node in DepthFirstIterator(scene_root) if isinstance(node, SceneNode) and node.isSelectable()] #type: ignore #Ignore type error because iter() should get called automatically by Python syntax.
|
||||||
|
|
||||||
|
# Exclude anti-overhang meshes
|
||||||
|
mesh_list = []
|
||||||
for mesh in meshes:
|
for mesh in meshes:
|
||||||
|
stack = mesh.callDecoration("getStack")
|
||||||
|
if stack is not None and stack.getProperty("anti_overhang_mesh", "value"):
|
||||||
|
continue
|
||||||
|
mesh_list.append(mesh)
|
||||||
|
|
||||||
|
for mesh in mesh_list:
|
||||||
extruder_stack_id = mesh.callDecoration("getActiveExtruder")
|
extruder_stack_id = mesh.callDecoration("getActiveExtruder")
|
||||||
if not extruder_stack_id:
|
if not extruder_stack_id:
|
||||||
# No per-object settings for this node
|
# No per-object settings for this node
|
||||||
|
Loading…
x
Reference in New Issue
Block a user