Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2021-02-17 18:05:33 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2021-02-17 18:05:33 +0300
commit56f4397a3bf23e7df4defe8ca98abf01be3b04bd (patch)
tree32935df72430f7c3b24950517e75e903b82489ce /source/blender/makesrna
parent5b6a3a57fbf625efe306e0a1b17e7a553e850074 (diff)
parent6247b8cc77131ec52501ec8585e9f3de6056a746 (diff)
Merge branch 'blender-v2.92-release'
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_object.c7
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 1eb5ed3977a..01057ebaa07 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -1602,7 +1602,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,