diff options
author | Bastien Montagne <bastien@blender.org> | 2020-07-27 18:40:10 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-07-27 18:40:10 +0300 |
commit | 7fd68db84122e2b9373987393b17c6aa160ac549 (patch) | |
tree | f6d82bc69e897bfece9510c98646d8764019e3f0 /source | |
parent | 2e376cfcc8b0561ea56c192daa4c96642fe84083 (diff) | |
parent | 960ce1e394fac320788f95bfe4e7c8c4e07b7b4d (diff) |
Merge branch 'blender-v2.90-release'
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/object/object_data_transfer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_data_transfer.c b/source/blender/editors/object/object_data_transfer.c index 14bf73027d9..aebc77ec44b 100644 --- a/source/blender/editors/object/object_data_transfer.c +++ b/source/blender/editors/object/object_data_transfer.c @@ -508,13 +508,15 @@ static int data_transfer_exec(bContext *C, wmOperator *op) BLI_freelistN(&ctx_objects); - WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, NULL); + if (changed) { + DEG_relations_tag_update(CTX_data_main(C)); + WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, NULL); + } #if 0 /* TODO */ /* Note: issue with that is that if canceled, operator cannot be redone... Nasty in our case. */ return changed ? OPERATOR_FINISHED : OPERATOR_CANCELLED; #else - (void)changed; return OPERATOR_FINISHED; #endif } |