mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 13:49:39 +08:00
parent
42b1a0e028
commit
e8d2e070d8
@ -116,7 +116,8 @@ class SettingOverrideDecorator(SceneNodeDecorator):
|
|||||||
# Trigger slice/need slicing if the value has changed.
|
# Trigger slice/need slicing if the value has changed.
|
||||||
self._is_non_printing_mesh = self._evaluateIsNonPrintingMesh()
|
self._is_non_printing_mesh = self._evaluateIsNonPrintingMesh()
|
||||||
self._is_non_thumbnail_visible_mesh = self._evaluateIsNonThumbnailVisibleMesh()
|
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().needsSlicing()
|
||||||
Application.getInstance().getBackend().tickle()
|
Application.getInstance().getBackend().tickle()
|
||||||
|
|
||||||
|
@ -181,6 +181,8 @@ class SliceInfo(QObject, Extension):
|
|||||||
model = dict()
|
model = dict()
|
||||||
model["hash"] = node.getMeshData().getHash()
|
model["hash"] = node.getMeshData().getHash()
|
||||||
bounding_box = node.getBoundingBox()
|
bounding_box = node.getBoundingBox()
|
||||||
|
if not bounding_box:
|
||||||
|
continue
|
||||||
model["bounding_box"] = {"minimum": {"x": bounding_box.minimum.x,
|
model["bounding_box"] = {"minimum": {"x": bounding_box.minimum.x,
|
||||||
"y": bounding_box.minimum.y,
|
"y": bounding_box.minimum.y,
|
||||||
"z": bounding_box.minimum.z},
|
"z": bounding_box.minimum.z},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user