Fix Sculpt mask enable/disable does not update drawing immediatelly
Reported as part of T59576.
This commit is contained in:
parent
1ca7b6ca85
commit
e113b402bd
Notes:
blender-bot
2023-10-04 09:42:55 +02:00
Referenced by issue #59576, Sculpt Mode Mask invisible
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue