CURA-4525 wip objects menu

This commit is contained in:
Jack Ha 2017-11-06 14:02:22 +01:00
parent 5b368fbfd5
commit 5050124699
6 changed files with 144 additions and 6 deletions

View file

@ -140,9 +140,13 @@ class StartSliceJob(Job):
temp_list = []
for node in DepthFirstIterator(self._scene.getRoot()):
if type(node) is SceneNode and node.getMeshData() and node.getMeshData().getVertices() is not None:
if not getattr(node, "_outside_buildarea", False)\
or (node.callDecoration("getStack") and any(node.callDecoration("getStack").getProperty(setting, "value") for setting in self._not_printed_mesh_settings)):
temp_list.append(node)
# temp hack to filter on build plate 0
if (node.callDecoration("getBuildPlateNumber") == 0):
if not getattr(node, "_outside_buildarea", False)\
or (node.callDecoration("getStack") and any(node.callDecoration("getStack").getProperty(setting, "value") for setting in self._not_printed_mesh_settings)):
temp_list.append(node)
Job.yieldThread()
if temp_list: