diff options
Diffstat (limited to 'source/blender/makesrna/intern/rna_object.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_object.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c index faa20e642cf..6e534868120 100644 --- a/source/blender/makesrna/intern/rna_object.c +++ b/source/blender/makesrna/intern/rna_object.c @@ -1600,7 +1600,12 @@ bool rna_Object_constraints_override_apply(Main *UNUSED(bmain), static ModifierData *rna_Object_modifier_new( Object *object, bContext *C, ReportList *reports, const char *name, int type) { - return ED_object_modifier_add(reports, CTX_data_main(C), CTX_data_scene(C), object, name, type); + ModifierData *md = ED_object_modifier_add( + reports, CTX_data_main(C), CTX_data_scene(C), object, name, type); + + WM_main_add_notifier(NC_OBJECT | ND_MODIFIER | NA_ADDED, object); + + return md; } static void rna_Object_modifier_remove(Object *object, |