Ignore models without a convex hull when auto arranging

This commit is contained in:
fieldOfView 2017-11-09 19:21:05 +01:00
parent 316ae49b0b
commit 9c3e50c494

View file

@ -52,6 +52,8 @@ class Arrange:
# Place all objects fixed nodes
for fixed_node in fixed_nodes:
vertices = fixed_node.callDecoration("getConvexHull")
if not vertices:
continue
points = copy.deepcopy(vertices._points)
shape_arr = ShapeArray.fromPolygon(points, scale = scale)
arranger.place(0, 0, shape_arr)