Fix Sculpt mask enable/disable does not update drawing immediatelly
[blender.git] / source / blender / makesrna / intern / rna_sculpt_paint.c
index 1086abd0c6fb5a3b5cc259d2521d61a19638dfbd..2720f433cb2f2944e7734195e7a2bc805a6ca829 100644 (file)
@@ -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);
        }
        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))
 }
 
 static char *rna_Sculpt_path(PointerRNA *UNUSED(ptr))