diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-09-09 16:46:07 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-09-09 16:46:07 +0400 |
commit | 67ea3180d902e762b6373fe2cbe2434aceb0f597 (patch) | |
tree | 13786a84640cf8f5ce3f6fc9fb716e2cb8c139fa /source/blender/editors/space_outliner/outliner_select.c | |
parent | bef9509565e18504ca1a82b4972214a52aedad08 (diff) |
Patch [#23443] Change outliner filter into search
Shane Ambler (sambler) for this 12-month vintage!
From description:
One thing with the outliner filter box is it only filters items that
are currently visible. To find what you want you need to manually
expand a few levels so that what you want to find is visible.
This small patch expands items when filtering is done - effectively
turning it into a search.
Currently this does not alter the datablocks view as expanding all
entries takes waaaay tooooo long.
I prevent the expansion of RNA entries for userprefs which prevents
infinite recursion but the datablocks list is just too big for this
approach. I think it would need a custom outliner_build_tree for a
full search.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_select.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_select.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c index 2c0a8c34747..a88625aad0d 100644 --- a/source/blender/editors/space_outliner/outliner_select.c +++ b/source/blender/editors/space_outliner/outliner_select.c @@ -134,7 +134,7 @@ static int outliner_select(SpaceOops *soops, ListBase *lb, int *index, short *se change |= 1; } } - else if ((tselem->flag & TSE_CLOSED)==0) { + else if (TSELEM_OPEN(tselem,soops)) { /* Only try selecting sub-elements if we haven't hit the right element yet * * Hack warning: |