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

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);