From 97a5e2ea1bcfffca18be7fdaaa1d6ca71b1d81db Mon Sep 17 00:00:00 2001 From: Sean Kim Date: Thu, 24 Jul 2025 16:35:05 +0200 Subject: [PATCH] Fix #142963: Crash when using Texture Paint sample color Introduced in d0b749beb8334c6557065bff13f7b38bbf231381 Pull Request: https://projects.blender.org/blender/blender/pulls/143015 --- source/blender/editors/sculpt_paint/paint_sample_color.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/sculpt_paint/paint_sample_color.cc b/source/blender/editors/sculpt_paint/paint_sample_color.cc index 5418e20a25e..7fddc7853ac 100644 --- a/source/blender/editors/sculpt_paint/paint_sample_color.cc +++ b/source/blender/editors/sculpt_paint/paint_sample_color.cc @@ -94,14 +94,14 @@ static blender::float2 imapaint_pick_uv(const Mesh *mesh_eval, ma = BKE_object_material_get(ob_eval, material_indices[face_i] + 1); slot = &ma->texpaintslot[ma->paint_active_slot]; if (slot && slot->uvname) { - uv_map = *attributes.lookup(slot->uvname, bke::AttrDomain::Face); + uv_map = *attributes.lookup(slot->uvname, bke::AttrDomain::Corner); } } if (uv_map.is_empty()) { const char *active_name = CustomData_get_active_layer_name(&mesh_eval->corner_data, CD_PROP_FLOAT2); - uv_map = *attributes.lookup(active_name, bke::AttrDomain::Face); + uv_map = *attributes.lookup(active_name, bke::AttrDomain::Corner); } return bke::mesh_surface_sample::sample_corner_attribute_with_bary_coords(