diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-08-03 19:32:18 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-08-03 19:37:55 +0300 |
commit | 39e914cee7573fea073b19e039cfa04779b35c72 (patch) | |
tree | 5a599e145f98106dba27c029000b574dc976cfdd /source/blender/draw/engines/select/select_engine.c | |
parent | 57281b73c45197ccf78476b73ed85a3ea30699e9 (diff) |
Fix select engine buffer having wrong vertex size
The theme used was wrong and the vertex size is twice as set in the theme.
Diffstat (limited to 'source/blender/draw/engines/select/select_engine.c')
-rw-r--r-- | source/blender/draw/engines/select/select_engine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/select/select_engine.c b/source/blender/draw/engines/select/select_engine.c index 86b4a0ac727..96ab8a28e09 100644 --- a/source/blender/draw/engines/select/select_engine.c +++ b/source/blender/draw/engines/select/select_engine.c @@ -193,7 +193,7 @@ static void select_cache_init(void *vedata) if (e_data.context.select_mode & SCE_SELECT_VERTEX) { DRW_PASS_CREATE(psl->select_id_vert_pass, state); pd->shgrp_vert = DRW_shgroup_create(sh->select_id_flat, psl->select_id_vert_pass); - DRW_shgroup_uniform_float_copy(pd->shgrp_vert, "sizeVertex", G_draw.block.sizeVertex); + DRW_shgroup_uniform_float_copy(pd->shgrp_vert, "sizeVertex", 2 * G_draw.block.sizeVertex); } } |