Code Cleanup: replace checks for ima->source with BKE_image_is_animated
[blender.git] / source / blender / blenkernel / intern / packedFile.c
index 5c2789a2c1c18e2735160fb73975765c983a8b33..b120ec0d1f1dbbeb598f0e3eadac67d98d44b3ec 100644 (file)
@@ -245,7 +245,7 @@ void packAll(Main *bmain, ReportList *reports)
                                ima->packedfile = newPackedFile(reports, ima->name, ID_BLEND_PATH(bmain, &ima->id));
                                tot ++;
                        }
-                       else if (ELEM(ima->source, IMA_SRC_SEQUENCE, IMA_SRC_MOVIE)) {
+                       else if (BKE_image_is_animated(ima)) {
                                BKE_reportf(reports, RPT_WARNING, "Image '%s' skipped, movies and image sequences not supported",
                                            ima->id.name + 2);
                        }