forked from bartvdbraak/blender
fix [#27616] Appending an object from a file brings all existing group links to scene
When appending from a blend file which had an object already linked, _but_ was not in any scenes. - the linked object would be instanced.
This commit is contained in:
parent
912db4cdb5
commit
252f7c9af8
@ -12742,11 +12742,17 @@ static void give_base_to_objects(Main *mainvar, Scene *sce, Library *lib, const
|
||||
/* when appending, make sure any indirectly loaded objects
|
||||
* get a base else they cant be accessed at all [#27437] */
|
||||
if(ob->id.us==1 && is_link==FALSE && ob->id.lib==lib) {
|
||||
|
||||
/* we may be appending from a scene where we already
|
||||
* have a linked object which is not in any scene [#27616] */
|
||||
if((ob->id.flag & LIB_PRE_EXISTING)==0) {
|
||||
|
||||
if(object_in_any_scene(mainvar, ob)==0) {
|
||||
do_it= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(do_it) {
|
||||
base= MEM_callocN( sizeof(Base), "add_ext_base");
|
||||
|
Loading…
Reference in New Issue
Block a user