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:
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
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue