mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:59:02 +08:00
Fix cases with no per-object settings stack
CURA-4705
This commit is contained in:
parent
b2ac2e0fc7
commit
61dd1c98fd
@ -139,6 +139,8 @@ class StartSliceJob(Job):
|
|||||||
for node in DepthFirstIterator(self._scene.getRoot()):
|
for node in DepthFirstIterator(self._scene.getRoot()):
|
||||||
if node.callDecoration("isSliceable") and type(node) is SceneNode and node.getMeshData() and node.getMeshData().getVertices() is not None:
|
if node.callDecoration("isSliceable") and type(node) is SceneNode and node.getMeshData() and node.getMeshData().getVertices() is not None:
|
||||||
per_object_stack = node.callDecoration("getStack")
|
per_object_stack = node.callDecoration("getStack")
|
||||||
|
is_non_printing_mesh = False
|
||||||
|
if per_object_stack:
|
||||||
is_non_printing_mesh = any(per_object_stack.getProperty(key, "value") for key in NON_PRINTING_MESH_SETTINGS)
|
is_non_printing_mesh = any(per_object_stack.getProperty(key, "value") for key in NON_PRINTING_MESH_SETTINGS)
|
||||||
|
|
||||||
if not getattr(node, "_outside_buildarea", False) or not is_non_printing_mesh:
|
if not getattr(node, "_outside_buildarea", False) or not is_non_printing_mesh:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user