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/makesrna/intern/rna_image_api.c
parent800e2283aa986c5cc57e833ef80569cf26d0de2f (diff)
Code Cleanup: replace checks for ima->source with BKE_image_is_animated
Diffstat (limited to 'source/blender/makesrna/intern/rna_image_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_image_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_image_api.c b/source/blender/makesrna/intern/rna_image_api.c
index 71c0fa5584c..bcf75df31ed 100644
--- a/source/blender/makesrna/intern/rna_image_api.c
+++ b/source/blender/makesrna/intern/rna_image_api.c
@@ -166,7 +166,7 @@ static void rna_Image_unpack(Image *image, ReportList *reports, int method)
if (!image->packedfile) {
BKE_report(reports, RPT_ERROR, "Image not packed");
}
- else if (image->source == IMA_SRC_SEQUENCE || image->source == IMA_SRC_MOVIE) {
+ else if (BKE_image_is_animated(image)) {
BKE_report(reports, RPT_ERROR, "Unpacking movies or image sequences not supported");
return;
}