Fix T74670: crash during copy paste of objects.
Embedded data should always be considered as outside of Main database here. Note that it's a bit of an edge case to decide whether those should always have their `LIB_TAG_NOMAIN` set too, or not? For now, let's keep things as they are here.
This commit is contained in:
parent
4669dfe2cc
commit
11e4827738
Notes:
blender-bot
2023-02-14 03:59:42 +01:00
Referenced by issue #74670, copy paste objects from one instance of blender to another instance results in immediate crash of instance being pasted into.
|
@ -162,7 +162,8 @@ static void lib_id_clear_library_data_ex(Main *bmain, ID *id)
|
|||
{
|
||||
bNodeTree *ntree = NULL;
|
||||
Key *key = NULL;
|
||||
const bool id_in_mainlist = (id->tag & LIB_TAG_NO_MAIN) == 0;
|
||||
const bool id_in_mainlist = (id->tag & LIB_TAG_NO_MAIN) == 0 &&
|
||||
(id->flag & LIB_EMBEDDED_DATA) == 0;
|
||||
|
||||
lib_id_library_local_paths(bmain, id->lib, id);
|
||||
|
||||
|
|
Loading…
Reference in New Issue