Fix T52066: Grid Mesh UV's aren't correct
This commit is contained in:
parent
8009564503
commit
49c29dc82f
Notes:
blender-bot
2023-02-14 10:18:56 +01:00
Referenced by issue #52066, Grid Mesh "generate uv" does not create correct UV's
|
@ -839,7 +839,7 @@ void BM_mesh_calc_uvs_grid(
|
|||
const float dx = 1.0f / (float)(x_segments - 1);
|
||||
const float dy = 1.0f / (float)(y_segments - 1);
|
||||
float x = 0.0f;
|
||||
float y = 0.0f;
|
||||
float y = dy;
|
||||
|
||||
int loop_index;
|
||||
|
||||
|
@ -854,16 +854,16 @@ void BM_mesh_calc_uvs_grid(
|
|||
|
||||
switch (loop_index) {
|
||||
case 0:
|
||||
x += dx;
|
||||
y -= dy;
|
||||
break;
|
||||
case 1:
|
||||
y += dy;
|
||||
x += dx;
|
||||
break;
|
||||
case 2:
|
||||
x -= dx;
|
||||
y += dy;
|
||||
break;
|
||||
case 3:
|
||||
y -= dy;
|
||||
x -= dx;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue