diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-13 21:59:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-13 21:59:58 +0400 |
commit | c48c62a8314c51608e7b34ac0df474ce3fca0b02 (patch) | |
tree | 9d7e11b5fd56937d98d02bc5f1e19ba15380950f /source/blender/modifiers | |
parent | 800e2283aa986c5cc57e833ef80569cf26d0de2f (diff) |
Code Cleanup: replace checks for ima->source with BKE_image_is_animated
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_util.c b/source/blender/modifiers/intern/MOD_util.c index bde30fb23ae..e205cd6b12d 100644 --- a/source/blender/modifiers/intern/MOD_util.c +++ b/source/blender/modifiers/intern/MOD_util.c @@ -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, |