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
path: root/source
diff options
context:
space:
mode:
authorAras Pranckevicius <aras@nesnausk.org>2022-08-02 21:01:54 +0300
committerAras Pranckevicius <aras@nesnausk.org>2022-08-02 21:01:54 +0300
commit5ddaf2fa7b878e8c6299033e9f9392a0a174dde5 (patch)
tree13f3d9072242fdb7fd7289fa0c40fea34e6f56ad /source
parentb010985e4ac49a98e12802567efdf6b38f7b5bf2 (diff)
parentead8260a49debaeb69967b2b4d2b62bf97333328 (diff)
Merge branch 'blender-v3.3-release'
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/object/object_add.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_add.cc b/source/blender/editors/object/object_add.cc
index 55366348f38..acd7a8e3c13 100644
--- a/source/blender/editors/object/object_add.cc
+++ b/source/blender/editors/object/object_add.cc
@@ -3715,14 +3715,15 @@ static int duplicate_exec(bContext *C, wmOperator *op)
}
}
CTX_DATA_END;
- /* Sync the collection now, after everything is duplicated. */
BKE_layer_collection_resync_allow();
- BKE_main_collection_sync(bmain);
if (source_bases_new_objects.is_empty()) {
return OPERATOR_CANCELLED;
}
+ /* Sync the collection now, after everything is duplicated. */
+ BKE_main_collection_sync(bmain);
+
/* After sync we can get to the new Base data, process it here. */
for (const auto &item : source_bases_new_objects) {
Object *ob_new = item.second;