Cleanup: simplify asserts in uv unwrapper

This commit is contained in:
Chris Blackbourn 2022-11-16 10:26:20 +13:00
parent 65944e7e84
commit da82d46a5a
1 changed files with 1 additions and 2 deletions

View File

@ -3927,9 +3927,8 @@ void GEO_uv_parametrizer_face_add(ParamHandle *phandle,
const bool *pin,
const bool *select)
{
param_assert(phash_lookup(phandle->hash_faces, key) == nullptr);
BLI_assert(nverts >= 3);
param_assert(phandle->state == PHANDLE_STATE_ALLOCATED);
param_assert(ELEM(nverts, 3, 4));
if (nverts > 4) {
/* ngon */