Fix T78004: Instant crash when Shift+D duplicating a Collection Instance.

Dummy mistake in own recent refactor of duplicate code...
This commit is contained in:
Bastien Montagne 2020-06-18 20:34:02 +02:00
parent 3aadf68b88
commit d56444392f
Notes: blender-bot 2023-02-14 01:07:44 +01:00
Referenced by issue #78020, Duplicate collection every time crashed Blender
Referenced by issue #78004, Instant crash when Shift+D duplicating a Collection Instance
1 changed files with 1 additions and 1 deletions

View File

@ -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: