Blender Git Loki

Git Commits -> Revision d6ea881

Revision d6ea881 by Bastien Montagne (master)
November 19, 2021, 14:41 (GMT)
BLI_listbase: Add utils to search from string or index.

If a valid matching string is found, return that item, otherwise
fallback to the item matching the given index, if any.

This will be useful in RNA override code, and potentially other
areas where data in lists can be referenced by their names or indices.

Commit Details:

Full Hash: d6ea881a741a254b6f4e931ea25047d3f51686d0
Parent Commit: 04ec36f
Lines Changed: +93, -0

3 Modified Paths:

/source/blender/blenlib/BLI_listbase.h (+4, -0) (Diff)
/source/blender/blenlib/intern/listbase.c (+31, -0) (Diff)
/source/blender/blenlib/tests/BLI_listbase_test.cc (+58, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021