Fix T97608: Sculpt sample color op is missing pmap
Add missing call to BKE_sculpt_update_object_for_edit.
This commit is contained in:
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.
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue