mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Disallow concave shapes as geometry.
This commit is contained in:
@@ -38,7 +38,7 @@ Geometry *luax_checkgeometry(lua_State *L, int idx)
|
||||
int w_Geometry_getVertexCount(lua_State *L)
|
||||
{
|
||||
Geometry *geom = luax_checkgeometry(L, 1);
|
||||
lua_pushinteger(L, geom->getNumVertices());
|
||||
lua_pushinteger(L, geom->getVertexCount());
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user