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-02-03 12:33:17 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-03 12:37:40 +0400
commitb783140ef663002e41560220a5f744395c238eaa (patch)
tree3151287fdea116820273a48a8d2a13e80fe4a2d1 /source/blender/imbuf
parent107566ebf1cf7d563a00f64615410c2b7d443c00 (diff)
Image/Animation loading, remove user-pref extension check.
don't use extension checking preference for low level loading functions, otherwise a user preference may impact a script loading a file for example. looked into making this an argument and passing it in, but theres no real advantage and its simpler just to remove.
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/util.c43
1 files changed, 2 insertions, 41 deletions
diff --git a/source/blender/imbuf/intern/util.c b/source/blender/imbuf/intern/util.c
index a8d7949b8cd..12dfcc3a791 100644
--- a/source/blender/imbuf/intern/util.c
+++ b/source/blender/imbuf/intern/util.c
@@ -46,7 +46,6 @@
#include "BLI_fileops.h"
#include "BLI_string.h"
-#include "DNA_userdef_types.h"
#include "BKE_global.h"
#include "imbuf.h"
@@ -181,7 +180,7 @@ const char *imb_ext_audio[] = {
NULL
};
-static int IMB_ispic_name(const char *name)
+int IMB_ispic(const char *name)
{
/* increased from 32 to 64 because of the bitmaps header size */
#define HEADER_SIZE 64
@@ -231,24 +230,6 @@ static int IMB_ispic_name(const char *name)
#undef HEADER_SIZE
}
-int IMB_ispic(const char *filename)
-{
- if (U.uiflag & USER_FILTERFILEEXTS) {
- if ((BLI_testextensie_array(filename, imb_ext_image)) ||
- (G.have_quicktime && BLI_testextensie_array(filename, imb_ext_image_qt)))
- {
- return IMB_ispic_name(filename);
- }
- else {
- return FALSE;
- }
- }
- else { /* no FILTERFILEEXTS */
- return IMB_ispic_name(filename);
- }
-}
-
-
static int isavi(const char *name)
{
@@ -454,27 +435,7 @@ bool IMB_isanim(const char *filename)
{
int type;
- if (U.uiflag & USER_FILTERFILEEXTS) {
- if (G.have_quicktime) {
- if (BLI_testextensie_array(filename, imb_ext_movie_qt)) {
- type = imb_get_anim_type(filename);
- }
- else {
- return(FALSE);
- }
- }
- else { /* no quicktime */
- if (BLI_testextensie_array(filename, imb_ext_movie)) {
- type = imb_get_anim_type(filename);
- }
- else {
- return(FALSE);
- }
- }
- }
- else { /* no FILTERFILEEXTS */
- type = imb_get_anim_type(filename);
- }
+ type = imb_get_anim_type(filename);
return (type && type != ANIM_SEQUENCE);
}