Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-01-13 21:59:58 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-01-13 21:59:58 +0400
commitc48c62a8314c51608e7b34ac0df474ce3fca0b02 (patch)
tree9d7e11b5fd56937d98d02bc5f1e19ba15380950f /source/blender/modifiers/intern/MOD_util.c
parent800e2283aa986c5cc57e833ef80569cf26d0de2f (diff)
Code Cleanup: replace checks for ima->source with BKE_image_is_animated
Diffstat (limited to 'source/blender/modifiers/intern/MOD_util.c')
-rw-r--r--source/blender/modifiers/intern/MOD_util.c3
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,