Code Cleanup: replace checks for ima->source with BKE_image_is_animated
[blender.git] / source / blender / modifiers / intern / MOD_util.c
index bde30fb23ae35ae6b09edea75c1f5ed824982770..e205cd6b12ddc0456af6b9c3153b814497079166 100644 (file)
@@ -66,8 +66,9 @@ void modifier_init_texture(Scene *scene, Tex *tex)
        if (!tex)
                return;
 
-       if (tex->ima && ELEM(tex->ima->source, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE))
+       if (tex->ima && BKE_image_is_animated(tex->ima)) {
                BKE_image_user_frame_calc(&tex->iuser, scene->r.cfra, 0);
+       }
 }
 
 void get_texture_coords(MappingInfoModifierData *dmd, Object *ob,