Code Cleanup: replace checks for ima->source with BKE_image_is_animated
[blender.git] / source / blender / blenkernel / intern / texture.c
index ccbccac85cf8c3038208736d05df3e884068479c..542069d9b878e0c8774286772a01b44ee3c69c3f 100644 (file)
@@ -1422,9 +1422,7 @@ void BKE_free_oceantex(struct OceanTex *ot)
 /* ------------------------------------------------------------------------- */
 bool BKE_texture_dependsOnTime(const struct Tex *texture)
 {
-       if (texture->ima &&
-           ELEM(texture->ima->source, IMA_SRC_SEQUENCE, IMA_SRC_MOVIE))
-       {
+       if (texture->ima && BKE_image_is_animated(texture->ima)) {
                return 1;
        }
        else if (texture->adt) {