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
diff options
context:
space:
mode:
authorJoseph Eagar <joeedh@gmail.com>2022-03-22 19:54:27 +0300
committerJoseph Eagar <joeedh@gmail.com>2022-03-22 19:54:27 +0300
commit4c7ea01cbdc3ed0c37c9ea8e5cc223ee2fa1926b (patch)
treeb66fc3007968e9ca46bae9f2fce8ab4020fb5aec /source/blender/draw/intern/draw_cache_impl_mesh.c
parentbb3584e3cb13cb1115023066e74cbfa735410d1b (diff)
temp-sculpt-colors: Fix crash in redoing after
undoing first stroke of paint brush.
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_mesh.c')
-rw-r--r--source/blender/draw/intern/draw_cache_impl_mesh.c2
1 files changed, 2 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 2e1881b0346..2fa49d3025c 100644
--- a/source/blender/draw/intern/draw_cache_impl_mesh.c
+++ b/source/blender/draw/intern/draw_cache_impl_mesh.c
@@ -693,6 +693,8 @@ static DRW_MeshCDMask mesh_cd_calc_used_gpu_layers(const Object *object,
break;
}
+ /* Note: this is the logical index into the color attribute list,
+ not the customdata index. */
int layer_i = BKE_id_attribute_to_index(
(ID *)&query_mesh, layer, ATTR_DOMAIN_MASK_COLOR, CD_MASK_COLOR_ALL);