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:
authorBastien Montagne <bastien@blender.org>2020-06-18 21:34:02 +0300
committerBastien Montagne <bastien@blender.org>2020-06-18 21:34:39 +0300
commitd56444392f41e5115bb001af9fa50747f6295834 (patch)
treee03275a08409ec99fdc4f7578f25848d99962dd7
parent3aadf68b8836c9c238384b910cdb4490f8e06c65 (diff)
Fix T78004: Instant crash when Shift+D duplicating a Collection Instance.
Dummy mistake in own recent refactor of duplicate code...
-rw-r--r--source/blender/blenkernel/intern/object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index 7385fbf3f33..6d9dd573b3c 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -1804,7 +1804,7 @@ Object *BKE_object_duplicate(Main *bmain,
ID *id = obn->data;
ID *id_new = NULL;
- const bool need_to_duplicate_obdata = (id->newid == NULL);
+ const bool need_to_duplicate_obdata = (id != NULL) && (id->newid == NULL);
switch (obn->type) {
case OB_MESH: