Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2019-04-15 18:46:54 +0300
committerJaime van Kessel <nallath@gmail.com>2019-04-15 18:46:54 +0300
commite8d2e070d83194aae1490dee07ed73b6d34fecb8 (patch)
treecc0581525929ee8979ad9e0d9940e02ad003eda8 /plugins/SliceInfoPlugin
parent42b1a0e028b852f2c257df910131f0ca19f7e5aa (diff)
Dont calculate bounding box for non printing meshes
Fixes #5603
Diffstat (limited to 'plugins/SliceInfoPlugin')
-rwxr-xr-xplugins/SliceInfoPlugin/SliceInfo.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/SliceInfoPlugin/SliceInfo.py b/plugins/SliceInfoPlugin/SliceInfo.py
index 3763db5534..fecf3d16bb 100755
--- a/plugins/SliceInfoPlugin/SliceInfo.py
+++ b/plugins/SliceInfoPlugin/SliceInfo.py
@@ -181,6 +181,8 @@ class SliceInfo(QObject, Extension):
model = dict()
model["hash"] = node.getMeshData().getHash()
bounding_box = node.getBoundingBox()
+ if not bounding_box:
+ continue
model["bounding_box"] = {"minimum": {"x": bounding_box.minimum.x,
"y": bounding_box.minimum.y,
"z": bounding_box.minimum.z},