diff options
author | ChrisTerBeke <c.terbeke@ultimaker.com> | 2017-10-10 17:27:14 +0300 |
---|---|---|
committer | ChrisTerBeke <c.terbeke@ultimaker.com> | 2017-10-10 17:27:14 +0300 |
commit | 216dcd33e061886a573f73decc98729b1cf33401 (patch) | |
tree | 069f6a6243fee6f3dc18fa7565e1d0d0150139b7 /cura/CuraApplication.py | |
parent | c7ccc3c1b8154171641e06ba85c4719360a17410 (diff) |
Make sure we do not have a crash when model is very small - CURA-4431
Diffstat (limited to 'cura/CuraApplication.py')
-rwxr-xr-x | cura/CuraApplication.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index ab348ae471..7d3e851b70 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -1359,6 +1359,10 @@ class CuraApplication(QtApplication): # Find node location offset_shape_arr, hull_shape_arr = ShapeArray.fromNode(node, min_offset = min_offset) + # If a model is to small then it will not contain any points + if offset_shape_arr is None and hull_shape_arr is None: + 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) |