#Polygon2D error Condition "idx < 0 || idx >= points.size()" is true. Continuing.

1 messages · Page 1 of 1 (latest)

stark roost
#

I'm getting the following errors with some of my polygons. I've read through the GitHub issues, but I'm still not sure what's causing them in my case. I've attached screenshots of my polygons in the engine in case someone can spot the issue. Thanks!

ERROR: scene/2d/polygon_2d.cpp:343 - Condition "idx < 0 || idx >= points.size()" is true. Continuing.
ERROR: servers/rendering/renderer_canvas_cull.cpp:1706 - Condition "pointcount < 3" is true.

robust glade
#

There is a polygon with less than 3 points defined in one of your shapes.

#

It may be easier to spot with a text editor

stark roost
#

Yesterday, I reviewed the source code relevant to my Polygon2D objects, and I did so again today, even having AI analyze it. I'm still not finding any polygons with fewer than three points. To be certain that internal vertices weren’t causing any issues, I removed them, but the problem persists.