Code Cleanup: replace checks for ima->source with BKE_image_is_animated
[blender.git] / source / blender / makesrna / intern / rna_image_api.c
index 71c0fa5584c328f0dd9894f9bc42a62814107e2a..bcf75df31ed6bfcc51035694437537e47f0a3289 100644 (file)
@@ -166,7 +166,7 @@ static void rna_Image_unpack(Image *image, ReportList *reports, int method)
        if (!image->packedfile) {
                BKE_report(reports, RPT_ERROR, "Image not packed");
        }
-       else if (image->source == IMA_SRC_SEQUENCE || image->source == IMA_SRC_MOVIE) {
+       else if (BKE_image_is_animated(image)) {
                BKE_report(reports, RPT_ERROR, "Unpacking movies or image sequences not supported");
                return;
        }