skip instancing objects/groups when linking in a scene, the scene has references to the objects/groups its self.

This commit is contained in:
Campbell Barton
2010-04-22 18:19:21 +00:00
parent e57303e5ac
commit 5b666c95ce

View File

@@ -12096,7 +12096,10 @@ static void library_append_end(const bContext *C, Main *mainl, FileData **fd, in
/* give a base to loose objects. If group append, do it for objects too */
if(scene) {
if(idcode==ID_GR) {
if(idcode==ID_SCE) {
/* dont instance anything when linking in scenes, assume the scene its self instances the data */
}
else if(idcode==ID_GR) {
if (flag & FILE_LINK) {
give_base_to_objects(mainvar, scene, NULL, 0);
} else {