Blender Git Loki

Git Commits -> Revision 1267dfe

Revision 1267dfe by Sybren A. Stüvel (master)
October 25, 2021, 14:39 (GMT)
Cleanup: refactor filelist filter functions

Perform a few cleanups:

- Add documentation to explain what returned bools mean.
- Early returns so that flow is clearer and some checks on `is_filtered`
are no longer necessary.
- Split up `is_filtered_file` and `is_filtered_id_file`, so that they can
reuse common code, and such that the different filter checks they
perform can be separated from each other.

The latter is done not only to reduce code duplication, but also as
preparation to fix the asset browser filtering. For that, it helps when
the "filter by file name" and "filter by file type" parts are separate.

No functional changes.

Reviewed By: mont29

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

Commit Details:

Full Hash: 1267dfee7c5453036a2affde90c4a094a4a824a4
Parent Commit: 4758a7d
Lines Changed: +70, -71

1 Modified Path:

/source/blender/editors/space_file/filelist.c (+70, -71) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021