Blender Git Loki
Git Commits -> Revision 26b098c
Revision 26b098c by Julian Eisel (master) July 15, 2021, 14:12 (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: 26b098c04fbeb7f4d7c320b6c2066d2b448ae136
Parent Commit: bc4f99a
Committed By: Sybren A. Stüvel
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)
/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)