You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
Creating a CollisionPolygon2D with polygon points < 3 throw error (not catched by editor) in debug console when saving scene or loading one
ERROR: canvas_item_add_polygon: Condition ' pointcount < 3 ' is true.
At: servers/visual/visual_server_canvas.cpp:668
Steps to reproduce:
Place CollisionPolygon2D with no additionnal properties and save the scene
Minimal reproduction project:
n/a
The text was updated successfully, but these errors were encountered:
This is expected, the node cannot work if it doesn't have enough points to form the simplest 2D polygon possible (a triangle).
Did you expect the editor to prevent the user from setting less than 3 points up-front?
I expect having only a visual warning in the editor as it was before 2d meshes commit, not an error of the engine.
Because having an empty CollisionPolygon2D that you populate at runtime is needed sometimes.
Godot version:
current master
OS/device including version:
Windows 10 64bits
Issue description:
Creating a CollisionPolygon2D with polygon points < 3 throw error (not catched by editor) in debug console when saving scene or loading one
ERROR: canvas_item_add_polygon: Condition ' pointcount < 3 ' is true.
At: servers/visual/visual_server_canvas.cpp:668
Steps to reproduce:
Place CollisionPolygon2D with no additionnal properties and save the scene
Minimal reproduction project:
n/a
The text was updated successfully, but these errors were encountered: