Font:getVertices wrap is optional;

This commit is contained in:
bjorn 2022-09-02 19:21:55 -07:00
parent ed035f9e81
commit 08f0ca7434
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ static int l_lovrFontGetVertices(lua_State* L) {
uint32_t count;
ColoredString stack;
ColoredString* strings = luax_checkcoloredstrings(L, 2, &count, &stack);
float wrap = luax_checkfloat(L, 3);
float wrap = luax_optfloat(L, 3, 0.f);
HorizontalAlign halign = luax_checkenum(L, 4, HorizontalAlign, "center");
VerticalAlign valign = luax_checkenum(L, 5, VerticalAlign, "middle");
size_t totalLength = 0;