[Bf-blender-cvs] [7f0163118bb] master: Fix T97608: Sculpt sample color op is missing pmap
Joseph Eagar
noreply at git.blender.org
Fri Apr 29 08:20:05 CEST 2022
Commit: 7f0163118bb702afe143fe0aa55210cc10c43512
Author: Joseph Eagar
Date: Thu Apr 28 23:19:06 2022 -0700
Branches: master
https://developer.blender.org/rB7f0163118bb702afe143fe0aa55210cc10c43512
Fix T97608: Sculpt sample color op is missing pmap
Add missing call to BKE_sculpt_update_object_for_edit.
===================================================================
M source/blender/editors/sculpt_paint/sculpt_ops.c
===================================================================
diff --git a/source/blender/editors/sculpt_paint/sculpt_ops.c b/source/blender/editors/sculpt_paint/sculpt_ops.c
index e02c1b1aac3..2b5a20205bd 100644
--- a/source/blender/editors/sculpt_paint/sculpt_ops.c
+++ b/source/blender/editors/sculpt_paint/sculpt_ops.c
@@ -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);
More information about the Bf-blender-cvs
mailing list