Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cura
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2020-06-23 14:13:49 +0300
committerJaime van Kessel <nallath@gmail.com>2020-06-23 14:13:49 +0300
commit1f698fd6645d442fcf7a4faad0879a0209efaa39 (patch)
tree2a264c0467017b9a76b903b8791761f3dc13fd1f /cura
parent1d9c92c47fc2c716fa1a9a087236589f0471e97f (diff)
Further simplify the getUsedExtruderStacks function
Should be a tiny bit faster CURA-7106
Diffstat (limited to 'cura')
-rwxr-xr-xcura/Settings/ExtruderManager.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/cura/Settings/ExtruderManager.py b/cura/Settings/ExtruderManager.py
index 045da07cc3..cd3121fe75 100755
--- a/cura/Settings/ExtruderManager.py
+++ b/cura/Settings/ExtruderManager.py
@@ -206,16 +206,9 @@ class ExtruderManager(QObject):
return []
# Get the extruders of all printable meshes in the scene
- nodes = [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.
+ nodes = [node for node in DepthFirstIterator(scene_root) if node.isSelectable() and not node.callDecoration("isAntiOverhangMesh") and not node.callDecoration("isSupportMesh")] #type: ignore #Ignore type error because iter() should get called automatically by Python syntax.
- # Exclude anti-overhang meshes
- node_list = []
for node in nodes:
- if node.callDecoration("isAntiOverhangMesh") or node.callDecoration("isSupportMesh"):
- continue
- node_list.append(node)
-
- for node in node_list:
extruder_stack_id = node.callDecoration("getActiveExtruder")
if not extruder_stack_id:
# No per-object settings for this node