diff options
author | Bastien Montagne <bastien@blender.org> | 2020-06-18 21:34:02 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-06-18 21:34:39 +0300 |
commit | d56444392f41e5115bb001af9fa50747f6295834 (patch) | |
tree | e03275a08409ec99fdc4f7578f25848d99962dd7 /source/blender/blenkernel | |
parent | 3aadf68b8836c9c238384b910cdb4490f8e06c65 (diff) |
Fix T78004: Instant crash when Shift+D duplicating a Collection Instance.
Dummy mistake in own recent refactor of duplicate code...
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 2 |
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: |