Blender Git Loki

Git Commits -> Revision 0606adc

Revision 0606adc by Hans Goudey (master)
December 13, 2021, 19:58 (GMT)
UI: String Search: Add an optional weight parameter

This builds off of rBf951aa063f7, adding a weight parameter which can
be used to change the order of items when they have the same match
score. In the future, if string searching gets a C++ API, we could
use an optional parameter for the weight, since it is not used yet.

This will be used for the node link drag search menu (D8286).

Differential Revision: https://developer.blender.org/D13559

Commit Details:

Full Hash: 0606adceb3b6efa020c7389bdb31fe541b7d1d5f
Parent Commit: a90c356
Lines Changed: +25, -11

8 Modified Paths:

/source/blender/blenlib/BLI_string_search.h (+4, -1) (Diff)
/source/blender/blenlib/intern/string_search.cc (+14, -3) (Diff)
/source/blender/editors/interface/interface.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_templates.c (+2, -2) (Diff)
/source/blender/editors/interface/interface_template_attribute_search.cc (+1, -1) (Diff)
/source/blender/editors/interface/interface_template_search_menu.cc (+1, -1) (Diff)
/source/blender/editors/interface/interface_utils.c (+1, -1) (Diff)
/source/blender/editors/space_node/node_select.cc (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021