34 ListBaseT<TreeElement> tree = {
nullptr};
47 for (
int a = 0; a < lbarray.
size(); a++) {
51 if (!datablock_has_orphans(*lbarray[a])) {
57 if (!filter_id_type) {
74bool TreeDisplayIDOrphans::datablock_has_orphans(ListBaseT<ID> &lb)
const
ID and Library types, which are fundamental for SDNA.
#define ID_REFCOUNTING_USERS(id)
void append(const T &value)
void extend(Span< T > array)
TreeElement * add_id_element(const TreeElementAddParams ¶ms, ID *id)
AbstractTreeDisplay(SpaceOutliner &space_outliner)
SpaceOutliner & space_outliner_
TreeElement * add_element(const TreeElementAddParams ¶ms, Args &&...args)
TreeDisplayIDOrphans(SpaceOutliner &space_outliner)
ListBaseT< TreeElement > build_tree(const TreeSourceData &source_data) override
ListBaseWrapper< T > List
const char * outliner_idcode_to_plural(short idcode)
BLI_INLINE bool BLI_listbase_is_empty(const ListBase *lb)
MainListsArray BKE_main_lists_get(Main &bmain)
const IDTypeInfo * BKE_idtype_get_info_from_id(const ID *id)
ListBaseWrapperTemplate< ListBase, T > ListBaseWrapper
ID_Type GS(const char *name)
ListBaseT< ID > * which_libbase(Main *bmain, short type)
@ IDTYPE_FLAGS_NEVER_UNUSED
eSpaceOutliner_Filter filter
ListBaseT< TreeElement > subtree
The data to build the tree from.
Establish and manage Outliner trees for different display modes.