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>2016-03-23 16:44:39 +0300
committerJoshua Leung <aligorith@gmail.com>2016-03-23 16:45:14 +0300
commit6a4967ca6e6c6fd2a82c8af2549337e49d32756d (patch)
tree3f5841a69e24ca691f961aefca8d8bd1d474b548 /source/blender/makesdna/DNA_action_types.h
parent21f31e60546f1f882494bacb84adee92a53d734c (diff)
AnimEditors: Fuzzy/Multi-Word Name Filtering
Thanks to D1080 by @rockets, I've now been able to easily implement the ability to type multiple word snippets/partial words into the text filter field (in the Animation Editors), and have it filter the channels which contain just some of those parts (instead of having to match everything). For example, the following search strings will now work: * "loc rot" or "lo ro" will now filter all location and rotation FCurves * "col loc" will filter all location and color FCurves * "scale" will also work as before to filter all scale FCurves But, the following will not work: * "lc rt" will NOT filter all location and rotation, as the fuzzy search only breaks down the search string based on whitespace placement By default, this is not enabled when using name filtering (i.e. magnifying glass is checked, and some filtering text is specified). Instead, you need to enable the "AZ" toggle beside the name field. This fuzzy matching is not enabled by default as it could end up being quite a bit slower on really heavy scenes. (There are probably some optimisation opportunities, but that's only a future option if someone really needs it)
Diffstat (limited to 'source/blender/makesdna/DNA_action_types.h')
-rw-r--r--source/blender/makesdna/DNA_action_types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_action_types.h b/source/blender/makesdna/DNA_action_types.h
index 9c17a1f4f5b..96d7ec3128c 100644
--- a/source/blender/makesdna/DNA_action_types.h
+++ b/source/blender/makesdna/DNA_action_types.h
@@ -606,7 +606,9 @@ typedef enum eDopeSheet_FilterFlag {
/* DopeSheet general flags */
typedef enum eDopeSheet_Flag {
ADS_FLAG_SUMMARY_COLLAPSED = (1 << 0), /* when summary is shown, it is collapsed, so all other channels get hidden */
- ADS_FLAG_SHOW_DBFILTERS = (1 << 1) /* show filters for datablocks */
+ ADS_FLAG_SHOW_DBFILTERS = (1 << 1), /* show filters for datablocks */
+
+ ADS_FLAG_FUZZY_NAMES = (1 << 2), /* use fuzzy/partial string matches when ADS_FILTER_BY_FCU_NAME is enabled (WARNING: expensive operation) */
/* NOTE: datablock filter flags continued (1 << 10) onwards... */
} eDopeSheet_Flag;