diff options
author | A.Sasin <a.sasin@ultimaker.com> | 2017-10-10 16:47:18 +0300 |
---|---|---|
committer | A.Sasin <a.sasin@ultimaker.com> | 2017-10-10 16:47:18 +0300 |
commit | 7f887413954152f2de7dbfd0f6e985dcd63875b8 (patch) | |
tree | eca1ca6dacd82f9c87ad1571caa79efcad9afe2b /cura/CuraApplication.py | |
parent | 245eec931431de790552c100546ded6adc315c08 (diff) |
Fixed: Very small objects less then 0.1mm creates critical issues
CURA-4431
Diffstat (limited to 'cura/CuraApplication.py')
-rwxr-xr-x | cura/CuraApplication.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index ab348ae471..c2517093bb 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -1359,6 +1359,11 @@ class CuraApplication(QtApplication): # Find node location offset_shape_arr, hull_shape_arr = ShapeArray.fromNode(node, min_offset = min_offset) + if offset_shape_arr is None and hull_shape_arr is None: + Message(self._i18n_catalog.i18nc("@info:status","Could not load a model"), + title=self._i18n_catalog.i18nc("@info:title", "Warning")).show() + return + # Step is for skipping tests to make it a lot faster. it also makes the outcome somewhat rougher node, _ = arranger.findNodePlacement(node, offset_shape_arr, hull_shape_arr, step = 10) |