bugfix [#22573] image pack isn't working right
authorCampbell Barton <ideasman42@gmail.com>
Mon, 14 Jun 2010 00:10:11 +0000 (00:10 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 14 Jun 2010 00:10:11 +0000 (00:10 +0000)
own fault with recent commit to stop packing of generated images, now this works as expected.

source/blender/blenkernel/intern/packedFile.c

index dc4a9ee3bdcf002e59ca727d94d9a6666c7acf54..db457f043e7dd272339998f916512055c423d052 100644 (file)
@@ -216,7 +216,7 @@ void packAll(Main *bmain, ReportList *reports)
        bSound *sound;
 
        for(ima=bmain->image.first; ima; ima=ima->id.next)
-               if(ima->packedfile == NULL && ima->id.lib==NULL && ELEM3(ima->type, IMA_SRC_FILE, IMA_SRC_SEQUENCE, IMA_SRC_MOVIE))
+               if(ima->packedfile == NULL && ima->id.lib==NULL && ELEM3(ima->source, IMA_SRC_FILE, IMA_SRC_SEQUENCE, IMA_SRC_MOVIE))
                        ima->packedfile = newPackedFile(reports, ima->name);
 
        for(vf=bmain->vfont.first; vf; vf=vf->id.next)