mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Fix crash when duplicating node with support blocker
Suggested & reported by smartavonics. Fixes #8581
This commit is contained in:
parent
2254a49c74
commit
5109bd3684
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ def findNodePlacement(nodes_to_arrange: List["SceneNode"], build_volume: "BuildV
|
||||||
converted_points = []
|
converted_points = []
|
||||||
hull_polygon = node.callDecoration("getConvexHull")
|
hull_polygon = node.callDecoration("getConvexHull")
|
||||||
|
|
||||||
if hull_polygon.getPoints() is not None: # numpy array has to be explicitly checked against None
|
if hull_polygon is not None and hull_polygon.getPoints() is not None: # numpy array has to be explicitly checked against None
|
||||||
for point in hull_polygon.getPoints():
|
for point in hull_polygon.getPoints():
|
||||||
converted_points.append(Point(point[0] * factor, point[1] * factor))
|
converted_points.append(Point(point[0] * factor, point[1] * factor))
|
||||||
item = Item(converted_points)
|
item = Item(converted_points)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue