[Bf-blender-cvs] [841df2b98e7] master: Fix T69723: Crash with mask expand operator while in rendered or material view
Pablo Dobarro
noreply at git.blender.org
Tue Sep 10 17:43:57 CEST 2019
Commit: 841df2b98e785649a6346d3c6e560a168186eef3
Author: Pablo Dobarro
Date: Tue Sep 10 17:41:54 2019 +0200
Branches: master
https://developer.blender.org/rB841df2b98e785649a6346d3c6e560a168186eef3
Fix T69723: Crash with mask expand operator while in rendered or material view
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D5745
===================================================================
M source/blender/editors/sculpt_paint/sculpt.c
===================================================================
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 688adc56ef5..fc6ee90fa97 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -8676,6 +8676,7 @@ static void sculpt_expand_task_cb(void *__restrict userdata,
static int sculpt_mask_expand_modal(bContext *C, wmOperator *op, const wmEvent *event)
{
+ Depsgraph *depsgraph = CTX_data_depsgraph_pointer(C);
Object *ob = CTX_data_active_object(C);
SculptSession *ss = ob->sculpt;
Sculpt *sd = CTX_data_tool_settings(C)->sculpt;
@@ -8716,6 +8717,7 @@ static int sculpt_mask_expand_modal(bContext *C, wmOperator *op, const wmEvent *
};
int smooth_iterations = RNA_int_get(op->ptr, "smooth_iterations");
+ BKE_sculpt_update_object_for_edit(depsgraph, ob, true, false);
for (int i = 0; i < smooth_iterations; i++) {
TaskParallelSettings settings;
BLI_parallel_range_settings_defaults(&settings);
More information about the Bf-blender-cvs
mailing list