Browse Source

Calculate bounding box for helper meshes

Lipu Fei 5 years ago
parent
commit
27d6b9b53b

+ 0 - 2
cura/Settings/SettingOverrideDecorator.py

@@ -117,8 +117,6 @@ 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()
 

+ 2 - 0
plugins/SupportEraser/SupportEraser.py

@@ -98,8 +98,10 @@ class SupportEraser(Tool):
 
         node.setName("Eraser")
         node.setSelectable(True)
+        node.setCalculateBoundingBox(True)
         mesh = self._createCube(10)
         node.setMeshData(mesh.build())
+        node.calculateBoundingBoxMesh()
 
         active_build_plate = CuraApplication.getInstance().getMultiBuildPlateModel().activeBuildPlate
         node.addDecorator(BuildPlateDecorator(active_build_plate))