Dont calculate bounding box for non printing meshes

Fixes #5603
This commit is contained in:
Jaime van Kessel 2019-04-15 17:46:54 +02:00
parent 42b1a0e028
commit e8d2e070d8
2 changed files with 4 additions and 1 deletions

View file

@ -116,7 +116,8 @@ class SettingOverrideDecorator(SceneNodeDecorator):
# Trigger slice/need slicing if the value has changed.
self._is_non_printing_mesh = self._evaluateIsNonPrintingMesh()
self._is_non_thumbnail_visible_mesh = self._evaluateIsNonThumbnailVisibleMesh()
# Only calculate the bounding box of the mesh if it's an actual mesh (and not a helper)
self._node.setCalculateBoundingBox(not self._is_non_printing_mesh)
Application.getInstance().getBackend().needsSlicing()
Application.getInstance().getBackend().tickle()