[#24204] Packing of image sequence does not work
authorCampbell Barton <ideasman42@gmail.com>
Sun, 10 Oct 2010 21:39:24 +0000 (21:39 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 10 Oct 2010 21:39:24 +0000 (21:39 +0000)
this isnt supported but at least display a warning.

source/blender/blenkernel/intern/packedFile.c

index 919a724d1eccd9e051e82bf3f043645ed07c8172..5bbb3506a780fb343fa0785a92d15367ca9700c4 100644 (file)
@@ -214,10 +214,17 @@ void packAll(Main *bmain, ReportList *reports)
        Image *ima;
        VFont *vf;
        bSound *sound;
-
-       for(ima=bmain->image.first; ima; ima=ima->id.next)
-               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(ima=bmain->image.first; ima; ima=ima->id.next) {
+               if(ima->packedfile == NULL && ima->id.lib==NULL) { 
+                       if(ima->source==IMA_SRC_FILE) {
+                               ima->packedfile = newPackedFile(reports, ima->name);
+                       }
+                       else if(ELEM(ima->source, IMA_SRC_SEQUENCE, IMA_SRC_MOVIE)) {
+                               BKE_reportf(reports, RPT_WARNING, "Image '%s' skipped, movies and image sequences not supported.", ima->id.name+2);
+                       }
+               }
+       }
 
        for(vf=bmain->vfont.first; vf; vf=vf->id.next)
                if(vf->packedfile == NULL && vf->id.lib==NULL && strcmp(vf->name, "<builtin>") != 0)