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:
authorJoshua Leung <aligorith@gmail.com>2010-04-26 14:31:09 +0400
committerJoshua Leung <aligorith@gmail.com>2010-04-26 14:31:09 +0400
commitf39163acd703d3e2a15cc07670d284ade1556ebe (patch)
tree8c49d15523ece66898251413d8a4f477f66422aa /source/blender/editors/space_outliner/outliner.c
parentb757e5c944a37d1698cf73d2a973940c8efe5a3e (diff)
Outliner Filtering Bugfix:
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.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner.c')
-rw-r--r--source/blender/editors/space_outliner/outliner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_outliner/outliner.c b/source/blender/editors/space_outliner/outliner.c
index f624fa23541..7d013ef940d 100644
--- a/source/blender/editors/space_outliner/outliner.c
+++ b/source/blender/editors/space_outliner/outliner.c
@@ -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 {