mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Prevent crash when requested polygon is too large
CURA-6P
This commit is contained in:
parent
5e921698b2
commit
61def4ba25
1 changed files with 5 additions and 2 deletions
|
@ -80,8 +80,11 @@ class Arrange:
|
||||||
# After scaling (like up to 0.1 mm) the node might not have points
|
# After scaling (like up to 0.1 mm) the node might not have points
|
||||||
if not points.size:
|
if not points.size:
|
||||||
continue
|
continue
|
||||||
|
try:
|
||||||
shape_arr = ShapeArray.fromPolygon(points, scale = scale)
|
shape_arr = ShapeArray.fromPolygon(points, scale = scale)
|
||||||
|
except ValueError:
|
||||||
|
Logger.logException("w", "Unable to create polygon")
|
||||||
|
continue
|
||||||
arranger.place(0, 0, shape_arr)
|
arranger.place(0, 0, shape_arr)
|
||||||
|
|
||||||
# If a build volume was set, add the disallowed areas
|
# If a build volume was set, add the disallowed areas
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue