Outliner Filtering Bugfix:
authorJoshua Leung <aligorith@gmail.com>
Mon, 26 Apr 2010 10:31:09 +0000 (10:31 +0000)
committerJoshua Leung <aligorith@gmail.com>
Mon, 26 Apr 2010 10:31:09 +0000 (10:31 +0000)
Campbell's changes to make this use fnmatch by default had the case-sensitivity setting inverted. This meant that convenient searches in lowercase were no longer possible by default.

source/blender/editors/space_outliner/outliner.c

index f624fa235416f18f1ec3e74c1a667d2c82de5448..7d013ef940d187a877fe837cc0dab408a7312b99 100644 (file)
@@ -1265,10 +1265,10 @@ static int outliner_filter_has_name(TreeElement *te, char *name, int flags)
        int fn_flag= 0;
        int found= 0;
        
-       if(flags & SO_FIND_CASE_SENSITIVE)
+       if ((flags & SO_FIND_CASE_SENSITIVE) == 0)
                fn_flag |= FNM_CASEFOLD;
 
-       if(flags & SO_FIND_COMPLETE) {
+       if (flags & SO_FIND_COMPLETE) {
                found= fnmatch(name, te->name, fn_flag)==0;
        }
        else {