Code Cleanup: replace checks for ima->source with BKE_image_is_animated
[blender.git] / source / blender / gpu / intern / gpu_draw.c
index 72547bf801e8bfe8003b81e0247bbcdda31ccbd8..f3f304b0e0443e392b85cf376fe7098d3d889bd5 100644 (file)
@@ -1298,7 +1298,7 @@ void GPU_free_images_anim(void)
 
        if (G.main)
                for (ima=G.main->image.first; ima; ima=ima->id.next)
-                       if (ELEM(ima->source, IMA_SRC_SEQUENCE, IMA_SRC_MOVIE))
+                       if (BKE_image_is_animated(ima))
                                GPU_free_image(ima);
 }