diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-09-29 11:47:10 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-09-29 11:47:40 +0300 |
commit | 6d3da28676d704c992e54d796071b872e0aced14 (patch) | |
tree | 1f070a297b67a2519e58028feca1791c4f840731 /source/blender/editors | |
parent | 4bdba62cb94978c94d29150d2fd426ca18aa8d0d (diff) |
Sculpt: fix draw face sets not updating on first stroke
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_face_set.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_face_set.cc b/source/blender/editors/sculpt_paint/sculpt_face_set.cc index 1327f40f95a..962ecf42691 100644 --- a/source/blender/editors/sculpt_paint/sculpt_face_set.cc +++ b/source/blender/editors/sculpt_paint/sculpt_face_set.cc @@ -248,6 +248,12 @@ void SCULPT_do_draw_face_sets_brush(Sculpt *sd, Object *ob, PBVHNode **nodes, in SculptSession *ss = ob->sculpt; Brush *brush = BKE_paint_brush(&sd->paint); + if (ss->pbvh) { + Mesh *mesh = BKE_mesh_from_object(ob); + BKE_pbvh_face_sets_color_set( + ss->pbvh, mesh->face_sets_color_seed, mesh->face_sets_color_default); + } + BKE_curvemapping_init(brush->curve); /* Threaded loop over nodes. */ |