mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
love.math.triangulate's error message when there are too few vertices includes the given vert count.
This commit is contained in:
@@ -179,7 +179,7 @@ int w_triangulate(lua_State *L)
|
||||
}
|
||||
|
||||
if (vertices.size() < 3)
|
||||
return luaL_error(L, "Need at least 3 vertices to triangulate");
|
||||
return luaL_error(L, "Need at least 3 vertices to triangulate (got %d).", (int)vertices.size());
|
||||
|
||||
std::vector<Triangle> triangles;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user