Blender Git Commit Log

Git Commits -> Revision 622ca56

March 9, 2021, 17:58 (GMT)
Support passing ID type filter to the template

The ID type filter can be set as follows:
```
template_asset_view(..., filter_id_types={'filter_material', 'filter_object'})
```

I would have prefered if you could just create a
`bpy.types.AssetFilterSettings` object, fill that and pass it to the
template. But that doesn't seem possible right now without more complex
BPY additions.
Also, newer ID types (hair, point cloud, volume and simulation IDs) do
not support filtering, because their filtering flags exceed 32, meaning
we have to store them in 64 bit integers which RNA doesn't support for
enum properties...

Commit Details:

Full Hash: 622ca567eb9891671a0e2c6513c62f5dcfaa86eb
Parent Commit: 7be8055
Lines Changed: +271, -154

11 Modified Paths:

/source/blender/editors/asset/asset_list.cc (+14, -6) (Diff)
/source/blender/editors/include/ED_asset.h (+3, -1) (Diff)
/source/blender/editors/include/UI_interface.h (+3, -1) (Diff)
/source/blender/editors/interface/interface_template_asset_view.cc (+3, -2) (Diff)
/source/blender/makesdna/DNA_asset_types.h (+9, -0) (Diff)
/source/blender/makesrna/intern/rna_asset.c (+28, -0) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+91, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+57, -143) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+46, -1) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/makesrna/RNA_enum_types.h (+16, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021