From c9bb316916ec211c661428aa853bd8738ca053a2 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Mon, 4 Dec 2023 10:11:21 +0100 Subject: [PATCH] Fix #115667: Sculpt face sets draw wrong with subdivision modifier Copy-paste mistake in 301731692e Above commit was getting ".sculpt_mask" instead of ".sculpt_face_set" attribute. --- .../draw/intern/mesh_extractors/extract_mesh_vbo_sculpt_data.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_sculpt_data.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_sculpt_data.cc index 63aaec2e92e..a4189780ae6 100644 --- a/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_sculpt_data.cc +++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_sculpt_data.cc @@ -163,7 +163,7 @@ static void extract_sculpt_data_init_subdiv(const DRWSubdivCache &subdiv_cache, }; gpuFaceSet *face_sets = (gpuFaceSet *)GPU_vertbuf_get_data(face_set_vbo); - const VArray cd_face_sets = *attributes.lookup(".sculpt_mask", ATTR_DOMAIN_POINT); + const VArray cd_face_sets = *attributes.lookup(".sculpt_face_set", ATTR_DOMAIN_FACE); GPUVertFormat *format = get_sculpt_data_format(); GPU_vertbuf_init_build_on_device(vbo, format, subdiv_cache.num_subdiv_loops); -- 2.30.2