Fix T97608: Sculpt sample color op is missing pmap

Add missing call to BKE_sculpt_update_object_for_edit.
This commit is contained in:
Joseph Eagar 2022-04-28 23:19:06 -07:00
parent 720e19a833
commit 7f0163118b
Notes: blender-bot 2023-02-13 22:39:58 +01:00
Referenced by issue #97608, Crash. Vertex painting. Picking vertex color  with S crashes Blender.
1 changed files with 2 additions and 0 deletions

View File

@ -769,6 +769,8 @@ static int sculpt_sample_color_invoke(bContext *C, wmOperator *op, const wmEvent
return OPERATOR_CANCELLED;
}
BKE_sculpt_update_object_for_edit(CTX_data_depsgraph_pointer(C), ob, true, false, false);
/* No color attribute? Set color to white. */
if (!SCULPT_has_colors(ss)) {
copy_v4_fl(active_vertex_color, 1.0f);