Commit: b783140ef663002e41560220a5f744395c238eaa
Author: Campbell Barton
Date:   Mon Feb 3 19:33:17 2014 +1100
https://developer.blender.org/rBb783140ef663002e41560220a5f744395c238eaa

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.

===================================================================

M       source/blender/imbuf/intern/util.c

===================================================================

diff --git a/source/blender/imbuf/intern/util.c 
b/source/blender/imbuf/intern/util.c
index a8d7949..12dfcc3 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);
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to