mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 05:19:08 +08:00
Prevent crash when requested polygon is too large
CURA-6P
This commit is contained in:
parent
5e921698b2
commit
61def4ba25
@ -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…
x
Reference in New Issue
Block a user