Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2020-01-06 16:39:15 +0300
committerJeroen Bakker <jeroen@blender.org>2020-01-17 09:51:06 +0300
commit4aca02064f2bd581346f1e47b9ca7f641433955c (patch)
tree1bf2a4c45fe6a5aa02959ece92c05355d8ac5b29 /source
parent9b3c9ab61a4feefc0b2ad2cc9227b81cfe5446d5 (diff)
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
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/intern/draw_cache_impl_mesh.c1
1 files changed, 1 insertions, 0 deletions
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 &&