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:
Lipu Fei 2018-05-23 16:31:29 +02:00
parent e89bd91960
commit 196bd3a730
3 changed files with 13 additions and 4 deletions

View file

@ -48,7 +48,7 @@ class Snapshot:
# determine zoom and look at
bbox = None
for node in DepthFirstIterator(root):
if node.callDecoration("isSliceable") and node.getMeshData() and node.isVisible() and not node.callDecoration("isNonPrintingMesh"):
if node.callDecoration("isSliceable") and node.getMeshData() and node.isVisible() and not node.callDecoration("isNonThumbnailVisibleMesh"):
if bbox is None:
bbox = node.getBoundingBox()
else: