diff options
author | Lipu Fei <lipu.fei815@gmail.com> | 2018-05-23 17:31:29 +0300 |
---|---|---|
committer | Lipu Fei <lipu.fei815@gmail.com> | 2018-05-23 17:32:38 +0300 |
commit | 196bd3a73042d097e78f46a9abf968c042ab24cf (patch) | |
tree | 998cd1f039be068fbc7d8e996b6b03164c3721ee /cura/PreviewPass.py | |
parent | e89bd91960d9d13e0e92c138e6389bfda82ddd05 (diff) |
Add non-thumbnail-visible flag for creating previews
CURA-5373
Addition to the non-slicable meshes, the support meshes should also not
be included in the previews.
Diffstat (limited to 'cura/PreviewPass.py')
-rw-r--r-- | cura/PreviewPass.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cura/PreviewPass.py b/cura/PreviewPass.py index 4241a2f243..436e2719b7 100644 --- a/cura/PreviewPass.py +++ b/cura/PreviewPass.py @@ -79,10 +79,10 @@ class PreviewPass(RenderPass): for node in DepthFirstIterator(self._scene.getRoot()): if node.callDecoration("isSliceable") and node.getMeshData() and node.isVisible(): per_mesh_stack = node.callDecoration("getStack") - if node.callDecoration("isNonPrintingMesh"): + if node.callDecoration("isNonThumbnailVisibleMesh"): # Non printing mesh continue - elif per_mesh_stack is not None and per_mesh_stack.getProperty("support_mesh", "value") == True: + elif per_mesh_stack is not None and per_mesh_stack.getProperty("support_mesh", "value"): # Support mesh uniforms = {} shade_factor = 0.6 @@ -112,4 +112,3 @@ class PreviewPass(RenderPass): batch_support_mesh.render(render_camera) self.release() - |