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:
authorDalai Felinto <dfelinto@gmail.com>2018-12-14 22:03:47 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-12-14 22:09:29 +0300
commitfc74903f272a01784e0376c9ee12c2673017285d (patch)
tree26dc77259685c651d90337fd40a818c43b0eafe4 /source/blender
parentf6f46accfee65b334a5d04db9fdda5d727ad7ff9 (diff)
Fix T59322: View Layer - Search not working
Basically uiRNACollectionSearch->but_changed was always NULL for the search templates. So skip_filter would always be true, and we would never filter. An alternative fix would be to add the following to the begin of `template_search_add_button_searchmenu`: ``` static bool always_true = true; template_search->search_data.but_changed = &always_true; ```
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/interface/interface_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_utils.c b/source/blender/editors/interface/interface_utils.c
index d74bfe93f2f..a7787d14776 100644
--- a/source/blender/editors/interface/interface_utils.c
+++ b/source/blender/editors/interface/interface_utils.c
@@ -255,7 +255,7 @@ void ui_rna_collection_search_cb(const struct bContext *C, void *arg, const char
int i = 0, iconid = 0, flag = RNA_property_flag(data->target_prop);
ListBase *items_list = MEM_callocN(sizeof(ListBase), "items_list");
CollItemSearch *cis;
- const bool skip_filter = !(data->but_changed && *data->but_changed);
+ const bool skip_filter = (data->but_changed && !(*data->but_changed));
/* build a temporary list of relevant items first */
RNA_PROP_BEGIN (&data->search_ptr, itemptr, data->search_prop)