mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
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.
This commit is contained in:
parent
e89bd91960
commit
196bd3a730
3 changed files with 13 additions and 4 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue