|
Blender V4.3
|
#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 400 of file BKE_lib_query.hh.
| bool LibQueryUnusedIDsData::do_linked_ids = false |
Process linked data-blocks.
Definition at line 404 of file BKE_lib_query.hh.
Referenced by bpy_orphans_purge().
| bool LibQueryUnusedIDsData::do_local_ids = false |
Process local data-blocks.
Definition at line 402 of file BKE_lib_query.hh.
Referenced by bpy_orphans_purge(), lib_override_cleanup_after_resync(), blender::ed::outliner::outliner_orphans_purge_check(), blender::ed::outliner::outliner_orphans_purge_exec(), blender::bke::blendfile::PartialWriteContext::remove_unused(), and blender::ed::outliner::unused_message_popup_width_compute().
| 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 410 of file BKE_lib_query.hh.
Referenced by bpy_orphans_purge().
| 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 419 of file BKE_lib_query.hh.
| 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 441 of file BKE_lib_query.hh.
| 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 434 of file BKE_lib_query.hh.
| 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 427 of file BKE_lib_query.hh.
Referenced by bpy_orphans_purge().