Fix issue that no disallowed areas were show if there were no active objects

CURA-7106
This commit is contained in:
Jaime van Kessel 2020-06-24 15:18:20 +02:00
parent b1fe4793e4
commit 68807d99d2
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -208,8 +208,6 @@ class ExtruderManager(QObject):
# Get the extruders of all printable meshes in the scene # Get the extruders of all printable meshes in the scene
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. 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.
if not nodes:
return []
for node in nodes: for node in nodes:
extruder_stack_id = node.callDecoration("getActiveExtruder") extruder_stack_id = node.callDecoration("getActiveExtruder")