skip instancing objects/groups when linking in a scene, the scene has references...
authorCampbell Barton <ideasman42@gmail.com>
Thu, 22 Apr 2010 18:19:21 +0000 (18:19 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 22 Apr 2010 18:19:21 +0000 (18:19 +0000)
source/blender/blenloader/intern/readfile.c

index a5349a90c3a7a2f39b8b6a56fd0c90798f7f4866..9fe2313ea66e9ce5d7bf5ca93029465b7fd5d9e1 100644 (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 {