Fix T72905: EEVEE + UV Edit Unused Map

There is a cornercase when the user edits an uvmap, that is not part of
the material (yet). When this is the case the uvmap was not added to the
uv buffer and the 'pos' alias was not created.

This change will always request the active uv map when uv editing.

Reviewed By: fclem

Differential Revision: https://developer.blender.org/D6534
This commit is contained in:
Jeroen Bakker 2020-01-06 14:39:15 +01:00
parent 9b3c9ab61a
commit 4aca02064f
Notes: blender-bot 2023-02-14 04:31:04 +01:00
Referenced by issue #72905, Second UV set won't Display in UV Editor if in Look Dev Display Mode
1 changed files with 1 additions and 0 deletions

View File

@ -930,6 +930,7 @@ static void edituv_request_active_uv(MeshBatchCache *cache, Mesh *me)
{
DRW_MeshCDMask cd_needed;
mesh_cd_layers_type_clear(&cd_needed);
mesh_cd_calc_active_uv_layer(me, &cd_needed);
mesh_cd_calc_edit_uv_layer(me, &cd_needed);
BLI_assert(cd_needed.edit_uv != 0 &&