mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 18:36:02 +08:00
ConvexHull decorater no longer crashes if node has no MeshData
Fixes CURA-2706
This commit is contained in:
parent
a030b5bfc3
commit
cc549932c4
@ -200,6 +200,8 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
|||||||
if len(vertex_data) >= 4:
|
if len(vertex_data) >= 4:
|
||||||
convex_hull = hull.getConvexHull()
|
convex_hull = hull.getConvexHull()
|
||||||
offset_hull = self._offsetHull(convex_hull)
|
offset_hull = self._offsetHull(convex_hull)
|
||||||
|
else:
|
||||||
|
return Polygon([]) # Node has no mesh data, so just return an empty Polygon.
|
||||||
|
|
||||||
# Store the result in the cache
|
# Store the result in the cache
|
||||||
self._2d_convex_hull_mesh = mesh
|
self._2d_convex_hull_mesh = mesh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user