[Bf-blender-cvs] [4aca02064f2] blender-v2.82-release: Fix T72905: EEVEE + UV Edit Unused Map

Jeroen Bakker noreply at git.blender.org
Fri Jan 17 07:51:36 CET 2020


Commit: 4aca02064f2bd581346f1e47b9ca7f641433955c
Author: Jeroen Bakker
Date:   Mon Jan 6 14:39:15 2020 +0100
Branches: blender-v2.82-release
https://developer.blender.org/rB4aca02064f2bd581346f1e47b9ca7f641433955c

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

===================================================================

M	source/blender/draw/intern/draw_cache_impl_mesh.c

===================================================================

diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c
index a3897148802..aadcc2a939a 100644
--- a/source/blender/draw/intern/draw_cache_impl_mesh.c
+++ b/source/blender/draw/intern/draw_cache_impl_mesh.c
@@ -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 &&



More information about the Bf-blender-cvs mailing list