[Bf-blender-cvs] [74b3b819034] blender2.8: Potential fix for sculpt mask diffuse color drawing update

Dalai Felinto noreply at git.blender.org
Tue Dec 18 19:48:25 CET 2018


Commit: 74b3b819034dc5f51189ea0375ed2408d5691321
Author: Dalai Felinto
Date:   Tue Dec 18 16:47:55 2018 -0200
Branches: blender2.8
https://developer.blender.org/rB74b3b819034dc5f51189ea0375ed2408d5691321

Potential fix for sculpt mask diffuse color drawing update

The sculpt mask diffuse color is not working right now. But when it does it
should follow on the fix for the sculpt mask drawing update (e113b402bd57).

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

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 2720f433cb2..609c602c27e 100644
--- a/source/blender/makesrna/intern/rna_sculpt_paint.c
+++ b/source/blender/makesrna/intern/rna_sculpt_paint.c
@@ -378,7 +378,8 @@ static void rna_Sculpt_ShowDiffuseColor_update(bContext *C, PointerRNA *UNUSED(p
 		if (ob->sculpt->pbvh)
 			pbvh_show_diffuse_color_set(ob->sculpt->pbvh, ob->sculpt->show_diffuse_color);
 
-		WM_main_add_notifier(NC_OBJECT | ND_DRAW, ob);
+		DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
+		WM_main_add_notifier(NC_OBJECT | ND_MODIFIER, ob);
 	}
 }



More information about the Bf-blender-cvs mailing list