[Bf-blender-cvs] [e113b402bd5] blender2.8: Fix Sculpt mask enable/disable does not update drawing immediatelly

Dalai Felinto noreply at git.blender.org
Tue Dec 18 19:40:15 CET 2018


Commit: e113b402bd57e66bff1604e7275d6b1eb98139ef
Author: Dalai Felinto
Date:   Tue Dec 18 16:36:58 2018 -0200
Branches: blender2.8
https://developer.blender.org/rBe113b402bd57e66bff1604e7275d6b1eb98139ef

Fix Sculpt mask enable/disable does not update drawing immediatelly

Reported as part of T59576.

===================================================================

M	source/blender/makesrna/intern/rna_sculpt_paint.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_sculpt_paint.c b/source/blender/makesrna/intern/rna_sculpt_paint.c
index 1086abd0c6f..2720f433cb2 100644
--- a/source/blender/makesrna/intern/rna_sculpt_paint.c
+++ b/source/blender/makesrna/intern/rna_sculpt_paint.c
@@ -395,7 +395,8 @@ static void rna_Sculpt_ShowMask_update(bContext *C, PointerRNA *UNUSED(ptr))
 	if (object->sculpt->pbvh != NULL) {
 		pbvh_show_mask_set(object->sculpt->pbvh, object->sculpt->show_mask);
 	}
-	WM_main_add_notifier(NC_OBJECT | ND_DRAW, object);
+	DEG_id_tag_update(&object->id, ID_RECALC_GEOMETRY);
+	WM_main_add_notifier(NC_OBJECT | ND_MODIFIER, object);
 }
 
 static char *rna_Sculpt_path(PointerRNA *UNUSED(ptr))



More information about the Bf-blender-cvs mailing list