Blender Git Commit Log
Git Commits -> Revision 02ccd59
Revision 02ccd59 by Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 17, 2021, 19:51 (GMT) |
Use custom collection property to pass the asset list to UI lists `UIList` is designed to use collection properties. I previously did a whole bunch of hacks to use it without. This isn't acceptable for master, instead a proper collection property should be provided. Idea is to let scripts register a custom collection property, that the asset view template can fill with the latest asset list contents and pass that to the UI list. Longer term I'd prefer if the UI code would support other containers, and not rely so much on RNA and custom/ID properties. I have ideas and plans for this, but meanwhile, this will do to remove the hacks. |
Commit Details:
Full Hash: 02ccd5931a0f97ae3711d21aea7a50edd62579c9
Parent Commit: b485710
Lines Changed: +176, -143
10 Modified Paths:
/release/scripts/startup/bl_ui/space_view3d.py (+2, -1) (Diff)
/release/scripts/startup/bl_ui/__init__.py (+11, -1) (Diff)
/source/blender/editors/include/UI_interface.h (+2, -9) (Diff)
/source/blender/editors/interface/interface_templates.c (+61, -113) (Diff)
/source/blender/editors/interface/interface_template_asset_view.cc (+45, -17) (Diff)
/source/blender/makesdna/DNA_asset_types.h (+11, -0) (Diff)
/source/blender/makesrna/intern/makesrna.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_asset.c (+31, -0) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+11, -1) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/release/scripts/startup/bl_ui/__init__.py (+11, -1) (Diff)
/source/blender/editors/include/UI_interface.h (+2, -9) (Diff)
/source/blender/editors/interface/interface_templates.c (+61, -113) (Diff)
/source/blender/editors/interface/interface_template_asset_view.cc (+45, -17) (Diff)
/source/blender/makesdna/DNA_asset_types.h (+11, -0) (Diff)
/source/blender/makesrna/intern/makesrna.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_asset.c (+31, -0) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+11, -1) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)