|
Blender V5.0
|
#include <BKE_lib_query.hh>
Public Attributes | |
| bool | do_local_ids = false |
| bool | do_linked_ids = false |
| bool | do_recursive = false |
| blender::FunctionRef< bool(ID *id)> | filter_fn = nullptr |
| std::array< int, INDEX_ID_MAX > | num_total |
| std::array< int, INDEX_ID_MAX > | num_local |
| std::array< int, INDEX_ID_MAX > | num_linked |
Parameters and result data structure for the 'unused IDs' functions below.
Definition at line 415 of file BKE_lib_query.hh.
| bool LibQueryUnusedIDsData::do_linked_ids = false |
Process linked data-blocks.
Definition at line 419 of file BKE_lib_query.hh.
Referenced by BKE_lib_query_unused_ids_amounts(), bpy_orphans_purge(), lib_override_cleanup_after_resync(), and blender::bke::blendfile::PartialWriteContext::remove_unused().
| bool LibQueryUnusedIDsData::do_local_ids = false |
Process local data-blocks.
Definition at line 417 of file BKE_lib_query.hh.
Referenced by BKE_lib_query_unused_ids_amounts(), bpy_orphans_purge(), lib_override_cleanup_after_resync(), and blender::bke::blendfile::PartialWriteContext::remove_unused().
| bool LibQueryUnusedIDsData::do_recursive = false |
Process all actually unused data-blocks, including these that are currently only used by other unused data-blocks, and 'dependency islands' of several data-blocks using each-other, without any external valid user.
Definition at line 425 of file BKE_lib_query.hh.
Referenced by BKE_lib_query_unused_ids_amounts(), bpy_orphans_purge(), lib_override_cleanup_after_resync(), and blender::bke::blendfile::PartialWriteContext::remove_unused().
| blender::FunctionRef<bool(ID *id)> LibQueryUnusedIDsData::filter_fn = nullptr |
Callback filter, if defined and it returns true, the given id may be considered as unused, otherwise it will always be considered as used.
Allows for more complex handling of which IDs should be deleted, on top of the basic local/linked choices.
Definition at line 434 of file BKE_lib_query.hh.
Referenced by lib_override_cleanup_after_resync().
| std::array<int, INDEX_ID_MAX> LibQueryUnusedIDsData::num_linked |
Amount of detected as unused linked data-blocks, per type and total as the last value of the array (INDEX_ID_NULL).
Definition at line 456 of file BKE_lib_query.hh.
Referenced by BKE_lib_query_unused_ids_amounts(), and BKE_lib_query_unused_ids_tag().
| std::array<int, INDEX_ID_MAX> LibQueryUnusedIDsData::num_local |
Amount of detected as unused local data-blocks, per type and total as the last value of the array (INDEX_ID_NULL).
Definition at line 449 of file BKE_lib_query.hh.
Referenced by BKE_lib_query_unused_ids_amounts(), BKE_lib_query_unused_ids_tag(), and lib_override_cleanup_after_resync().
| std::array<int, INDEX_ID_MAX> LibQueryUnusedIDsData::num_total |
Amount of detected as unused data-blocks, per type and total as the last value of the array (INDEX_ID_NULL).
Definition at line 442 of file BKE_lib_query.hh.
Referenced by BKE_lib_query_unused_ids_amounts(), BKE_lib_query_unused_ids_tag(), bpy_orphans_purge(), lib_override_cleanup_after_resync(), and blender::bke::blendfile::PartialWriteContext::remove_unused().