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:
Diffstat (limited to 'source/blender/imbuf/intern/util.c')
-rw-r--r--source/blender/imbuf/intern/util.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/util.c b/source/blender/imbuf/intern/util.c
index 4cdfa852df1..8110a115471 100644
--- a/source/blender/imbuf/intern/util.c
+++ b/source/blender/imbuf/intern/util.c
@@ -50,6 +50,10 @@
#include "IMB_anim.h"
+#ifdef WITH_OPENEXR
+#include "openexr/openexr_api.h"
+#endif
+
#ifdef WITH_QUICKTIME
#include "quicktime_import.h"
#endif
@@ -97,7 +101,9 @@ static int IMB_ispic_name(char *name)
}
if (imb_is_a_png(buf)) return(PNG);
if (imb_is_a_targa(buf)) return(TGA);
-
+#ifdef WITH_OPENEXR
+ if (imb_is_a_openexr((uchar *)buf)) return(OPENEXR);
+#endif
if (imb_is_a_tiff(buf)) return(TIF);
/* radhdr: check if hdr format */