Blender Git Commit Log

Git Commits -> Revision d2a5a9d

July 14, 2021, 20:49 (GMT)
UI: Support defining UI lists in C

So far all UI lists had to be defined in Python, this makes it possible
to define them in C as well. Note that there is a whole bunch of special
handling for the Python API that isn't there for C. I think most
importantly custom properties support, which currently can't be added
for C defined UI lists.

The upcoming asset view UI template will use this, which needs to be
defined in C.

Adds a new file `interface_template_list.cc`, which at this point is
mostly a dummy to have a place for the `ED_uilisttypes_ui()` definition.
I plan a separate cleanup to move the UI-list template to that file.

Commit Details:

Full Hash: d2a5a9d77a451bd2b008e9ca5bf23465043fe71c
Parent Commit: 51a4b88
Lines Changed: +95, -5

1 Added Path:

/source/blender/editors/interface/interface_template_list.cc (+27, -0) (View)

7 Modified Paths:

/source/blender/editors/include/UI_interface.h (+1, -0) (Diff)
/source/blender/editors/interface/CMakeLists.txt (+1, -0) (Diff)
/source/blender/editors/space_api/spacetypes.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_ui.c (+2, -2) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+2, -1) (Diff)
/source/blender/windowmanager/intern/wm_uilist_type.c (+59, -1) (Diff)
/source/blender/windowmanager/WM_api.h (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021