Code Cleanup: replace checks for ima->source with BKE_image_is_animated
[blender.git] / source / blender / nodes / composite / node_composite_tree.c
index 895d57c74f2aef7941fc43e93c652fe5c67f4ae8..39a9f74dea4cfe5810a2f5d97ccf7ed9f3586ced 100644 (file)
@@ -366,7 +366,7 @@ int ntreeCompositTagAnimated(bNodeTree *ntree)
                /* otherwise always tag these node types */
                if (node->type == CMP_NODE_IMAGE) {
                        Image *ima = (Image *)node->id;
-                       if (ima && ELEM(ima->source, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE)) {
+                       if (ima && BKE_image_is_animated(ima)) {
                                nodeUpdate(ntree, node);
                                tagged = 1;
                        }