Fix T37465: UV Coords we're incorrect when converting from a curve

This commit is contained in:
Campbell Barton 2013-11-22 20:38:48 +11:00
parent d44c79b7c9
commit 0469971b05
Notes: blender-bot 2023-02-14 11:35:48 +01:00
Referenced by issue #37465, UV of closed curves don't have V-space split after converting to mesh
1 changed files with 2 additions and 0 deletions

View File

@ -1351,6 +1351,8 @@ int BKE_mesh_nurbs_displist_to_mdata(Object *ob, ListBase *dispbase,
mloopuv->uv[1] = (v % dl->nr) / (float)orco_sizeu;
/* cyclic correction */
if ((i == 1 || i == 2) && mloopuv->uv[0] == 0.0f)
mloopuv->uv[0] = 1.0f;
if ((i == 0 || i == 1) && mloopuv->uv[1] == 0.0f)
mloopuv->uv[1] = 1.0f;
}