diff options
author | Jaime van Kessel <nallath@gmail.com> | 2019-04-15 18:46:54 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2019-04-15 18:46:54 +0300 |
commit | e8d2e070d83194aae1490dee07ed73b6d34fecb8 (patch) | |
tree | cc0581525929ee8979ad9e0d9940e02ad003eda8 /plugins/SliceInfoPlugin | |
parent | 42b1a0e028b852f2c257df910131f0ca19f7e5aa (diff) |
Dont calculate bounding box for non printing meshes
Fixes #5603
Diffstat (limited to 'plugins/SliceInfoPlugin')
-rwxr-xr-x | plugins/SliceInfoPlugin/SliceInfo.py | 2 |
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}, |