Blender V5.3
blender::ed::outliner Namespace Reference

Namespaces

namespace  detail
namespace  tree_iterator

Classes

class  AbstractTreeDisplay
 Base Class For Tree-Displays. More...
class  AbstractTreeElement
struct  CollectionDrop
struct  CollectionDuplicateData
struct  CollectionEditData
struct  CollectionObjectsSelectData
struct  IDsSelectedData
struct  MergedIconRow
struct  MergedSearchData
struct  ModifierFnArgs
struct  ObjectEditData
class  ObjectsChildrenBuilder
struct  OpenCloseData
struct  OutlinerHideEditData
struct  OutlinerLibOverrideData
struct  OutlinerLiboverrideDataIDRoot
struct  OutlinerSortMaps
struct  OutlinerTreeElementFocus
class  OverrideIDHierarchyBuilder
class  OverrideRNAPathTreeBuilder
struct  RestrictProperties
struct  RestrictPropertiesActive
struct  SceneReplaceData
struct  SelectedItems
struct  SpaceOutliner_Runtime
struct  StackDropData
struct  SyncSelectActiveData
struct  SyncSelectTypes
class  TreeDisplayDataAPI
 Tree-Display for the Scenes display mode. More...
class  TreeDisplayIDOrphans
 Tree-Display for the Orphaned Data display mode. More...
class  TreeDisplayLibraries
 Tree-Display for the Libraries display mode. More...
class  TreeDisplayOverrideLibraryHierarchies
 Tree-Display for the Library Overrides display mode, Hierarchies view mode. More...
class  TreeDisplayOverrideLibraryProperties
 Tree-Display for the Library Overrides display mode, Properties view mode. More...
class  TreeDisplayScenes
 Tree-Display for the Scenes display mode. More...
class  TreeDisplaySequencer
 Tree-Display for the Video Sequencer display mode. More...
class  TreeDisplayViewLayer
 Tree-Display for the View Layer display mode. More...
struct  TreeElement
class  TreeElementActionSlot
struct  TreeElementAddParams
class  TreeElementAnimData
class  TreeElementBone
class  TreeElementBoneCollection
class  TreeElementBoneCollectionBase
class  TreeElementCollectionBase
class  TreeElementConstraint
class  TreeElementConstraintBase
class  TreeElementDeformGroup
class  TreeElementDeformGroupBase
class  TreeElementDriverBase
class  TreeElementEditBone
class  TreeElementGPencilEffect
class  TreeElementGPencilEffectBase
class  TreeElementGPencilLayer
class  TreeElementGreasePencilNode
struct  TreeElementIcon
class  TreeElementID
class  TreeElementIDAction
class  TreeElementIDArmature
struct  TreeElementIDBase
class  TreeElementIDCollection
class  TreeElementIDCurve
class  TreeElementIDGPLegacy
class  TreeElementIDGreasePencil
class  TreeElementIDLibrary
class  TreeElementIDLineStyle
class  TreeElementIDMesh
class  TreeElementIDMetaBall
class  TreeElementIDObject
class  TreeElementIDScene
class  TreeElementIDTexture
class  TreeElementLabel
class  TreeElementLayerCollection
class  TreeElementLinkedNodeTree
class  TreeElementLinkedObject
class  TreeElementModifier
class  TreeElementModifierBase
class  TreeElementNLA
class  TreeElementNLAAction
class  TreeElementNLATrack
class  TreeElementOverridesBase
struct  TreeElementOverridesData
class  TreeElementOverridesProperty
class  TreeElementOverridesPropertyOperation
class  TreeElementParticleSystem
class  TreeElementPoseBase
class  TreeElementPoseChannel
class  TreeElementRNAArrayElement
class  TreeElementRNACommon
class  TreeElementRNAProperty
class  TreeElementRNAStruct
class  TreeElementSceneObjectsBase
class  TreeElementShapeKey
class  TreeElementShapeKeyBase
class  TreeElementStrip
class  TreeElementStripData
class  TreeElementStripDuplicate
class  TreeElementViewCollectionBase
class  TreeElementViewLayer
class  TreeElementViewLayerBase
struct  TreeSourceData
 The data to build the tree from. More...
struct  TreeViewContext
struct  tTreeSort
struct  UserTooltip_Store

Typedefs

using TreeTraversalFunc = TreeTraversalAction (*)(TreeElement *te, void *customdata)
using outliner_operation_fn
template<typename T>
using List = ListBaseWrapper<T>

Enumerations

enum  TreeElementInsertType { TE_INSERT_BEFORE , TE_INSERT_AFTER , TE_INSERT_INTO }
enum  TreeTraversalAction { TRAVERSE_CONTINUE = 0 , TRAVERSE_BREAK , TRAVERSE_SKIP_CHILDS }
enum  TreeElementFlag {
  TE_ACTIVE = (1 << 0) , TE_ICONROW = (1 << 1) , TE_PRETEND_HAS_CHILDREN = (1 << 2) , TE_FREE_NAME = (1 << 3) ,
  TE_DRAGGING = (1 << 4) , TE_CHILD_NOT_IN_COLLECTION = (1 << 6) , TE_ICONROW_MERGED = (1 << 7)
}
enum  eOLDrawState { OL_DRAWSEL_NONE = 0 , OL_DRAWSEL_NORMAL = 1 , OL_DRAWSEL_ACTIVE = 2 }
enum  eOLSetState { OL_SETSEL_NONE = 0 , OL_SETSEL_NORMAL = 1 , OL_SETSEL_EXTEND = 2 }
enum  TreeItemSelectAction {
  OL_ITEM_DESELECT = 0 , OL_ITEM_SELECT = (1 << 0) , OL_ITEM_SELECT_DATA = (1 << 1) , OL_ITEM_ACTIVATE = (1 << 2) ,
  OL_ITEM_EXTEND = (1 << 3) , OL_ITEM_RECURSIVE = (1 << 4)
}
enum class  StripAddOp : int8_t { Noop = 0 , Add , None }

Functions

static bool outliner_view_layer_collections_editor_poll (bContext *C)
static bool collection_edit_in_active_scene_poll (bContext *C)
static bool collection_new_poll (bContext *C)
static void outliner_context_selected_ids (SpaceOutliner *space_outliner, bContextDataResult *result)
int outliner_main_region_context (const bContext *C, const char *member, bContextDataResult *result)
 ENUM_OPERATORS (TreeElementFlag)
bool outliner_treesort_tiebreak (bool a_is_object, const char *a_name, bool b_is_object, const char *b_name)
bool outliner_item_is_co_over_name_icons (const TreeElement *te, float view_co_x)
bool outliner_item_is_co_over_icon (const TreeElement *te, float view_co_x)
bool outliner_item_is_co_over_name (const TreeElement *te, float view_co_x)
bool outliner_item_is_co_within_close_toggle (const TreeElement *te, float view_co_x)
bool outliner_shows_mode_column (const SpaceOutliner &space_outliner)
bool outliner_has_element_warnings (const SpaceOutliner &space_outliner)
void OUTLINER_OT_pack_data (wmOperatorType *ot)
TreeElement * outliner_find_item_at_y (const SpaceOutliner *space_outliner, const ListBaseT< TreeElement > *tree, float view_co_y)
TreeElement * outliner_find_item_at_x_in_row (const SpaceOutliner *space_outliner, TreeElement *parent_te, float view_co_x, bool *r_is_merged_icon, bool *r_is_over_icon)
TreeElement * outliner_find_tree_element (ListBaseT< TreeElement > *lb, const TreeStoreElem *store_elem)
TreeElement * outliner_find_parent_element (ListBaseT< TreeElement > *lb, TreeElement *parent_te, const TreeElement *child_te)
TreeElement * outliner_find_id (SpaceOutliner *space_outliner, ListBaseT< TreeElement > *lb, const ID *id, TreeElementFlag exclude_flags)
TreeElement * outliner_find_posechannel (ListBaseT< TreeElement > *lb, const bPoseChannel *pchan)
TreeElement * outliner_find_editbone (ListBaseT< TreeElement > *lb, const EditBone *ebone)
TreeElement * outliner_search_back_te (TreeElement *te, short idcode)
ID * outliner_search_back (TreeElement *te, short idcode)
bool outliner_tree_traverse (const SpaceOutliner *space_outliner, ListBaseT< TreeElement > *tree, int filter_te_flag, int filter_tselem_flag, TreeTraversalFunc func, void *customdata)
float outliner_right_columns_width (const SpaceOutliner *space_outliner)
TreeElement * outliner_find_element_with_flag (const ListBaseT< TreeElement > *lb, short flag)
bool outliner_is_element_visible (const TreeElement *te)
bool outliner_is_element_in_view (const TreeElement *te, const View2D *v2d)
void outliner_scroll_view (SpaceOutliner *space_outliner, ARegion *region, int delta_y)
void outliner_tag_redraw_avoid_rebuild_on_open_change (const SpaceOutliner *space_outliner, ARegion *region)
bool outliner_sync_selection (const bContext *C, const TreeViewContext &tvc, SpaceOutliner *space_outliner, short &idcode)
template<typename TreeElementT>
TreeElementT * tree_element_cast (const TreeElement *te)
static void outliner_sync_select_from_outliner_set_types (bContext *C, SpaceOutliner *space_outliner, SyncSelectTypes *sync_types)
static bool outliner_sync_select_to_outliner_set_types (const TreeViewContext &tvc, SpaceOutliner *space_outliner, SyncSelectTypes *sync_types)
static void outliner_select_sync_to_object (ViewLayer *view_layer, TreeElement *te, TreeStoreElem *tselem, Set< Base * > &selected_objects)
static void outliner_select_sync_to_edit_bone (const Main &bmain, const Scene *scene, ViewLayer *view_layer, TreeElement *te, TreeStoreElem *tselem, Set< EditBone * > &selected_ebones)
static void outliner_select_sync_to_pose_bone (TreeElement *te, TreeStoreElem *tselem, Set< bPoseChannel * > &selected_pbones)
static void outliner_select_sync_to_strip (WorkSpace *workspace, const TreeElement *te)
static void outliner_sync_selection_from_outliner (WorkSpace *workspace, const Main &bmain, Scene *scene, ViewLayer *view_layer, ListBaseT< TreeElement > *tree, const SyncSelectTypes *sync_types, SelectedItems *selected_items)
static void outliner_select_sync_from_object (const Main &bmain, const Scene *scene, ViewLayer *view_layer, Object *obact, TreeElement *te, TreeStoreElem *tselem)
static void outliner_select_sync_from_edit_bone (EditBone *ebone_active, TreeElement *te, TreeStoreElem *tselem)
static void outliner_select_sync_from_pose_bone (bPoseChannel *pchan_active, TreeElement *te, TreeStoreElem *tselem)
static void outliner_select_sync_from_strip (Strip *strip_active, const TreeElement *te)
static void outliner_sync_selection_to_outliner (const Main &bmain, const Scene *scene, ViewLayer *view_layer, LayerCollection *layer_collection, SpaceOutliner *space_outliner, ListBaseT< TreeElement > *tree, SyncSelectActiveData *active_data, const SyncSelectTypes *sync_types, bool *r_any_new_active, short &idcode)
static void get_sync_select_active_data (const bContext *C, SyncSelectActiveData *active_data)
static wmOperatorStatus outliner_pack_data_exec (bContext *C, wmOperator *op)
static TreeElement * outliner_find_item_at_x_in_row_recursive (const TreeElement *parent_te, float view_co_x, bool *r_is_merged_icon)
static void outliner_main_region_init (wmWindowManager *wm, ARegion *region)
static void outliner_main_region_draw (const bContext *C, ARegion *region)
static void outliner_main_region_free (ARegion *)
static void outliner_main_region_listener (const wmRegionListenerParams *params)
static void outliner_main_region_message_subscribe (const wmRegionMessageSubscribeParams *params)
static void outliner_header_region_init (wmWindowManager *, ARegion *region)
static void outliner_header_region_draw (const bContext *C, ARegion *region)
static void outliner_header_region_free (ARegion *)
static void outliner_header_region_listener (const wmRegionListenerParams *params)
static SpaceLink * outliner_create (const ScrArea *, const Scene *)
static void outliner_free (SpaceLink *sl)
static void outliner_init (wmWindowManager *, ScrArea *)
static SpaceLink * outliner_duplicate (SpaceLink *sl)
static void outliner_id_remap (ScrArea *area, SpaceLink *slink, const bke::id::IDRemapper &mappings)
static void outliner_foreach_id (SpaceLink *space_link, LibraryForeachIDData *data)
static void outliner_deactivate (ScrArea *area)
static void outliner_space_blend_read_data (BlendDataReader *reader, SpaceLink *sl)
static void outliner_space_blend_read_after_liblink (BlendLibReader *, ID *, SpaceLink *sl)
static void write_space_outliner (BlendWriter *writer, const SpaceOutliner *space_outliner)
static void outliner_space_blend_write (BlendWriter *writer, SpaceLink *sl)
void outliner_make_object_parent_hierarchy (ListBaseT< TreeElement > *lb)
bool outliner_animdata_test (const AnimData *adt)
void tree_element_expand (const AbstractTreeElement &tree_element, SpaceOutliner &space_outliner)
static void outliner_add_bone (AbstractTreeDisplay &tree_display, ListBaseT< TreeElement > *lb, ID *id, Bone *curBone, TreeElement *parent, int *a)
Utility API
bool outliner_is_collection_tree_element (const TreeElement *te)
Collection * outliner_collection_from_tree_element (const TreeElement *te)
TreeTraversalAction outliner_collect_selected_collections (TreeElement *te, void *customdata)
static TreeTraversalAction outliner_collect_selected_parent_collections (TreeElement *te, void *customdata)
TreeTraversalAction outliner_collect_selected_objects (TreeElement *te, void *customdata)
New Collection
static wmOperatorStatus collection_new_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_collection_new (wmOperatorType *ot)
Delete Collection
static TreeTraversalAction collection_collect_data_to_edit (TreeElement *te, void *customdata)
void outliner_collection_delete (bContext *C, Main *bmain, Scene *scene, ReportList *reports, bool do_hierarchy)
static wmOperatorStatus collection_hierarchy_delete_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_collection_hierarchy_delete (wmOperatorType *ot)
Select/Deselect Collection Objects
static TreeTraversalAction outliner_find_first_selected_layer_collection (TreeElement *te, void *customdata)
static LayerCollection * outliner_active_layer_collection (bContext *C)
static wmOperatorStatus collection_objects_select_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_collection_objects_select (wmOperatorType *ot)
void OUTLINER_OT_collection_objects_deselect (wmOperatorType *ot)
Duplicate Collection
static TreeTraversalAction outliner_find_first_selected_collection (TreeElement *te, void *customdata)
static TreeElement * outliner_active_collection (bContext *C)
static wmOperatorStatus collection_duplicate_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_collection_duplicate_linked (wmOperatorType *ot)
void OUTLINER_OT_collection_duplicate (wmOperatorType *ot)
Link Collection
static wmOperatorStatus collection_link_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_collection_link (wmOperatorType *ot)
Instance Collection
static wmOperatorStatus collection_instance_exec (bContext *C, wmOperator *)
void OUTLINER_OT_collection_instance (wmOperatorType *ot)
Exclude Collection
static TreeTraversalAction layer_collection_collect_data_to_edit (TreeElement *te, void *customdata)
static bool collections_view_layer_poll (bContext *C, bool clear, int flag)
static bool collections_exclude_set_poll (bContext *C)
static bool collections_exclude_clear_poll (bContext *C)
static bool collections_holdout_set_poll (bContext *C)
static bool collections_holdout_clear_poll (bContext *C)
static bool collections_indirect_only_set_poll (bContext *C)
static bool collections_indirect_only_clear_poll (bContext *C)
static wmOperatorStatus collection_view_layer_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_collection_exclude_set (wmOperatorType *ot)
void OUTLINER_OT_collection_exclude_clear (wmOperatorType *ot)
void OUTLINER_OT_collection_holdout_set (wmOperatorType *ot)
void OUTLINER_OT_collection_holdout_clear (wmOperatorType *ot)
void OUTLINER_OT_collection_indirect_only_set (wmOperatorType *ot)
void OUTLINER_OT_collection_indirect_only_clear (wmOperatorType *ot)
Visibility for Collection Operators
static wmOperatorStatus collection_isolate_exec (bContext *C, wmOperator *op)
static wmOperatorStatus collection_isolate_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void OUTLINER_OT_collection_isolate (wmOperatorType *ot)
static bool collection_show_poll (bContext *C)
static bool collection_hide_poll (bContext *C)
static bool collection_inside_poll (bContext *C)
static wmOperatorStatus collection_visibility_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_collection_show (wmOperatorType *ot)
void OUTLINER_OT_collection_hide (wmOperatorType *ot)
void OUTLINER_OT_collection_show_inside (wmOperatorType *ot)
void OUTLINER_OT_collection_hide_inside (wmOperatorType *ot)
Enable/Disable Collection Operators
static bool collection_flag_poll (bContext *C, bool clear, int flag)
static bool collection_enable_poll (bContext *C)
static bool collection_disable_poll (bContext *C)
static bool collection_enable_render_poll (bContext *C)
static bool collection_disable_render_poll (bContext *C)
static wmOperatorStatus collection_flag_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_collection_enable (wmOperatorType *ot)
void OUTLINER_OT_collection_disable (wmOperatorType *ot)
void OUTLINER_OT_collection_enable_render (wmOperatorType *ot)
void OUTLINER_OT_collection_disable_render (wmOperatorType *ot)
Visibility for Collection & Object Operators
static TreeTraversalAction outliner_hide_collect_data_to_edit (TreeElement *te, void *customdata)
static wmOperatorStatus outliner_hide_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_hide (wmOperatorType *ot)
static wmOperatorStatus outliner_unhide_all_exec (bContext *C, wmOperator *)
void OUTLINER_OT_unhide_all (wmOperatorType *ot)
Collection Color Tags
static wmOperatorStatus outliner_color_tag_set_exec (bContext *C, wmOperator *op)
static std::string outliner_collection_color_tag_set_get_name (wmOperatorType *ot, PointerRNA *properties)
static std::string outliner_collection_color_tag_set_get_description (bContext *, wmOperatorType *ot, PointerRNA *properties)
void OUTLINER_OT_collection_color_tag_set (wmOperatorType *ot)
Collection Drop Operator
static Collection * collection_parent_from_ID (ID *id)
static bool collection_drop_init (bContext *C, wmDrag *drag, const int xy[2], CollectionDrop *data)
static bool collection_drop_poll (bContext *C, wmDrag *drag, const wmEvent *event)
static std::string collection_drop_tooltip (bContext *C, wmDrag *drag, const int xy[2], wmDropBox *)
static void find_child_objects_recursive (Collection *from, Object *ob, Vector< Object * > &child_objects)
static wmOperatorStatus collection_drop_invoke (bContext *C, wmOperator *, const wmEvent *event)
void OUTLINER_OT_collection_drop (wmOperatorType *ot)
Parent Drop Operator
static bool parent_drop_allowed (const Main &bmain, TreeElement *te, Object *potential_child)
static bool allow_parenting_without_modifier_key (SpaceOutliner *space_outliner)
static bool drag_ids_are_all_objects (const wmDrag *drag)
static bool parent_drop_poll (bContext *C, wmDrag *drag, const wmEvent *event)
static void parent_drop_set_parents (bContext *C, ReportList *reports, wmDragID *drag, Object *parent, short parent_type, const bool keep_transform)
static wmOperatorStatus parent_drop_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void OUTLINER_OT_parent_drop (wmOperatorType *ot)
Parent Clear Operator
static bool parent_clear_poll (bContext *C, wmDrag *drag, const wmEvent *event)
static wmOperatorStatus parent_clear_invoke (bContext *C, wmOperator *, const wmEvent *event)
void OUTLINER_OT_parent_clear (wmOperatorType *ot)
Scene Drop Operator
static bool scene_drop_poll (bContext *C, wmDrag *drag, const wmEvent *event)
static wmOperatorStatus scene_drop_invoke (bContext *C, wmOperator *, const wmEvent *event)
void OUTLINER_OT_scene_drop (wmOperatorType *ot)
Material Drop Operator
static bool material_drop_poll (bContext *C, wmDrag *drag, const wmEvent *event)
static wmOperatorStatus material_drop_invoke (bContext *C, wmOperator *, const wmEvent *event)
void OUTLINER_OT_material_drop (wmOperatorType *ot)
Outliner Drag Operator
static bool outliner_is_scene_collection_tree_element (const TreeElement *te)
static TreeTraversalAction outliner_collect_selected_objects_and_collections (TreeElement *te, void *customdata)
static TreeElement * outliner_item_drag_element_find (SpaceOutliner *space_outliner, ARegion *region, const wmEvent *event)
static wmOperatorStatus outliner_item_drag_drop_invoke (bContext *C, wmOperator *, const wmEvent *event)
void OUTLINER_OT_item_drag_drop (wmOperatorType *ot)
Drop Boxes
void outliner_dropboxes ()
Tree Size Functions
static void outliner_tree_dimensions_impl (SpaceOutliner *space_outliner, ListBaseT< TreeElement > *lb, int *width, int *height)
void outliner_tree_dimensions (SpaceOutliner *space_outliner, int *r_width, int *r_height)
static bool is_object_data_in_editmode (const ID *id, const Object *obact)
Button Callbacks
static void restrictbutton_recursive_ebone (bArmature *arm, EditBone *ebone_parent, eBone_Flag flag, bool set_flag)
static void restrictbutton_recursive_bone (Bone *bone_parent, eBone_Flag flag, bool set_flag)
static void restrictbutton_r_lay_fn (bContext *C, void *poin, void *)
static void restrictbutton_bone_visibility_fn (bContext *C, void *poin, void *poin2)
static void restrictbutton_bone_select_fn (bContext *C, void *poin, void *poin2)
static void restrictbutton_ebone_select_fn (bContext *C, void *poin, void *poin2)
static void restrictbutton_ebone_visibility_fn (bContext *C, void *poin, void *poin2)
static void restrictbutton_gp_layer_flag_fn (bContext *C, void *poin, void *)
static void outliner_object_set_flag_recursive_fn (bContext *C, Base *base, Object *ob, const char *propname)
static void outliner__object_set_flag_recursive_fn (bContext *C, void *poin, void *poin2)
static void outliner__base_set_flag_recursive_fn (bContext *C, void *poin, void *poin2)
static void outliner_layer_or_collection_pointer_create (Scene *scene, LayerCollection *layer_collection, Collection *collection, PointerRNA *ptr)
static void outliner_base_or_object_pointer_create (const Main &bmain, Scene *scene, ViewLayer *view_layer, Collection *collection, Object *ob, PointerRNA *ptr)
static void outliner_collection_set_flag_recursive (const Main &bmain, Scene *scene, ViewLayer *view_layer, LayerCollection *layer_collection, Collection *collection, PropertyRNA *layer_or_collection_prop, PropertyRNA *base_or_object_prop, const bool value)
static bool outliner_collection_is_isolated (Scene *scene, const LayerCollection *layer_collection_cmp, const Collection *collection_cmp, const bool value_cmp, PropertyRNA *layer_or_collection_prop, LayerCollection *layer_collection, Collection *collection)
void outliner_collection_isolate_flag (const Main &bmain, Scene *scene, ViewLayer *view_layer, LayerCollection *layer_collection, Collection *collection, PropertyRNA *layer_or_collection_prop, const char *propname, const bool value)
static void outliner_collection_set_flag_recursive_fn (bContext *C, LayerCollection *layer_collection, Collection *collection, const char *propname)
static void view_layer__layer_collection_set_flag_recursive_fn (bContext *C, void *poin, void *poin2)
static void view_layer__collection_set_flag_recursive_fn (bContext *C, void *poin, void *poin2)
static void scenes__collection_set_flag_recursive_fn (bContext *C, void *poin, void *poin2)
static void namebutton_fn (bContext *C, TreeStoreElem *tselem, const char *oldname)
static void outliner_restrict_properties_enable_collection_set (PointerRNA *collection_ptr, RestrictProperties *props, RestrictPropertiesActive *props_active)
static void outliner_restrict_properties_enable_layer_collection_set (PointerRNA *layer_collection_ptr, PointerRNA *collection_ptr, RestrictProperties *props, RestrictPropertiesActive *props_active)
static bool outliner_restrict_properties_collection_set (Scene *scene, TreeElement *te, PointerRNA *collection_ptr, PointerRNA *layer_collection_ptr, RestrictProperties *props, RestrictPropertiesActive *props_active)
static void outliner_draw_restrictbuts (ui::Block *block, const Main &bmain, Scene *scene, ViewLayer *view_layer, ARegion *region, SpaceOutliner *space_outliner, ListBaseT< TreeElement > *lb, RestrictPropertiesActive props_active_parent)
static std::string user_tooltip_func (bContext *, void *argN, const StringRef)
static void outliner_draw_userbuts (ui::Block *block, const ARegion *region, const SpaceOutliner *space_outliner)
static void outliner_draw_overrides_rna_buts (ui::Block *block, const ARegion *region, const SpaceOutliner *space_outliner, const ListBaseT< TreeElement > *lb, const int x)
static bool outliner_but_identity_cmp_context_id_fn (const ui::Button *a, const ui::Button *b)
static void outliner_draw_overrides_restrictbuts (Main *bmain, ui::Block *block, const ARegion *region, const SpaceOutliner *space_outliner, const ListBaseT< TreeElement > *lb, const int x)
static void outliner_draw_separator (ARegion *region, const int x)
static void outliner_draw_rnabuts (ui::Block *block, ARegion *region, SpaceOutliner *space_outliner, int sizex)
static void outliner_buttons (const bContext *C, ui::Block *block, ARegion *region, const float restrict_column_width, TreeElement *te)
static void outliner_mode_toggle_fn (bContext *C, void *tselem_poin, void *)
static void outliner_draw_mode_column_toggle (ui::Block *block, const TreeViewContext &tvc, TreeElement *te, const bool lock_object_modes)
static void outliner_draw_mode_column (ui::Block *block, TreeViewContext &tvc, SpaceOutliner *space_outliner)
static StringRefNull outliner_draw_get_warning_tree_element_subtree (const TreeElement *parent_te)
static StringRefNull outliner_draw_get_warning_tree_element (const SpaceOutliner &space_outliner, const TreeElement *te)
static void outliner_draw_warning_tree_element (ui::Block *block, const SpaceOutliner *space_outliner, const StringRef warning_msg, const bool use_mode_column, const int te_ys)
static void outliner_draw_warning_column (ui::Block *block, const SpaceOutliner *space_outliner, const bool use_mode_column)
Normal Drawing
static BIFIconID tree_element_get_icon_from_id (const ID *id)
TreeElementIcon tree_element_get_icon (TreeStoreElem *tselem, TreeElement *te)
static bool tselem_draw_icon (ui::Block *block, int xmax, float x, float y, TreeStoreElem *tselem, TreeElement *te, float alpha, const bool is_clickable, const int num_elements)
static void outliner_icon_background_colors (float icon_color[4], float icon_border[4])
static void outliner_draw_active_indicator (const float minx, const float miny, const float maxx, const float maxy, const float icon_color[4], const float icon_border[4])
static void outliner_draw_iconrow_doit (ui::Block *block, TreeElement *te, int xmax, int *offsx, int ys, float alpha_fac, const eOLDrawState active, const int num_elements)
int tree_element_id_type_to_index (TreeElement *te)
static void outliner_draw_iconrow (ui::Block *block, const uiFontStyle *fstyle, const TreeViewContext &tvc, SpaceOutliner *space_outliner, ListBaseT< TreeElement > *lb, int level, int xmax, int *offsx, int ys, float alpha_fac, bool in_bone_hierarchy, const bool is_grease_pencil_node_hierarchy, MergedIconRow *merged)
static void outliner_set_subtree_coords (TreeElement *te)
static bool element_should_draw_faded (const TreeViewContext &tvc, const TreeElement *te, const TreeStoreElem *tselem)
static void outliner_draw_tree_element (ui::Block *block, const uiFontStyle *fstyle, const TreeViewContext &tvc, ARegion *region, SpaceOutliner *space_outliner, TreeElement *te, bool draw_grayed_out, int startx, int *starty, const float restrict_column_width, TreeElement **te_edit)
static bool subtree_contains_object (ListBaseT< TreeElement > *lb)
static void outliner_draw_hierarchy_line (const uint pos, const int x, const int y1, const int y2, const bool draw_dashed)
static void outliner_draw_hierarchy_lines_recursive (uint pos, SpaceOutliner *space_outliner, ListBaseT< TreeElement > *lb, const TreeViewContext &tvc, int startx, const uchar col[4], bool draw_grayed_out, int *starty)
static void outliner_draw_hierarchy_lines (SpaceOutliner *space_outliner, ListBaseT< TreeElement > *lb, const TreeViewContext &tvc, int startx, int *starty)
static void outliner_draw_struct_marks (ARegion *region, SpaceOutliner *space_outliner, ListBaseT< TreeElement > *lb, int *starty)
static void outliner_draw_highlights (const ARegion *region, const SpaceOutliner *space_outliner, const float col_selection[4], const float col_active[4], const float col_highlight[4], const float col_searchmatch[4], int, int *io_start_y)
static void outliner_draw_highlights (ARegion *region, SpaceOutliner *space_outliner, int startx, int *starty)
static void outliner_draw_tree (ui::Block *block, const TreeViewContext &tvc, ARegion *region, SpaceOutliner *space_outliner, const float right_column_width, const bool use_mode_column, const bool use_warning_column, TreeElement **te_edit)
static void outliner_back (ARegion *region)
static int outliner_data_api_buttons_start_x (int max_tree_width)
static int outliner_width (SpaceOutliner *space_outliner, int max_tree_width, float right_column_width)
static void outliner_update_viewable_area (ARegion *region, SpaceOutliner *space_outliner, int tree_width, int tree_height, float right_column_width)
Main Entry-point

Draw contents of Outliner editor.

void draw_outliner (const bContext *C, bool do_rebuild)
View Show Active (Outliner) Operator
static void outliner_show_active (SpaceOutliner *space_outliner, ARegion *region, TreeElement *te, ID *id)
void outliner_set_coordinates (const ARegion *region, SpaceOutliner *space_outliner)
static bool outliner_open_back (TreeElement *te)
static TreeElement * outliner_show_active_get_element (const bContext *C, SpaceOutliner *space_outliner, const Scene *scene, ViewLayer *view_layer)
void outliner_scroll_to_active (SpaceOutliner *space_outliner, ARegion *region, short idcode)
static wmOperatorStatus outliner_show_active_exec (bContext *C, wmOperator *)
void OUTLINER_OT_show_active (wmOperatorType *ot)
Local Utilities
static void outliner_copybuffer_filepath_get (char filepath[FILE_MAX], size_t filepath_maxncpy)
Highlight on Cursor Motion Operator
static wmOperatorStatus outliner_highlight_update_invoke (bContext *C, wmOperator *, const wmEvent *event)
void OUTLINER_OT_highlight_update (wmOperatorType *ot)
Toggle Open/Closed Operator
void outliner_item_openclose (TreeElement *te, bool open, bool toggle_all)
static wmOperatorStatus outliner_item_openclose_modal (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus outliner_item_openclose_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void OUTLINER_OT_item_openclose (wmOperatorType *ot)
Rename Operator
static void do_item_rename (ARegion *region, TreeElement *te, TreeStoreElem *tselem, ReportList *reports)
void item_rename_fn (bContext *C, ReportList *reports, Scene *, TreeElement *te, TreeStoreElem *, TreeStoreElem *tselem)
static TreeElement * outliner_item_rename_find_active (const SpaceOutliner *space_outliner, ReportList *reports)
static TreeElement * outliner_item_rename_find_hovered (const SpaceOutliner *space_outliner, ARegion *region, const wmEvent *event)
static wmOperatorStatus outliner_item_rename_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void OUTLINER_OT_item_rename (wmOperatorType *ot)
ID Delete Operator
static bool id_delete_tag (bContext *C, ReportList *reports, TreeElement *te, TreeStoreElem *tselem, SceneReplaceData &scene_replace_data)
void id_delete_tag_fn (bContext *C, ReportList *reports, Scene *, TreeElement *te, TreeStoreElem *, TreeStoreElem *tselem)
static int outliner_id_delete_tag (bContext *C, ReportList *reports, TreeElement *te, const float mval[2], SceneReplaceData &scene_replace_data)
static wmOperatorStatus outliner_id_delete_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void OUTLINER_OT_id_delete (wmOperatorType *ot)
ID Remap Operator
static wmOperatorStatus outliner_id_remap_exec (bContext *C, wmOperator *op)
static bool outliner_id_remap_find_tree_element (bContext *C, wmOperator *op, ListBaseT< TreeElement > *tree, const float y)
static wmOperatorStatus outliner_id_remap_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static void outliner_id_remap_ui (bContext *C, wmOperator *op)
void OUTLINER_OT_id_remap (wmOperatorType *ot)
void id_remap_fn (bContext *C, TreeStoreElem *tselem)
ID Copy Operator
static bool outliner_id_copy_tag_id (ID *id, bke::blendfile::PartialWriteContext &copybuffer, ReportList *reports)
static int outliner_id_copy_tag (SpaceOutliner *space_outliner, ListBaseT< TreeElement > *tree, bke::blendfile::PartialWriteContext &copybuffer, ReportList *reports)
static wmOperatorStatus outliner_id_copy_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_id_copy (wmOperatorType *ot)
ID Paste Operator
static wmOperatorStatus outliner_id_paste_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_id_paste (wmOperatorType *ot)
Linked ID Relocate Operator
static wmOperatorStatus outliner_id_relocate_invoke (bContext *C, wmOperator *op, const wmEvent *)
void OUTLINER_OT_id_linked_relocate (wmOperatorType *ot)
Library Relocate Operator
static wmOperatorStatus lib_relocate (bContext *C, TreeElement *te, TreeStoreElem *tselem, wmOperatorType *ot, const bool reload)
static wmOperatorStatus outliner_lib_relocate_invoke_do (bContext *C, ReportList *reports, TreeElement *te, const float mval[2], const bool reload)
static wmOperatorStatus outliner_lib_relocate_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void OUTLINER_OT_lib_relocate (wmOperatorType *ot)
void lib_relocate_fn (bContext *C, ReportList *, Scene *, TreeElement *te, TreeStoreElem *, TreeStoreElem *tselem)
static wmOperatorStatus outliner_lib_reload_invoke (bContext *C, wmOperator *op, const wmEvent *event)
Library Reload Operator
void OUTLINER_OT_lib_reload (wmOperatorType *ot)
void lib_reload_fn (bContext *C, ReportList *, Scene *, TreeElement *te, TreeStoreElem *, TreeStoreElem *tselem)
Apply Settings Utilities
static int outliner_count_levels (ListBaseT< TreeElement > *lb, const int curlevel)
int outliner_flag_is_any_test (ListBaseT< TreeElement > *lb, eTreeStoreElem_Flag flag, const int curlevel)
bool outliner_flag_set (SpaceOutliner &space_outliner, const eTreeStoreElem_Flag flag, const short set)
bool outliner_flag_set (ListBaseT< TreeElement > &lb, const eTreeStoreElem_Flag flag, const short set)
bool outliner_flag_flip (SpaceOutliner &space_outliner, const eTreeStoreElem_Flag flag)
bool outliner_flag_flip (ListBaseT< TreeElement > &lb, const eTreeStoreElem_Flag flag)
Toggle Expanded (Outliner) Operator
static wmOperatorStatus outliner_toggle_expanded_exec (bContext *C, wmOperator *)
void OUTLINER_OT_expanded_toggle (wmOperatorType *ot)
Toggle Selected (Outliner) Operator
static wmOperatorStatus outliner_select_all_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_select_all (wmOperatorType *ot)
Start / Clear Search Filter Operators
static wmOperatorStatus outliner_start_filter_exec (bContext *C, wmOperator *)
void OUTLINER_OT_start_filter (wmOperatorType *ot)
static wmOperatorStatus outliner_clear_filter_exec (bContext *C, wmOperator *)
void OUTLINER_OT_clear_filter (wmOperatorType *ot)
View Panning (Outliner) Operator
static wmOperatorStatus outliner_scroll_page_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_scroll_page (wmOperatorType *ot)
Show One Level Operator
static void outliner_openclose_level (ListBaseT< TreeElement > *lb, int curlevel, int level, int open)
static wmOperatorStatus outliner_one_level_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_show_one_level (wmOperatorType *ot)
Show Hierarchy Operator
static int subtree_has_objects (ListBaseT< TreeElement > *lb)
static void tree_element_show_hierarchy (Scene *scene, SpaceOutliner *space_outliner)
static wmOperatorStatus outliner_show_hierarchy_exec (bContext *C, wmOperator *)
void OUTLINER_OT_show_hierarchy (wmOperatorType *ot)
Animation Internal Utilities
static bool ed_operator_outliner_datablocks_active (bContext *C)
static void tree_element_to_path (TreeElement *te, TreeStoreElem *tselem, ID **id, char **path, int *array_index, short *flag, eKSP_Grouping *)
Driver Add Operator
static wmOperatorStatus outliner_drivers_addsel_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_drivers_add_selected (wmOperatorType *ot)
Driver Remove Operator
static wmOperatorStatus outliner_drivers_deletesel_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_drivers_delete_selected (wmOperatorType *ot)
Keying-Set Add Operator
static wmOperatorStatus outliner_keyingset_additems_exec (bContext *C, wmOperator *op)
void OUTLINER_OT_keyingset_add_selected (wmOperatorType *ot)
Keying-Set Remove Operator
static wmOperatorStatus outliner_keyingset_removeitems_exec (bContext *C, wmOperator *)
void OUTLINER_OT_keyingset_remove_selected (wmOperatorType *ot)
Purge Orphan Data-Blocks Operator
static bool ed_operator_outliner_id_orphans_active (bContext *C)
static void unused_message_gen (std::string &message, const std::array< int, INDEX_ID_MAX > &num_tagged)
static int unused_message_popup_width_compute (bContext *C)
static void outliner_orphans_purge_cleanup (bContext *C, wmOperator *op, const bool is_abort=false)
static bool outliner_orphans_purge_check (bContext *C, wmOperator *op)
static wmOperatorStatus outliner_orphans_purge_invoke (bContext *C, wmOperator *op, const wmEvent *)
static wmOperatorStatus outliner_orphans_purge_exec (bContext *C, wmOperator *op)
static void outliner_orphans_purge_cancel (bContext *C, wmOperator *op)
static void outliner_orphans_purge_ui (bContext *, wmOperator *op)
void OUTLINER_OT_orphans_purge (wmOperatorType *ot)
Manage Orphan Data-Blocks Operator
static wmOperatorStatus outliner_orphans_manage_invoke (bContext *C, wmOperator *, const wmEvent *)
void OUTLINER_OT_orphans_manage (wmOperatorType *ot)
Tree Management
void outliner_free_tree (ListBaseT< TreeElement > *tree)
void outliner_cleanup_tree (SpaceOutliner *space_outliner)
void outliner_free_tree_element (TreeElement *element, ListBaseT< TreeElement > *parent_subtree)
TreeElement * outliner_add_collection_recursive (AbstractTreeDisplay &tree_display, SpaceOutliner *space_outliner, Collection *collection, TreeElement *ten)
bool outliner_requires_rebuild_on_select_or_active_change (const SpaceOutliner *space_outliner)
BLI_INLINE void outliner_add_collection_init (TreeElement *te, Collection *collection)
BLI_INLINE void outliner_add_collection_objects (AbstractTreeDisplay &tree_display, ListBaseT< TreeElement > *tree, Collection *collection, TreeElement *parent)
Main Tree Building API
void outliner_build_tree (Main *mainvar, WorkSpace *workspace, Scene *scene, ViewLayer *view_layer, SpaceOutliner *space_outliner, ARegion *region)
Element Activation
void tree_element_type_active_set (bContext *C, const TreeViewContext &tvc, TreeElement *te, TreeStoreElem *tselem, eOLSetState set, bool recursive)
void tree_element_activate (bContext *C, const TreeViewContext &tvc, TreeElement *te, eOLSetState set, bool handle_all_types)
static void tree_element_viewlayer_activate (bContext *C, TreeElement *te)
static void do_outliner_object_select_recursive (const Main &bmain, const Scene *scene, ViewLayer *view_layer, Object *ob_parent, bool select)
static void do_outliner_bone_select_recursive (bArmature *arm, Bone *bone_parent, bool select)
static void do_outliner_ebone_select_recursive (bArmature *arm, EditBone *ebone_parent, bool select)
static void tree_element_object_activate (bContext *C, Main &bmain, Scene *scene, ViewLayer *view_layer, TreeElement *te, const eOLSetState set, bool recursive)
static void tree_element_material_activate (bContext *C, const Main &bmain, const Scene *scene, ViewLayer *view_layer, TreeElement *te)
static void tree_element_camera_activate (bContext *C, Scene *scene, TreeElement *te)
static void tree_element_world_activate (bContext *C, Scene *scene, TreeElement *te)
static void tree_element_defgroup_activate (bContext *C, TreeElement *te, TreeStoreElem *tselem)
static void tree_element_gplayer_activate (bContext *C, TreeElement *te, TreeStoreElem *tselem)
static void tree_element_grease_pencil_node_activate (bContext *C, TreeElement *te, TreeStoreElem *tselem)
static void tree_element_bonecollection_activate (bContext *C, TreeElement *te, TreeStoreElem *tselem)
static void tree_element_posechannel_activate (bContext *C, const Scene *scene, ViewLayer *view_layer, TreeElement *te, TreeStoreElem *tselem, const eOLSetState set, bool recursive)
static void tree_element_bone_activate (bContext *C, const Main &bmain, const Scene *scene, ViewLayer *view_layer, TreeElement *te, TreeStoreElem *tselem, const eOLSetState set, bool recursive)
static void tree_element_active_ebone__sel (bContext *C, bArmature *arm, EditBone *ebone, short sel)
static void tree_element_ebone_activate (bContext *C, const Scene *scene, ViewLayer *view_layer, TreeElement *te, TreeStoreElem *tselem, const eOLSetState set, bool recursive)
static void tree_element_modifier_activate (bContext *C, TreeElement *te, TreeStoreElem *tselem, const eOLSetState set)
static void tree_element_psys_activate (bContext *C, TreeStoreElem *tselem)
static void tree_element_constraint_activate (bContext *C, const Scene *scene, ViewLayer *view_layer, TreeElement *te, TreeStoreElem *tselem, const eOLSetState set)
static void tree_element_strip_activate (bContext *C, WorkSpace *workspace, TreeElement *te, const eOLSetState set)
static void tree_element_strip_dup_activate (WorkSpace *workspace, TreeElement *)
static void tree_element_master_collection_activate (const bContext *C)
static void tree_element_layer_collection_activate (bContext *C, TreeElement *te)
static void tree_element_text_activate (bContext *C, TreeElement *te)
static void tree_elemment_shapekey_active_set (bContext *C, TreeElement *te)
Element Active State Query
eOLDrawState tree_element_type_active_state_get (const TreeViewContext &tvc, const TreeElement *te, const TreeStoreElem *tselem)
eOLDrawState tree_element_active_state_get (const TreeViewContext &tvc, const TreeElement *te, const TreeStoreElem *tselem)
bPoseChannel * outliner_find_parent_bone (TreeElement *te, TreeElement **r_bone_te)
static eOLDrawState tree_element_defgroup_state_get (const Main &bmain, const Scene *scene, ViewLayer *view_layer, const TreeElement *te, const TreeStoreElem *tselem)
static eOLDrawState tree_element_bone_state_get (const Main &bmain, const Scene *scene, ViewLayer *view_layer, const TreeElement *te, const TreeStoreElem *tselem)
static eOLDrawState tree_element_ebone_state_get (const TreeElement *te)
static eOLDrawState tree_element_modifier_state_get (const TreeElement *te, const TreeStoreElem *tselem)
static eOLDrawState tree_element_object_state_get (const TreeViewContext &tvc, const TreeStoreElem *tselem)
static eOLDrawState tree_element_pose_state_get (const Main &bmain, const Scene *scene, const ViewLayer *view_layer, const TreeStoreElem *tselem)
static eOLDrawState tree_element_posechannel_state_get (const Object *ob_pose, const TreeElement *te, const TreeStoreElem *tselem)
static eOLDrawState tree_element_viewlayer_state_get (const ViewLayer *view_layer, const TreeElement *te)
static eOLDrawState tree_element_bone_collection_state_get (const TreeElement *te, const TreeStoreElem *tselem)
static eOLDrawState tree_element_strip_state_get (const WorkSpace *workspace, const TreeElement *te)
static eOLDrawState tree_element_strip_dup_state_get (const TreeElement *te)
static eOLDrawState tree_element_gplayer_state_get (const TreeElement *te)
static eOLDrawState tree_element_grease_pencil_node_state_get (const TreeElement *te)
static eOLDrawState tree_element_master_collection_state_get (const ViewLayer *view_layer, const LayerCollection *layer_collection)
static eOLDrawState tree_element_layer_collection_state_get (const LayerCollection *layer_collection, const TreeElement *te)
static eOLDrawState tree_element_active_material_get (const Main &bmain, const Scene *scene, ViewLayer *view_layer, const TreeElement *te)
static eOLDrawState tree_element_active_scene_get (const TreeViewContext &tvc, const TreeElement *te, const TreeStoreElem *tselem)
static eOLDrawState tree_element_active_world_get (const Scene *scene, const TreeElement *te)
static eOLDrawState tree_element_active_camera_get (const Scene *scene, const TreeElement *te)
static eOLDrawState tree_element_shapekey_state_get (const TreeElement *te)
Outliner Element Selection/Activation on Click Operator
void outliner_item_select (bContext *C, SpaceOutliner *space_outliner, TreeElement *te, short select_flag)
bool outliner_is_co_within_mode_column (SpaceOutliner *space_outliner, const float view_mval[2])
void OUTLINER_OT_item_activate (wmOperatorType *ot)
static void do_outliner_item_activate_tree_element (bContext *C, const TreeViewContext &tvc, SpaceOutliner *space_outliner, TreeElement *te, TreeStoreElem *tselem, const bool extend, const bool recursive, const bool do_activate_data)
static Collection * outliner_collection_get_for_recursive (bContext *C, TreeElement *te)
static bool can_select_recursive (TreeElement *te, Collection *in_collection)
static void do_outliner_select_recursive (ListBaseT< TreeElement > *lb, bool selecting, Collection *in_collection)
static bool do_outliner_range_select_recursive (ListBaseT< TreeElement > *lb, TreeElement *active, TreeElement *cursor, bool selecting, const bool recurse, Collection *in_collection)
static void do_outliner_range_select (bContext *C, SpaceOutliner *space_outliner, TreeElement *cursor, const bool extend, const bool recurse, Collection *in_collection)
static bool outliner_is_co_within_restrict_columns (const SpaceOutliner *space_outliner, const ARegion *region, float view_co_x)
static bool outliner_is_co_within_active_mode_column (bContext *C, SpaceOutliner *space_outliner, const float view_mval[2])
static wmOperatorStatus outliner_item_do_activate_from_cursor (bContext *C, const int mval[2], const bool extend, const bool use_range, const bool deselect_all, const bool recurse)
static wmOperatorStatus outliner_item_activate_invoke (bContext *C, wmOperator *op, const wmEvent *event)
Internal Utilities
void outliner_item_mode_toggle (bContext *C, const TreeViewContext &tvc, TreeElement *te, bool do_extend)
static void do_outliner_item_editmode_toggle (bContext *C, Scene *scene, Base *base)
static void do_outliner_item_posemode_toggle (bContext *C, Scene *scene, Base *base)
static void do_outliner_item_mode_toggle_generic (bContext *C, const TreeViewContext &tvc, Base *base)
Callbacks (Selection, Users & Library) Utilities
void outliner_do_object_operation_ex (bContext *C, ReportList *reports, Scene *scene, SpaceOutliner *space_outliner, ListBaseT< TreeElement > *lb, outliner_operation_fn operation_fn, bool recurse_selected)
void outliner_do_object_operation (bContext *C, ReportList *reports, Scene *scene, SpaceOutliner *space_outliner, ListBaseT< TreeElement > *lb, outliner_operation_fn operation_fn)
static void object_select_hierarchy_fn (bContext *C, ReportList *, Scene *, TreeElement *te, TreeStoreElem *, TreeStoreElem *)
static void object_deselect_fn (bContext *C, ReportList *, Scene *, TreeElement *, TreeStoreElem *, TreeStoreElem *tselem)
static void outliner_object_delete_fn (bContext *C, ReportList *reports, Scene *scene, Object *ob)
static void id_local_fn (bContext *C, ReportList *, Scene *, TreeElement *, TreeStoreElem *, TreeStoreElem *tselem)
static void id_override_library_create_hierarchy_pre_process (bContext *C, OutlinerLibOverrideData *data, ReportList *reports, TreeElement *te, TreeStoreElem *tsep, TreeStoreElem *tselem)
static void id_override_library_create_hierarchy (Main &bmain, Scene *scene, ViewLayer *view_layer, OutlinerLibOverrideData &data, ID *id_hierarchy_root_reference, Vector< OutlinerLiboverrideDataIDRoot > &data_idroots, bool &r_aggregated_success)
static void id_override_library_create_hierarchy_process (bContext *C, ReportList *reports, OutlinerLibOverrideData &data)
static void id_override_library_reset (bContext *C, OutlinerLibOverrideData *data, TreeStoreElem *tselem)
static void id_override_library_clear_single_process (bContext *C, ReportList *, OutlinerLibOverrideData &data)
static void id_override_library_clear_single (OutlinerLibOverrideData *data, ReportList *reports, TreeStoreElem *tselem)
static void id_override_library_resync (OutlinerLibOverrideData *data, TreeStoreElem *tselem)
static void id_override_library_resync_hierarchy_process (bContext *C, ReportList *reports, OutlinerLibOverrideData &data)
static void id_override_library_delete_hierarchy (OutlinerLibOverrideData *data, TreeStoreElem *tselem)
static void id_override_library_delete_hierarchy_process (bContext *C, ReportList *, OutlinerLibOverrideData &data)
static void id_fake_user_set_fn (bContext *, ReportList *reports, Scene *, TreeElement *, TreeStoreElem *, TreeStoreElem *tselem)
static void id_fake_user_clear_fn (bContext *, ReportList *reports, Scene *, TreeElement *, TreeStoreElem *, TreeStoreElem *tselem)
static void id_select_linked_fn (bContext *C, ReportList *, Scene *, TreeElement *, TreeStoreElem *, TreeStoreElem *tselem)
static void singleuser_action_fn (bContext *C, ReportList *, Scene *, TreeElement *te, TreeStoreElem *tsep, TreeStoreElem *tselem)
static void singleuser_world_fn (bContext *C, ReportList *, Scene *, TreeElement *, TreeStoreElem *tsep, TreeStoreElem *tselem)
Box Select Operator
void OUTLINER_OT_select_box (wmOperatorType *ot)
static void outliner_box_select (bContext *C, SpaceOutliner *space_outliner, const rctf *rectf, const bool select)
static wmOperatorStatus outliner_box_select_exec (bContext *C, wmOperator *op)
static wmOperatorStatus outliner_box_select_invoke (bContext *C, wmOperator *op, const wmEvent *event)
Walk Select Operator
void OUTLINER_OT_select_walk (wmOperatorType *ot)
static TreeElement * outliner_find_rightmost_visible_child (SpaceOutliner *space_outliner, TreeElement *te)
static TreeElement * outliner_find_previous_element (SpaceOutliner *space_outliner, TreeElement *te)
static TreeElement * outliner_element_find_successor_in_parents (TreeElement *te)
static TreeElement * outliner_find_next_element (SpaceOutliner *space_outliner, TreeElement *te)
static TreeElement * outliner_walk_left (SpaceOutliner *space_outliner, TreeElement *te, bool toggle_all)
static TreeElement * outliner_walk_right (SpaceOutliner *space_outliner, TreeElement *te, bool toggle_all)
static TreeElement * do_outliner_select_walk (SpaceOutliner *space_outliner, TreeElement *te, const int direction, const bool extend, const bool toggle_all)
static TreeElement * find_walk_select_start_element (SpaceOutliner *space_outliner, bool *r_changed)
static void outliner_walk_scroll (SpaceOutliner *space_outliner, ARegion *region, TreeElement *te)
static wmOperatorStatus outliner_walk_select_invoke (bContext *C, wmOperator *op, const wmEvent *)
Search Utilities
void merged_element_search_menu_invoke (bContext *C, TreeElement *parent_te, TreeElement *activate_te)
static void merged_element_search_fn_recursive (const ListBaseT< TreeElement > *tree, short tselem_type, short type, const char *str, ui::SearchItems *items)
static void merged_element_search_update_fn (const bContext *, void *data, const char *str, ui::SearchItems *items, const bool)
static void merged_element_search_exec_fn (bContext *C, void *, void *element)
static ui::Block * merged_element_search_menu (bContext *C, ARegion *region, void *data)
static void object_select_fn (bContext *C, ReportList *, Scene *, TreeElement *, TreeStoreElem *, TreeStoreElem *tselem)
Context Menu Operator
void OUTLINER_OT_operation (wmOperatorType *ot)
static wmOperatorStatus outliner_operator_menu (bContext *C, const char *opname)
static wmOperatorStatus do_outliner_operation_event (bContext *C, ARegion *region, SpaceOutliner *space_outliner, TreeElement *te)
static wmOperatorStatus outliner_operation_invoke (bContext *C, wmOperator *, const wmEvent *event)
Data Menu Operator
void OUTLINER_OT_data_operation (wmOperatorType *ot)
static bool outliner_data_operation_poll (bContext *C)
static wmOperatorStatus outliner_data_operation_exec (bContext *C, wmOperator *op)
static const EnumPropertyItem * outliner_data_op_sets_enum_item_fn (bContext *C, PointerRNA *, PropertyRNA *, bool *)
Outliner Set Active Action Operator
void OUTLINER_OT_action_set (wmOperatorType *ot)
static void outliner_do_id_set_operation (SpaceOutliner *space_outliner, int type, ID *newid, void(*operation_fn)(TreeElement *, TreeStoreElem *, TreeStoreElem *, ID *))
static void actionset_id_fn (TreeElement *, TreeStoreElem *tselem, TreeStoreElem *tsep, ID *actId)
static wmOperatorStatus outliner_action_set_exec (bContext *C, wmOperator *op)
Registration
void outliner_operatortypes ()
void outliner_keymap (wmKeyConfig *keyconf)
Tree View Context
void outliner_viewcontext_init (const bContext *C, TreeViewContext *tvc)
Properties Editor Sync
static void outliner_sync_to_properties_editors (const bContext *C, PointerRNA *ptr, const eSpaceButtons_Context context)
static void outliner_set_properties_tab (bContext *C, TreeElement *te, TreeStoreElem *tselem)
Internal Tagging Utilities
static void clear_animdata_fn (int, TreeElement *, TreeStoreElem *tselem, void *)
static void unlinkact_animdata_fn (int, TreeElement *, TreeStoreElem *tselem, void *)
static void cleardrivers_animdata_fn (int, TreeElement *, TreeStoreElem *tselem, void *)
static void refreshdrivers_animdata_fn (int, TreeElement *, TreeStoreElem *tselem, void *)
Tree Filtering Helper
static eSpaceOutliner_Filter outliner_exclude_filter_get (const SpaceOutliner *space_outliner)
static void outliner_restore_scrolling_position (SpaceOutliner *space_outliner, ARegion *region, OutlinerTreeElementFocus *focus)
static bool test_collection_callback (TreeElement *te)
static bool test_object_callback (TreeElement *te)
static TreeElement * outliner_find_first_desired_element_at_y_recursive (const SpaceOutliner *space_outliner, TreeElement *te, const float limit, bool(*callback_test)(TreeElement *))
static TreeElement * outliner_find_first_desired_element_at_y (const SpaceOutliner *space_outliner, const float view_co, const float view_co_limit)
static void outliner_store_scrolling_position (SpaceOutliner *space_outliner, ARegion *region, OutlinerTreeElementFocus *focus)
static bool outliner_element_visible_get (const Main &bmain, const Scene *scene, ViewLayer *view_layer, TreeElement *te, const eSpaceOutliner_Filter exclude_filter)
static bool outliner_filter_has_name (TreeElement *te, const char *name, int flags)
static bool outliner_element_is_collection_or_object (TreeElement *te)
static TreeElement * outliner_extract_children_from_subtree (TreeElement *element, ListBaseT< TreeElement > *parent_subtree)
static int outliner_filter_subtree (SpaceOutliner *space_outliner, const Main &bmain, const Scene *scene, ViewLayer *view_layer, ListBaseT< TreeElement > *lb, const char *search_string, const eSpaceOutliner_Filter exclude_filter)
static void outliner_filter_tree (const Main &bmain, SpaceOutliner *space_outliner, const Scene *scene, ViewLayer *view_layer)
static void outliner_clear_newid_from_main (Main *bmain)
Persistent Data
static void outliner_storage_cleanup (SpaceOutliner *space_outliner)
static void check_persistent (SpaceOutliner *space_outliner, TreeElement *te, ID *id, short type, short nr)
Tree Sorting Helper

Generic tree building helpers, the order these are called is top to bottom.

static std::optional< bool > treesort_child_not_in_collection (const tTreeSort &x1, const tTreeSort &x2)
static bool treesort_alpha (const tTreeSort &x1, const tTreeSort &x2)
static bool treesort_alpha_ob (const tTreeSort &x1, const tTreeSort &x2)
static int get_sort_index (const tTreeSort &x, const OutlinerSortMaps &sort_maps, const Map< Collection *, CollectionChild * > &collection_map, Collection *collection, const bool is_parented_object)
static bool treesort_custom (const tTreeSort &x1, const tTreeSort &x2, const OutlinerSortMaps &sort_maps, const Map< Collection *, CollectionChild * > &collection_child_map, Collection *collection, const bool is_parented_object)
static void outliner_sort (ListBaseT< TreeElement > *lb)
static void outliner_sort_custom (Main *bmain, Scene *scene, ListBaseT< TreeElement > *lb, const OutlinerSortMaps &sort_maps)
static void map_all_objects_to_collection (Collection *collection, OutlinerSortMaps &sort_maps)
static void outliner_sort_custom (Main *bmain, Scene *scene, ListBaseT< TreeElement > *lb)
ID Helpers.
const char * outliner_idcode_to_plural (short idcode)
Base Element

Represents an ID that has overridden properties. The expanding will invoke building of tree elements for the full RNA path of the property.

static void iterate_properties_to_display (ID &id, const bool show_system_overrides, FunctionRef< void(TreeElementOverridesData &data)> fn)
Helper to build a hierarchy from an RNA path.

Builds a nice hierarchy representing the nested structs of the override property's RNA path using UI names and icons. For example animation_visualization_mothion_path.frame_end becomes:

  • Animation Visualization

Paths are merged so that each RNA sub-path is only represented once in the tree. So there is some finicky path building going on to create a path -> tree-element map.

This is more complicated than you'd think it needs to be. Mostly because of RNA collection overrides:

  • A single override may add (and in future remove) multiple collection items. So all operations of the override have to be considered.
  • The order of collection items may matter (e.g. for modifiers), so if collection items are added/removed, we want to show all other collection items too, in the right order.
  • If the override is inside some collection item, the collection item has to be built, but the RNA path iterator doesn't
static BIFIconID get_property_icon (PointerRNA &ptr, PropertyRNA &prop)

Variables

static const char * outliner_context_dir []
static CLG_LogRef LOG = {"outliner.tools"}

Data Stack Drop Operator

A generic operator to allow drag and drop for modifiers, constraints, and shader effects which all share the same UI stack layout.

The following operations are allowed:

  • Reordering within an object.
  • Copying a single modifier/constraint/effect to another object.
  • Copying (linking) an object's modifiers/constraints/effects to another.
enum  eDataStackDropAction { DATA_STACK_DROP_REORDER , DATA_STACK_DROP_COPY , DATA_STACK_DROP_LINK }
static void datastack_drop_data_init (wmDrag *drag, Object *ob, bPoseChannel *pchan, TreeElement *te, TreeStoreElem *tselem, void *directdata)
static bool datastack_drop_init (bContext *C, const wmEvent *event, StackDropData *drop_data)
static bool datastack_drop_are_types_valid (StackDropData *drop_data)
static bool datastack_drop_poll (bContext *C, wmDrag *drag, const wmEvent *event)
static std::string datastack_drop_tooltip (bContext *, wmDrag *drag, const int[2], wmDropBox *)
static void datastack_drop_link (bContext *C, StackDropData *drop_data)
static void datastack_drop_copy (bContext *C, StackDropData *drop_data)
static void datastack_drop_reorder (bContext *C, ReportList *reports, StackDropData *drop_data)
static wmOperatorStatus datastack_drop_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void OUTLINER_OT_datastack_drop (wmOperatorType *ot)

Driver Internal Utilities

enum  { DRIVERS_EDITMODE_ADD = 0 , DRIVERS_EDITMODE_REMOVE }
static void do_outliner_drivers_editop (SpaceOutliner *space_outliner, ReportList *reports, short mode)

Keying-Set Internal Utilities

enum  { KEYINGSET_EDITMODE_ADD = 0 , KEYINGSET_EDITMODE_REMOVE }
static KeyingSet * verify_active_keyingset (Scene *scene, short add)
static void do_outliner_keyingset_editop (SpaceOutliner *space_outliner, KeyingSet *ks, const short mode)

ID/Library/Data Set/Un-link Utilities

enum  eOutlinerLibOpSelectionSet { OUTLINER_LIB_SELECTIONSET_SELECTED , OUTLINER_LIB_LIB_SELECTIONSET_CONTENT , OUTLINER_LIB_LIB_SELECTIONSET_SELECTED_AND_CONTENT }
static const EnumPropertyItem prop_lib_op_selection_set []
static void get_element_operation_type (const TreeElement *te, int *scenelevel, int *objectlevel, int *idlevel, int *datalevel)
static TreeElement * get_target_element (const SpaceOutliner *space_outliner)
static bool outliner_operation_tree_element_poll (bContext *C)
static void unlink_action_fn (bContext *C, ReportList *reports, Scene *, TreeElement *, TreeStoreElem *tsep, TreeStoreElem *tselem)
static void unlink_material_fn (bContext *, ReportList *reports, Scene *, TreeElement *te, TreeStoreElem *tsep, TreeStoreElem *tselem)
static void unlink_texture_fn (bContext *, ReportList *reports, Scene *, TreeElement *te, TreeStoreElem *tsep, TreeStoreElem *tselem)
static void unlink_collection_fn (bContext *C, ReportList *reports, Scene *, TreeElement *, TreeStoreElem *tsep, TreeStoreElem *tselem)
static void unlink_object_fn (bContext *C, ReportList *reports, Scene *, TreeElement *te, TreeStoreElem *tsep, TreeStoreElem *tselem)
static void unlink_world_fn (bContext *, ReportList *reports, Scene *, TreeElement *, TreeStoreElem *tsep, TreeStoreElem *tselem)
static void outliner_do_libdata_operation (bContext *C, ReportList *reports, Scene *scene, SpaceOutliner *space_outliner, outliner_operation_fn operation_fn)
static bool outliner_do_libdata_operation_selection_set_element (bContext *C, ReportList *reports, Scene *scene, TreeElement *element, TreeStoreElem *tselem, const bool has_parent_selected, outliner_operation_fn operation_fn, eOutlinerLibOpSelectionSet selection_set)
static void outliner_do_libdata_operation_selection_set (bContext *C, ReportList *reports, Scene *scene, SpaceOutliner *space_outliner, ListBaseT< TreeElement > &subtree, const bool has_parent_selected, outliner_operation_fn operation_fn, eOutlinerLibOpSelectionSet selection_set)
static void outliner_do_libdata_operation_selection_set (bContext *C, ReportList *reports, Scene *scene, SpaceOutliner *space_outliner, outliner_operation_fn operation_fn, eOutlinerLibOpSelectionSet selection_set, const bool do_active_element_first)

Scene Menu Operator

enum  eOutliner_PropSceneOps { OL_SCENE_OP_DELETE = 1 }
static const EnumPropertyItem prop_scene_op_types []
void OUTLINER_OT_scene_operation (wmOperatorType *ot)
static bool outliner_do_scene_operation (bContext *C, SpaceOutliner *space_outliner, eOutliner_PropSceneOps event, bool(*operation_fn)(bContext *, eOutliner_PropSceneOps, TreeElement *, TreeStoreElem *))
static bool scene_fn (bContext *C, eOutliner_PropSceneOps event, TreeElement *, TreeStoreElem *tselem)
static wmOperatorStatus outliner_scene_operation_exec (bContext *C, wmOperator *op)

Library Overrides Operation Menu.

enum  eOutlinerLibOverrideOpTypes {
  OUTLINER_LIBOVERRIDE_OP_INVALID = 0 , OUTLINER_LIBOVERRIDE_OP_CREATE_HIERARCHY , OUTLINER_LIBOVERRIDE_OP_RESET , OUTLINER_LIBOVERRIDE_OP_CLEAR_SINGLE ,
  OUTLINER_LIBOVERRIDE_OP_RESYNC_HIERARCHY , OUTLINER_LIBOVERRIDE_OP_RESYNC_HIERARCHY_ENFORCE , OUTLINER_LIBOVERRIDE_OP_DELETE_HIERARCHY
}
static const EnumPropertyItem prop_liboverride_op_types []
static const EnumPropertyItem prop_liboverride_troubleshoot_op_types []
void OUTLINER_OT_liboverride_operation (wmOperatorType *ot)
void OUTLINER_OT_liboverride_troubleshoot_operation (wmOperatorType *ot)
void OUTLINER_OT_liboverride_property_remove (wmOperatorType *ot)
static bool outliner_liboverride_operation_poll (bContext *C)
static wmOperatorStatus outliner_liboverride_operation_exec (bContext *C, wmOperator *op)
static void outliner_do_liboverride_property_selection_set (bContext *C, ReportList *reports, Scene *scene, ListBaseT< TreeElement > &subtree, const bool has_parent_selected, outliner_operation_fn operation_fn)
static bool outliner_liboverride_property_remove_poll (bContext *C)
template<typename TreeElementOverridesT>
static bool outliner_liboverride_property_remove_do (bContext *C, Main &bmain, TreeStoreElem &tselem, TreeElementOverridesT &override_elem, ReportList *reports)
static wmOperatorStatus outliner_liboverride_property_remove_exec (bContext *C, wmOperator *op)

Object Operation Utilities

enum  eOutliner_PropDataOps {
  OL_DOP_SELECT = 1 , OL_DOP_DESELECT , OL_DOP_HIDE , OL_DOP_UNHIDE ,
  OL_DOP_SELECT_LINKED
}
enum  eOutliner_PropConstraintOps { OL_CONSTRAINTOP_ENABLE = 1 , OL_CONSTRAINTOP_DISABLE , OL_CONSTRAINTOP_DELETE }
enum  eOutliner_PropModifierOps { OL_MODIFIER_OP_TOGVIS = 1 , OL_MODIFIER_OP_TOGREN , OL_MODIFIER_OP_DELETE , OL_MODIFIER_OP_APPLY }
static void pchan_fn (int event, TreeElement *te, TreeStoreElem *, void *)
static void bone_fn (int event, TreeElement *te, TreeStoreElem *, void *)
static void ebone_fn (int event, TreeElement *te, TreeStoreElem *, void *)
static void sequence_fn (int event, TreeElement *te, TreeStoreElem *, void *scene_ptr)
static void gpencil_layer_fn (int event, TreeElement *te, TreeStoreElem *, void *)
static void grease_pencil_node_fn (int event, TreeElement *te, TreeStoreElem *, void *)
static void data_select_linked_fn (int event, TreeElement *te, TreeStoreElem *, void *C_v)
static void constraint_fn (int event, TreeElement *te, TreeStoreElem *, void *C_v)
static void modifier_fn (int event, TreeElement *te, TreeStoreElem *, void *arg)
static void outliner_do_data_operation (SpaceOutliner *space_outliner, int type, int event, void(*operation_fn)(int, TreeElement *, TreeStoreElem *, void *), void *arg)
static void outliner_batch_delete_object_tag (ReportList *reports, Main *bmain, Scene *scene, Object *object)
static void outliner_batch_delete_object_hierarchy_tag (ReportList *reports, Main *bmain, ViewLayer *view_layer, Scene *scene, Base *base)
static void object_batch_delete_hierarchy_tag_fn (bContext *C, ReportList *reports, Scene *scene, Object *ob)
static void outliner_batch_delete_object_hierarchy (Main *bmain, Scene *scene)

Object Menu Operator

enum  {
  OL_OP_SELECT = 1 , OL_OP_DESELECT , OL_OP_SELECT_HIERARCHY , OL_OP_REMAP ,
  OL_OP_RENAME
}
static const EnumPropertyItem prop_object_op_types []
void OUTLINER_OT_object_operation (wmOperatorType *ot)
static wmOperatorStatus outliner_object_operation_exec (bContext *C, wmOperator *op)

ID-Data Menu Operator

enum  eOutlinerIdOpTypes {
  OUTLINER_IDOP_INVALID = 0 , OUTLINER_IDOP_UNLINK , OUTLINER_IDOP_LOCAL , OUTLINER_IDOP_SINGLE ,
  OUTLINER_IDOP_DELETE , OUTLINER_IDOP_REMAP , OUTLINER_IDOP_COPY , OUTLINER_IDOP_PASTE ,
  OUTLINER_IDOP_FAKE_ADD , OUTLINER_IDOP_FAKE_CLEAR , OUTLINER_IDOP_RENAME , OUTLINER_IDOP_SELECT_LINKED ,
  OUTLINER_IDOP_PACK
}
static const EnumPropertyItem prop_id_op_types []
void OUTLINER_OT_id_operation (wmOperatorType *ot)
static bool outliner_id_operation_item_poll (bContext *C, PointerRNA *, PropertyRNA *, const int enum_value)
static const EnumPropertyItem * outliner_id_operation_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
static wmOperatorStatus outliner_id_operation_exec (bContext *C, wmOperator *op)

Library Menu Operator

enum  eOutlinerLibOpTypes { OL_LIB_INVALID = 0 , OL_LIB_DELETE , OL_LIB_RELOCATE , OL_LIB_RELOAD }
static const EnumPropertyItem outliner_lib_op_type_items []
void OUTLINER_OT_lib_operation (wmOperatorType *ot)
static wmOperatorStatus outliner_lib_operation_exec (bContext *C, wmOperator *op)

Animation Menu Operator

enum  eOutliner_AnimDataOps {
  OUTLINER_ANIMOP_INVALID = 0 , OUTLINER_ANIMOP_CLEAR_ADT , OUTLINER_ANIMOP_SET_ACT , OUTLINER_ANIMOP_CLEAR_ACT ,
  OUTLINER_ANIMOP_REFRESH_DRV , OUTLINER_ANIMOP_CLEAR_DRV
}
static const EnumPropertyItem prop_animdata_op_types []
void OUTLINER_OT_animdata_operation (wmOperatorType *ot)
static wmOperatorStatus outliner_animdata_operation_exec (bContext *C, wmOperator *op)

Library override hierarchy building

enum  ForeachChildReturn { FOREACH_CONTINUE , FOREACH_BREAK }
static void foreach_natural_hierarchy_child (const MainIDRelations &id_relations, const ID &parent_id, FunctionRef< ForeachChildReturn(ID &)> fn)
static bool id_is_in_override_hierarchy (const Main &bmain, const ID &id, const ID &relationship_parent_id, const ID &override_root_id)

Drop Target Find

using CheckTypeFn = bool (*)(TreeElement *te)
static TreeElement * outliner_dropzone_element (TreeElement *te, const float fmval[2], const bool children)
static TreeElement * outliner_dropzone_find (const SpaceOutliner *space_outliner, const float fmval[2], const bool children)
static TreeElement * outliner_drop_find (bContext *C, const wmEvent *event)
static ID * outliner_ID_drop_find (bContext *C, const wmEvent *event, short idcode)
static TreeElement * outliner_drop_insert_find (bContext *C, const int xy[2], TreeElementInsertType *r_insert_type)
static TreeElement * outliner_data_from_tree_element_and_parents (CheckTypeFn check_type, TreeElement *te)
static bool is_collection_element (TreeElement *te)
static bool outliner_is_collection_dragged_into_itself (TreeElement *drop_target_te, ID *dragged_id)
static bool is_object_element (TreeElement *te)
static bool is_pchan_element (TreeElement *te)
static TreeElement * outliner_drop_insert_collection_find (bContext *C, const int xy[2], TreeElementInsertType *r_insert_type)
template<typename T>
static int outliner_get_insert_index (TreeElement *drag_te, TreeElement *drop_te, TreeElementInsertType insert_type, ListBaseT< T > *listbase)

Delete Object/Collection Operator

using OutlinerDeleteFn = void (*)(bContext *C, ReportList *reports, Scene *scene, Object *ob)
void OUTLINER_OT_delete (wmOperatorType *ot)
static void outliner_do_object_delete (bContext *C, ReportList *reports, Scene *scene, const Set< Object * > &objects_to_delete, OutlinerDeleteFn delete_fn)
static TreeTraversalAction outliner_collect_objects_to_delete (TreeElement *te, void *customdata)
static wmOperatorStatus outliner_delete_exec (bContext *C, wmOperator *op)

Constraint Menu Operator

static const EnumPropertyItem prop_constraint_op_types []
void OUTLINER_OT_constraint_operation (wmOperatorType *ot)
static wmOperatorStatus outliner_constraint_operation_exec (bContext *C, wmOperator *op)

Modifier Menu Operator

static const EnumPropertyItem prop_modifier_op_types []
void OUTLINER_OT_modifier_operation (wmOperatorType *ot)
static wmOperatorStatus outliner_modifier_operation_exec (bContext *C, wmOperator *op)

Typedef Documentation

◆ CheckTypeFn

Definition at line 183 of file outliner_dragdrop.cc.

◆ List

template<typename T>
using blender::ed::outliner::List = ListBaseWrapper<T>

Definition at line 29 of file tree_display_libraries.cc.

◆ outliner_operation_fn

◆ OutlinerDeleteFn

using blender::ed::outliner::OutlinerDeleteFn = void (*)(bContext *C, ReportList *reports, Scene *scene, Object *ob)

Definition at line 2898 of file outliner_tools.cc.

◆ TreeTraversalFunc

Definition at line 109 of file outliner_intern.hh.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Keying-Set Operations

These operators are only available in data-browser mode for now, as they depend on having RNA paths and/or hierarchies available.

Enumerator
KEYINGSET_EDITMODE_ADD 
KEYINGSET_EDITMODE_REMOVE 

Definition at line 2292 of file outliner_edit.cc.

◆ anonymous enum

anonymous enum
Enumerator
OL_OP_SELECT 
OL_OP_DESELECT 
OL_OP_SELECT_HIERARCHY 
OL_OP_REMAP 
OL_OP_RENAME 

Definition at line 2763 of file outliner_tools.cc.

◆ anonymous enum

anonymous enum

Driver Operations

These operators are only available in data-browser mode for now, as they depend on having RNA paths and/or hierarchies available.

Enumerator
DRIVERS_EDITMODE_ADD 
DRIVERS_EDITMODE_REMOVE 

Definition at line 2127 of file outliner_edit.cc.

◆ eDataStackDropAction

Enumerator
DATA_STACK_DROP_REORDER 
DATA_STACK_DROP_COPY 
DATA_STACK_DROP_LINK 

Definition at line 741 of file outliner_dragdrop.cc.

◆ eOLDrawState

Enumerator
OL_DRAWSEL_NONE 
OL_DRAWSEL_NORMAL 
OL_DRAWSEL_ACTIVE 

Definition at line 182 of file outliner_intern.hh.

◆ eOLSetState

Enumerator
OL_SETSEL_NONE 
OL_SETSEL_NORMAL 
OL_SETSEL_EXTEND 

Definition at line 188 of file outliner_intern.hh.

◆ eOutliner_AnimDataOps

Enumerator
OUTLINER_ANIMOP_INVALID 
OUTLINER_ANIMOP_CLEAR_ADT 
OUTLINER_ANIMOP_SET_ACT 
OUTLINER_ANIMOP_CLEAR_ACT 
OUTLINER_ANIMOP_REFRESH_DRV 
OUTLINER_ANIMOP_CLEAR_DRV 

Definition at line 3615 of file outliner_tools.cc.

◆ eOutliner_PropConstraintOps

Enumerator
OL_CONSTRAINTOP_ENABLE 
OL_CONSTRAINTOP_DISABLE 
OL_CONSTRAINTOP_DELETE 

Definition at line 2373 of file outliner_tools.cc.

◆ eOutliner_PropDataOps

Enumerator
OL_DOP_SELECT 
OL_DOP_DESELECT 
OL_DOP_HIDE 
OL_DOP_UNHIDE 
OL_DOP_SELECT_LINKED 

Definition at line 2365 of file outliner_tools.cc.

◆ eOutliner_PropModifierOps

Enumerator
OL_MODIFIER_OP_TOGVIS 
OL_MODIFIER_OP_TOGREN 
OL_MODIFIER_OP_DELETE 
OL_MODIFIER_OP_APPLY 

Definition at line 2379 of file outliner_tools.cc.

◆ eOutliner_PropSceneOps

Enumerator
OL_SCENE_OP_DELETE 

Definition at line 701 of file outliner_tools.cc.

◆ eOutlinerIdOpTypes

Enumerator
OUTLINER_IDOP_INVALID 
OUTLINER_IDOP_UNLINK 
OUTLINER_IDOP_LOCAL 
OUTLINER_IDOP_SINGLE 
OUTLINER_IDOP_DELETE 
OUTLINER_IDOP_REMAP 
OUTLINER_IDOP_COPY 
OUTLINER_IDOP_PASTE 
OUTLINER_IDOP_FAKE_ADD 
OUTLINER_IDOP_FAKE_CLEAR 
OUTLINER_IDOP_RENAME 
OUTLINER_IDOP_SELECT_LINKED 
OUTLINER_IDOP_PACK 

Definition at line 3102 of file outliner_tools.cc.

◆ eOutlinerLibOpSelectionSet

Enumerator
OUTLINER_LIB_SELECTIONSET_SELECTED 
OUTLINER_LIB_LIB_SELECTIONSET_CONTENT 
OUTLINER_LIB_LIB_SELECTIONSET_SELECTED_AND_CONTENT 

Definition at line 573 of file outliner_tools.cc.

◆ eOutlinerLibOpTypes

Enumerator
OL_LIB_INVALID 
OL_LIB_DELETE 
OL_LIB_RELOCATE 
OL_LIB_RELOAD 

Definition at line 3420 of file outliner_tools.cc.

◆ eOutlinerLibOverrideOpTypes

Enumerator
OUTLINER_LIBOVERRIDE_OP_INVALID 
OUTLINER_LIBOVERRIDE_OP_CREATE_HIERARCHY 
OUTLINER_LIBOVERRIDE_OP_RESET 
OUTLINER_LIBOVERRIDE_OP_CLEAR_SINGLE 
OUTLINER_LIBOVERRIDE_OP_RESYNC_HIERARCHY 
OUTLINER_LIBOVERRIDE_OP_RESYNC_HIERARCHY_ENFORCE 
OUTLINER_LIBOVERRIDE_OP_DELETE_HIERARCHY 

Definition at line 1848 of file outliner_tools.cc.

◆ ForeachChildReturn

Enumerator
FOREACH_CONTINUE 
FOREACH_BREAK 

Definition at line 180 of file tree_display_override_library_hierarchies.cc.

◆ StripAddOp

Enumerator
Noop 
Add 
None 

Definition at line 358 of file tree_display.hh.

◆ TreeElementFlag

Enumerator
TE_ACTIVE 
TE_ICONROW 
TE_PRETEND_HAS_CHILDREN 

Treat the element as if it had children, e.g. draw an icon to un-collapse it, even if it doesn't. Used where children are lazy-built only if the parent isn't collapsed (see #AbstractTreeDisplay::is_lazy_built()).

TE_FREE_NAME 
TE_DRAGGING 
TE_CHILD_NOT_IN_COLLECTION 
TE_ICONROW_MERGED 

Definition at line 91 of file outliner_intern.hh.

◆ TreeElementInsertType

Enumerator
TE_INSERT_BEFORE 
TE_INSERT_AFTER 
TE_INSERT_INTO 

Definition at line 75 of file outliner_intern.hh.

◆ TreeItemSelectAction

Enumerator
OL_ITEM_DESELECT 
OL_ITEM_SELECT 
OL_ITEM_SELECT_DATA 
OL_ITEM_ACTIVATE 
OL_ITEM_EXTEND 
OL_ITEM_RECURSIVE 

Definition at line 262 of file outliner_intern.hh.

◆ TreeTraversalAction

Enumerator
TRAVERSE_CONTINUE 

Continue traversal regularly, don't skip children.

TRAVERSE_BREAK 

Stop traversal.

TRAVERSE_SKIP_CHILDS 

Continue traversal, but skip children of traversed element.

Definition at line 81 of file outliner_intern.hh.

Function Documentation

◆ actionset_id_fn()

void blender::ed::outliner::actionset_id_fn ( TreeElement * ,
TreeStoreElem * tselem,
TreeStoreElem * tsep,
ID * actId )
static

◆ allow_parenting_without_modifier_key()

◆ bone_fn()

◆ can_select_recursive()

◆ check_persistent()

◆ clear_animdata_fn()

void blender::ed::outliner::clear_animdata_fn ( int ,
TreeElement * ,
TreeStoreElem * tselem,
void *  )
static

◆ cleardrivers_animdata_fn()

◆ collection_collect_data_to_edit()

◆ collection_disable_poll()

bool blender::ed::outliner::collection_disable_poll ( bContext * C)
static

◆ collection_disable_render_poll()

bool blender::ed::outliner::collection_disable_render_poll ( bContext * C)
static

◆ collection_drop_init()

◆ collection_drop_invoke()

wmOperatorStatus blender::ed::outliner::collection_drop_invoke ( bContext * C,
wmOperator * ,
const wmEvent * event )
static

Definition at line 1450 of file outliner_dragdrop.cc.

References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), b, blender::BKE_collection_child_find(), blender::BKE_collection_is_empty(), blender::BKE_collection_move(), blender::BKE_collection_object_add(), blender::BKE_collection_object_find(), blender::BKE_collection_object_find_in(), blender::BKE_collection_object_move(), blender::BLI_listbase_reverse(), C, blender::CollectionChild::collection, collection_drop_init(), collection_drop_invoke(), collection_parent_from_ID(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_wm_manager(), blender::CTX_wm_space_outliner(), blender::wmEvent::custom, blender::data, blender::DEG_id_tag_update(), blender::DEG_relations_tag_update(), ELEM, blender::EVT_DATA_DRAGDROP, find_child_objects_recursive(), blender::Vector< T, InlineBufferCapacity, Allocator >::first_index_of_try(), blender::wmDragID::from_parent, blender::GS(), blender::Collection::id, blender::wmDragID::id, blender::ID_GR, blender::ID_OB, blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_HIERARCHY, blender::ID_RECALC_SYNC_TO_EVAL, blender::ed::outliner::TreeElement::idcode, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::insert(), INT_MAX, is_collection_element(), is_object_element(), blender::KM_CTRL, blender::KM_SHIFT, blender::wmEvent::modifier, blender::ID::name, NC_SCENE, ND_LAYER, blender::CollectionObject::ob, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, outliner_collection_from_tree_element(), outliner_find_parent_element(), outliner_treesort_tiebreak(), blender::ed::outliner::TreeElement::parent, blender::CollectionObject::parented_sort_index, blender::Vector< T, InlineBufferCapacity, Allocator >::remove(), blender::SpaceOutliner::runtime, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::SO_SORT_CUSTOM, blender::CollectionChild::sort_index, blender::CollectionObject::sort_index, blender::SpaceOutliner::sort_method, blender::ed::outliner::TreeElement::subtree, T, TE_INSERT_AFTER, TE_INSERT_BEFORE, blender::ed::outliner::SpaceOutliner_Runtime::tree, TREESTORE, blender::TSE_CLOSED, blender::WM_event_add_notifier_ex(), and blender::wmEvent::xy.

Referenced by collection_drop_invoke(), and OUTLINER_OT_collection_drop().

◆ collection_drop_poll()

◆ collection_drop_tooltip()

◆ collection_duplicate_exec()

wmOperatorStatus blender::ed::outliner::collection_duplicate_exec ( bContext * C,
wmOperator * op )
static

◆ collection_edit_in_active_scene_poll()

◆ collection_enable_poll()

bool blender::ed::outliner::collection_enable_poll ( bContext * C)
static

◆ collection_enable_render_poll()

bool blender::ed::outliner::collection_enable_render_poll ( bContext * C)
static

◆ collection_flag_exec()

◆ collection_flag_poll()

◆ collection_hide_poll()

bool blender::ed::outliner::collection_hide_poll ( bContext * C)
static

◆ collection_hierarchy_delete_exec()

◆ collection_inside_poll()

◆ collection_instance_exec()

◆ collection_isolate_exec()

◆ collection_isolate_invoke()

◆ collection_link_exec()

◆ collection_new_exec()

◆ collection_new_poll()

bool blender::ed::outliner::collection_new_poll ( bContext * C)
static

◆ collection_objects_select_exec()

◆ collection_parent_from_ID()

Collection * blender::ed::outliner::collection_parent_from_ID ( ID * id)
static

◆ collection_show_poll()

bool blender::ed::outliner::collection_show_poll ( bContext * C)
static

◆ collection_view_layer_exec()

◆ collection_visibility_exec()

◆ collections_exclude_clear_poll()

bool blender::ed::outliner::collections_exclude_clear_poll ( bContext * C)
static

◆ collections_exclude_set_poll()

bool blender::ed::outliner::collections_exclude_set_poll ( bContext * C)
static

◆ collections_holdout_clear_poll()

bool blender::ed::outliner::collections_holdout_clear_poll ( bContext * C)
static

◆ collections_holdout_set_poll()

bool blender::ed::outliner::collections_holdout_set_poll ( bContext * C)
static

◆ collections_indirect_only_clear_poll()

bool blender::ed::outliner::collections_indirect_only_clear_poll ( bContext * C)
static

◆ collections_indirect_only_set_poll()

bool blender::ed::outliner::collections_indirect_only_set_poll ( bContext * C)
static

◆ collections_view_layer_poll()

◆ constraint_fn()

◆ data_select_linked_fn()

◆ datastack_drop_are_types_valid()

◆ datastack_drop_copy()

◆ datastack_drop_data_init()

◆ datastack_drop_init()

◆ datastack_drop_invoke()

◆ datastack_drop_link()

◆ datastack_drop_poll()

◆ datastack_drop_reorder()

◆ datastack_drop_tooltip()

◆ do_item_rename()

◆ do_outliner_bone_select_recursive()

◆ do_outliner_drivers_editop()

◆ do_outliner_ebone_select_recursive()

◆ do_outliner_item_activate_tree_element()

◆ do_outliner_item_editmode_toggle()

◆ do_outliner_item_mode_toggle_generic()

void blender::ed::outliner::do_outliner_item_mode_toggle_generic ( bContext * C,
const TreeViewContext & tvc,
Base * base )
static

◆ do_outliner_item_posemode_toggle()

◆ do_outliner_keyingset_editop()

◆ do_outliner_object_select_recursive()

◆ do_outliner_operation_event()

◆ do_outliner_range_select()

◆ do_outliner_range_select_recursive()

bool blender::ed::outliner::do_outliner_range_select_recursive ( ListBaseT< TreeElement > * lb,
TreeElement * active,
TreeElement * cursor,
bool selecting,
const bool recurse,
Collection * in_collection )
static

◆ do_outliner_select_recursive()

◆ do_outliner_select_walk()

◆ drag_ids_are_all_objects()

bool blender::ed::outliner::drag_ids_are_all_objects ( const wmDrag * drag)
static

◆ draw_outliner()

void blender::ed::outliner::draw_outliner ( const bContext * C,
bool do_rebuild )
Parameters
do_rebuildWhen false, only the scroll position changed since last draw.

Definition at line 3853 of file outliner_draw.cc.

References blender::ui::BLOCK_NO_DRAW_OVERRIDDEN_STATE, blender::ed::outliner::TreeViewContext::bmain, C, blender::CTX_data_main(), blender::CTX_wm_region(), blender::CTX_wm_space_outliner(), blender::CTX_wm_workspace(), blender::View2D::cur, draw_outliner(), blender::ED_outliner_select_sync_flag_outliners(), blender::ED_outliner_select_sync_is_dirty(), ELEM, blender::ui::Emboss, blender::SpaceOutliner::flag, blender::View2D::flag, blender::SpaceOutliner::lib_override_view_mode, blender::ui::NoneOrStatus, OL_RNA_COL_SIZEX, outliner_back(), outliner_build_tree(), outliner_buttons(), outliner_data_api_buttons_start_x(), outliner_draw_mode_column(), outliner_draw_overrides_restrictbuts(), outliner_draw_overrides_rna_buts(), outliner_draw_restrictbuts(), outliner_draw_rnabuts(), outliner_draw_separator(), outliner_draw_tree(), outliner_draw_userbuts(), outliner_draw_warning_column(), outliner_has_element_warnings(), outliner_right_columns_width(), outliner_scroll_to_active(), outliner_shows_mode_column(), outliner_sync_selection(), outliner_tree_dimensions(), outliner_update_viewable_area(), outliner_viewcontext_init(), blender::SpaceOutliner::outlinevis, blender::SpaceOutliner::runtime, blender::ed::outliner::TreeViewContext::scene, blender::SO_DATA_API, blender::SO_ID_ORPHANS, blender::SO_LIB_OVERRIDE_VIEW_HIERARCHIES, blender::SO_LIB_OVERRIDE_VIEW_PROPERTIES, blender::SO_LIBRARIES, blender::SO_OVERRIDES_LIBRARY, blender::SO_SCENES, blender::SO_SCROLL_TO_ACTIVE, blender::SO_SYNC_SELECT, blender::SO_USERS_COLUMN, blender::SO_VIEW_LAYER, blender::ed::outliner::SpaceOutliner_Runtime::tree, blender::ARegion::v2d, blender::V2D_PIXELOFS_X, blender::V2D_PIXELOFS_Y, blender::ui::view2d_view_ortho(), blender::ed::outliner::TreeViewContext::view_layer, blender::x, and blender::rctf::xmax.

Referenced by draw_outliner(), and outliner_main_region_draw().

◆ ebone_fn()

◆ ed_operator_outliner_datablocks_active()

◆ ed_operator_outliner_id_orphans_active()

◆ element_should_draw_faded()

◆ ENUM_OPERATORS()

blender::ed::outliner::ENUM_OPERATORS ( TreeElementFlag )

References ENUM_OPERATORS().

Referenced by ENUM_OPERATORS().

◆ find_child_objects_recursive()

void blender::ed::outliner::find_child_objects_recursive ( Collection * from,
Object * ob,
Vector< Object * > & child_objects )
static

◆ find_walk_select_start_element()

◆ foreach_natural_hierarchy_child()

void blender::ed::outliner::foreach_natural_hierarchy_child ( const MainIDRelations & id_relations,
const ID & parent_id,
FunctionRef< ForeachChildReturn(ID &)> fn )
static

Iterate over the IDs parent_id uses. E.g. the child collections and contained objects of a parent collection. Also does special handling for object parenting, so that:

  • When iterating over a child object, fn is executed for the parent instead.
  • When iterating over a parent object, fn is additionally executed for all children. Given that the parent object isn't skipped, the caller has to ensure it's not added in the hierarchy twice. This allows us to build the hierarchy in the expected ("natural") order, where parent objects are actual parent elements in the hierarchy, even though in data, the relation goes the other way around (children point to or "use" the parent).

Only handles regular object parenting, not cases like the "Child of" constraint. Other Outliner display modes don't show this as parent in the hierarchy either.

Definition at line 272 of file tree_display_override_library_hierarchies.cc.

References FOREACH_BREAK, foreach_natural_hierarchy_child(), blender::MainIDRelationsEntry::from_ids, blender::GS(), blender::Object::id, blender::ID_OB, blender::IDWALK_CB_LOOPBACK, blender::ID::name, blender::MainIDRelationsEntryItem::next, blender::Object::parent, blender::MainIDRelations::relations_from_pointers, and blender::MainIDRelationsEntry::to_ids.

Referenced by foreach_natural_hierarchy_child().

◆ get_element_operation_type()

◆ get_property_icon()

◆ get_sort_index()

◆ get_sync_select_active_data()

◆ get_target_element()

◆ gpencil_layer_fn()

◆ grease_pencil_node_fn()

void blender::ed::outliner::grease_pencil_node_fn ( int event,
TreeElement * te,
TreeStoreElem * ,
void *  )
static

◆ id_delete_tag()

bool blender::ed::outliner::id_delete_tag ( bContext * C,
ReportList * reports,
TreeElement * te,
TreeStoreElem * tselem,
SceneReplaceData & scene_replace_data )
static

Definition at line 536 of file outliner_edit.cc.

References blender::ed::outliner::SceneReplaceData::active_scene_get(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_multiple_new(), blender::bke::library::LibraryRuntime::archived_libraries, blender::BKE_library_ID_is_indirectly_used(), blender::BKE_main_id_tag_idcode(), blender::BKE_reportf(), blender::BKE_scene_find_replacement(), blender::BKE_workspace_id_tag_all_visible(), blender::BLI_assert(), C, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::Library::id, blender::Scene::id, blender::TreeStoreElem::id, id_delete_tag(), ID_IS_OVERRIDE_LIBRARY, ID_IS_OVERRIDE_LIBRARY_REAL, blender::ID_LI, ID_REAL_USERS, blender::ID_SCE, blender::ID_TAG_DOIT, blender::ID_TAG_INDIRECT, blender::ID_TAG_PRE_EXISTING, blender::ID_WS, blender::ed::outliner::TreeElement::idcode, blender::ID::lib, blender::LIBOVERRIDE_FLAG_NO_HIERARCHY, NC_WINDOW, blender::bke::library::LibraryRuntime::parent, blender::RPT_WARNING, blender::Library::runtime, blender::ed::outliner::SceneReplaceData::scene_to_activate, blender::ed::outliner::SceneReplaceData::scene_to_delete, blender::ID::tag, blender::TSE_LAYER_COLLECTION, blender::TSE_SOME_ID, blender::TreeStoreElem::type, UNUSED_VARS_NDEBUG, and blender::WM_event_add_notifier().

Referenced by id_delete_tag(), id_delete_tag_fn(), and outliner_id_delete_tag().

◆ id_delete_tag_fn()

◆ id_fake_user_clear_fn()

void blender::ed::outliner::id_fake_user_clear_fn ( bContext * ,
ReportList * reports,
Scene * ,
TreeElement * ,
TreeStoreElem * ,
TreeStoreElem * tselem )
static

◆ id_fake_user_set_fn()

void blender::ed::outliner::id_fake_user_set_fn ( bContext * ,
ReportList * reports,
Scene * ,
TreeElement * ,
TreeStoreElem * ,
TreeStoreElem * tselem )
static

◆ id_is_in_override_hierarchy()

bool blender::ed::outliner::id_is_in_override_hierarchy ( const Main & bmain,
const ID & id,
const ID & relationship_parent_id,
const ID & override_root_id )
static

◆ id_local_fn()

◆ id_override_library_clear_single()

◆ id_override_library_clear_single_process()

◆ id_override_library_create_hierarchy()

◆ id_override_library_create_hierarchy_pre_process()

void blender::ed::outliner::id_override_library_create_hierarchy_pre_process ( bContext * C,
OutlinerLibOverrideData * data,
ReportList * reports,
TreeElement * te,
TreeStoreElem * tsep,
TreeStoreElem * tselem )
static

◆ id_override_library_create_hierarchy_process()

◆ id_override_library_delete_hierarchy()

◆ id_override_library_delete_hierarchy_process()

void blender::ed::outliner::id_override_library_delete_hierarchy_process ( bContext * C,
ReportList * ,
OutlinerLibOverrideData & data )
static

◆ id_override_library_reset()

◆ id_override_library_resync()

◆ id_override_library_resync_hierarchy_process()

◆ id_remap_fn()

◆ id_select_linked_fn()

void blender::ed::outliner::id_select_linked_fn ( bContext * C,
ReportList * ,
Scene * ,
TreeElement * ,
TreeStoreElem * ,
TreeStoreElem * tselem )
static

◆ is_collection_element()

◆ is_object_data_in_editmode()

bool blender::ed::outliner::is_object_data_in_editmode ( const ID * id,
const Object * obact )
static

◆ is_object_element()

◆ is_pchan_element()

bool blender::ed::outliner::is_pchan_element ( TreeElement * te)
static

◆ item_rename_fn()

void blender::ed::outliner::item_rename_fn ( bContext * C,
ReportList * reports,
Scene * ,
TreeElement * te,
TreeStoreElem * ,
TreeStoreElem * tselem )

◆ iterate_properties_to_display()

◆ layer_collection_collect_data_to_edit()

◆ lib_reload_fn()

void blender::ed::outliner::lib_reload_fn ( bContext * C,
ReportList * ,
Scene * ,
TreeElement * te,
TreeStoreElem * ,
TreeStoreElem * tselem )

◆ lib_relocate()

◆ lib_relocate_fn()

void blender::ed::outliner::lib_relocate_fn ( bContext * C,
ReportList * ,
Scene * ,
TreeElement * te,
TreeStoreElem * ,
TreeStoreElem * tselem )

◆ map_all_objects_to_collection()

◆ material_drop_invoke()

◆ material_drop_poll()

bool blender::ed::outliner::material_drop_poll ( bContext * C,
wmDrag * drag,
const wmEvent * event )
static

◆ merged_element_search_exec_fn()

void blender::ed::outliner::merged_element_search_exec_fn ( bContext * C,
void * ,
void * element )
static

◆ merged_element_search_fn_recursive()

◆ merged_element_search_menu()

◆ merged_element_search_menu_invoke()

◆ merged_element_search_update_fn()

◆ modifier_fn()

◆ namebutton_fn()

void blender::ed::outliner::namebutton_fn ( bContext * C,
TreeStoreElem * tselem,
const char * oldname )
static

Definition at line 734 of file outliner_draw.cc.

References blender::ANIM_armature_bonecoll_name_set(), blender::BKE_annotations_layer_active_set(), blender::BKE_keyblock_rename(), blender::BKE_library_filepath_set(), blender::BKE_main_blendfile_path(), blender::BKE_object_defgroup_unique_name(), blender::BKE_reportf(), blender::BKE_view_layer_rename(), blender::BLI_assert(), blender::BLI_exists(), blender::BLI_path_abs(), blender::BLI_strncpy_utf8(), blender::BLI_uniquename(), BLT_I18NCONTEXT_OPERATOR_DEFAULT, C, blender::CTX_data_main(), CTX_N_, blender::CTX_wm_message_bus(), blender::CTX_wm_reports(), blender::CTX_wm_space_outliner(), blender::Object::data, blender::DEG_id_tag_update(), blender::DEG_relations_tag_update(), blender::ed::outliner::TreeElement::directdata, blender::ED_armature_bone_rename(), blender::ED_id_rename(), blender::ED_undo_push(), blender::bArmature::edbo, ELEM, FILE_MAX, blender::Library::filepath, blender::TreeStoreElem::flag, blender::GS(), blender::bArmature::id, blender::bGPdata::id, blender::Library::id, blender::Object::id, blender::Scene::id, blender::TreeStoreElem::id, blender::ID_IM, blender::ID_LI, blender::ID_MA, blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_SYNC_TO_EVAL, blender::ID_SCE, blender::ID_TAG_MISSING, blender::ID_TE, blender::ed::outliner::TreeElement::idcode, blender::bGPDlayer::info, blender::bGPdata::layers, NA_RENAME, NA_SELECTED, blender::Bone::name, blender::BoneCollection::name, blender::bPoseChannel::name, blender::EditBone::name, blender::ID::name, blender::KeyBlock::name, blender::ViewLayer::name, namebutton_fn(), NC_ANIMATION, NC_GPENCIL, NC_ID, NC_IMAGE, NC_MATERIAL, NC_OBJECT, NC_SCENE, NC_TEXTURE, ND_ANIMCHAN, ND_ARMATURE_STRUCTURE, ND_BONE_COLLECTION, ND_DATA, ND_MODIFIER, node, blender::OB_ARMATURE, offsetof, OL_SETSEL_NORMAL, outliner_find_tree_element(), outliner_viewcontext_init(), blender::RPT_ERROR, blender::RPT_INFO, blender::SpaceOutliner::runtime, blender::STRNCPY(), STRNCPY_UTF8, blender::ID::tag, blender::ed::outliner::SpaceOutliner_Runtime::tree, tree_element_activate(), tree_element_cast(), blender::SpaceOutliner::treestore, blender::TSE_ACTION_SLOT, blender::TSE_BONE, blender::TSE_BONE_COLLECTION, blender::TSE_DEFGROUP, blender::TSE_EBONE, blender::TSE_GP_LAYER, blender::TSE_GREASE_PENCIL_NODE, blender::TSE_LAYER_COLLECTION, blender::TSE_LINKED_NODE_TREE, blender::TSE_MODIFIER, blender::TSE_NLA_ACTION, blender::TSE_NLA_TRACK, blender::TSE_POSE_CHANNEL, blender::TSE_R_LAYER, blender::TSE_SHAPE_KEY_BLOCK, blender::TSE_SOME_ID, blender::TSE_TEXTBUT, blender::Object::type, blender::TreeStoreElem::type, blender::WM_event_add_notifier(), and WM_msg_publish_rna_prop.

Referenced by namebutton_fn(), and outliner_buttons().

◆ object_batch_delete_hierarchy_tag_fn()

◆ object_deselect_fn()

◆ object_select_fn()

◆ object_select_hierarchy_fn()

void blender::ed::outliner::object_select_hierarchy_fn ( bContext * C,
ReportList * ,
Scene * ,
TreeElement * te,
TreeStoreElem * ,
TreeStoreElem *  )
static

◆ outliner__base_set_flag_recursive_fn()

void blender::ed::outliner::outliner__base_set_flag_recursive_fn ( bContext * C,
void * poin,
void * poin2 )
static

◆ outliner__object_set_flag_recursive_fn()

void blender::ed::outliner::outliner__object_set_flag_recursive_fn ( bContext * C,
void * poin,
void * poin2 )
static

◆ outliner_action_set_exec()

◆ outliner_active_collection()

◆ outliner_active_layer_collection()

◆ outliner_add_bone()

void blender::ed::outliner::outliner_add_bone ( AbstractTreeDisplay & tree_display,
ListBaseT< TreeElement > * lb,
ID * id,
Bone * curBone,
TreeElement * parent,
int * a )
static

◆ outliner_add_collection_init()

◆ outliner_add_collection_objects()

BLI_INLINE void blender::ed::outliner::outliner_add_collection_objects ( AbstractTreeDisplay & tree_display,
ListBaseT< TreeElement > * tree,
Collection * collection,
TreeElement * parent )

◆ outliner_add_collection_recursive()

◆ outliner_animdata_operation_exec()

◆ outliner_animdata_test()

◆ outliner_back()

◆ outliner_base_or_object_pointer_create()

void blender::ed::outliner::outliner_base_or_object_pointer_create ( const Main & bmain,
Scene * scene,
ViewLayer * view_layer,
Collection * collection,
Object * ob,
PointerRNA * ptr )
static

◆ outliner_batch_delete_object_hierarchy()

◆ outliner_batch_delete_object_hierarchy_tag()

◆ outliner_batch_delete_object_tag()

◆ outliner_box_select()

◆ outliner_box_select_exec()

◆ outliner_box_select_invoke()

◆ outliner_build_tree()

void blender::ed::outliner::outliner_build_tree ( Main * mainvar,
WorkSpace * workspace,
Scene * scene,
ViewLayer * view_layer,
SpaceOutliner * space_outliner,
ARegion * region )

◆ outliner_but_identity_cmp_context_id_fn()

bool blender::ed::outliner::outliner_but_identity_cmp_context_id_fn ( const ui::Button * a,
const ui::Button * b )
static

◆ outliner_buttons()

◆ outliner_cleanup_tree()

◆ outliner_clear_filter_exec()

◆ outliner_clear_newid_from_main()

void blender::ed::outliner::outliner_clear_newid_from_main ( Main * bmain)
static

◆ outliner_collect_objects_to_delete()

◆ outliner_collect_selected_collections()

◆ outliner_collect_selected_objects()

◆ outliner_collect_selected_objects_and_collections()

◆ outliner_collect_selected_parent_collections()

◆ outliner_collection_color_tag_set_get_description()

◆ outliner_collection_color_tag_set_get_name()

◆ outliner_collection_delete()

◆ outliner_collection_from_tree_element()

◆ outliner_collection_get_for_recursive()

◆ outliner_collection_is_isolated()

bool blender::ed::outliner::outliner_collection_is_isolated ( Scene * scene,
const LayerCollection * layer_collection_cmp,
const Collection * collection_cmp,
const bool value_cmp,
PropertyRNA * layer_or_collection_prop,
LayerCollection * layer_collection,
Collection * collection )
static

Check if collection is already isolated.

A collection is isolated if all its parents and children are "visible". All the other collections must be "invisible".

NOTE: We could/should boost performance by iterating over the tree twice. First tagging all the children/parent collections, then getting their values and comparing. To run BKE_collection_has_collection() so many times is silly and slow.

Definition at line 457 of file outliner_draw.cc.

References blender::BKE_collection_has_collection(), blender::Collection::children, blender::CollectionChild::collection, blender::LayerCollection::collection, blender::COLLECTION_IS_MASTER, blender::Collection::flag, blender::LayerCollection::flag, blender::LAYER_COLLECTION_EXCLUDE, blender::LayerCollection::layer_collections, outliner_collection_is_isolated(), outliner_layer_or_collection_pointer_create(), blender::RNA_property_boolean_get(), and blender::RNA_property_editable().

Referenced by outliner_collection_is_isolated(), and outliner_collection_isolate_flag().

◆ outliner_collection_isolate_flag()

◆ outliner_collection_set_flag_recursive()

◆ outliner_collection_set_flag_recursive_fn()

◆ outliner_color_tag_set_exec()

◆ outliner_constraint_operation_exec()

◆ outliner_context_selected_ids()

◆ outliner_copybuffer_filepath_get()

void blender::ed::outliner::outliner_copybuffer_filepath_get ( char filepath[FILE_MAX],
size_t filepath_maxncpy )
static

◆ outliner_count_levels()

int blender::ed::outliner::outliner_count_levels ( ListBaseT< TreeElement > * lb,
const int curlevel )
static

Definition at line 1326 of file outliner_edit.cc.

References outliner_count_levels().

Referenced by outliner_count_levels(), and outliner_one_level_exec().

◆ outliner_create()

◆ outliner_data_api_buttons_start_x()

int blender::ed::outliner::outliner_data_api_buttons_start_x ( int max_tree_width)
static

◆ outliner_data_from_tree_element_and_parents()

◆ outliner_data_op_sets_enum_item_fn()

◆ outliner_data_operation_exec()

◆ outliner_data_operation_poll()

◆ outliner_deactivate()

◆ outliner_delete_exec()

wmOperatorStatus blender::ed::outliner::outliner_delete_exec ( bContext * C,
wmOperator * op )
static

Definition at line 2965 of file outliner_tools.cc.

References blender::BKE_main_ensure_invariants(), blender::BKE_main_id_tag_all(), blender::BKE_view_layer_active_base_get(), blender::BKE_view_layer_synced_ensure(), C, blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_data_view_layer(), blender::CTX_wm_message_bus(), blender::CTX_wm_space_outliner(), blender::DEG_id_tag_update(), blender::DEG_relations_tag_update(), blender::ED_outliner_select_sync_from_object_tag(), blender::Scene::id, blender::ID_RECALC_HIERARCHY, blender::ID_RECALC_SELECT, blender::ID_RECALC_SYNC_TO_EVAL, blender::ID_TAG_DOIT, blender::ed::outliner::ObjectEditData::is_liboverride_allowed, blender::ed::outliner::ObjectEditData::is_liboverride_hierarchy_root_allowed, NC_SCENE, ND_LAYER_CONTENT, ND_OB_ACTIVE, ND_OB_SELECT, object_batch_delete_hierarchy_tag_fn(), blender::ed::outliner::ObjectEditData::objects_set, blender::OPERATOR_FINISHED, outliner_batch_delete_object_hierarchy(), outliner_cleanup_tree(), outliner_collect_objects_to_delete(), outliner_collection_delete(), outliner_delete_exec(), outliner_do_object_delete(), outliner_object_delete_fn(), outliner_tree_traverse(), blender::wmOperator::ptr, blender::wmOperator::reports, blender::RNA_boolean_get(), blender::SpaceOutliner::runtime, blender::ed::outliner::SpaceOutliner_Runtime::tree, blender::TSE_SELECTED, blender::WM_event_add_notifier(), and WM_msg_publish_rna_prop.

Referenced by outliner_delete_exec(), and OUTLINER_OT_delete().

◆ outliner_do_data_operation()

◆ outliner_do_id_set_operation()

void blender::ed::outliner::outliner_do_id_set_operation ( SpaceOutliner * space_outliner,
int type,
ID * newid,
void(* operation_fn )(TreeElement *, TreeStoreElem *, TreeStoreElem *, ID *) )
static

◆ outliner_do_libdata_operation()

◆ outliner_do_libdata_operation_selection_set() [1/2]

void blender::ed::outliner::outliner_do_libdata_operation_selection_set ( bContext * C,
ReportList * reports,
Scene * scene,
SpaceOutliner * space_outliner,
ListBaseT< TreeElement > & subtree,
const bool has_parent_selected,
outliner_operation_fn operation_fn,
eOutlinerLibOpSelectionSet selection_set )
static

◆ outliner_do_libdata_operation_selection_set() [2/2]

void blender::ed::outliner::outliner_do_libdata_operation_selection_set ( bContext * C,
ReportList * reports,
Scene * scene,
SpaceOutliner * space_outliner,
outliner_operation_fn operation_fn,
eOutlinerLibOpSelectionSet selection_set,
const bool do_active_element_first )
static

◆ outliner_do_libdata_operation_selection_set_element()

◆ outliner_do_liboverride_property_selection_set()

void blender::ed::outliner::outliner_do_liboverride_property_selection_set ( bContext * C,
ReportList * reports,
Scene * scene,
ListBaseT< TreeElement > & subtree,
const bool has_parent_selected,
outliner_operation_fn operation_fn )
static

◆ outliner_do_object_delete()

void blender::ed::outliner::outliner_do_object_delete ( bContext * C,
ReportList * reports,
Scene * scene,
const Set< Object * > & objects_to_delete,
OutlinerDeleteFn delete_fn )
static

Definition at line 2906 of file outliner_tools.cc.

References C, and outliner_do_object_delete().

Referenced by outliner_delete_exec(), and outliner_do_object_delete().

◆ outliner_do_object_operation()

void blender::ed::outliner::outliner_do_object_operation ( bContext * C,
ReportList * reports,
Scene * scene,
SpaceOutliner * space_outliner,
ListBaseT< TreeElement > * lb,
outliner_operation_fn operation_fn )

◆ outliner_do_object_operation_ex()

void blender::ed::outliner::outliner_do_object_operation_ex ( bContext * C,
ReportList * reports,
Scene * scene,
SpaceOutliner * space_outliner,
ListBaseT< TreeElement > * lb,
outliner_operation_fn operation_fn,
bool recurse_selected )

◆ outliner_do_scene_operation()

◆ outliner_draw_active_indicator()

void blender::ed::outliner::outliner_draw_active_indicator ( const float minx,
const float miny,
const float maxx,
const float maxy,
const float icon_color[4],
const float icon_border[4] )
static

◆ outliner_draw_get_warning_tree_element()

◆ outliner_draw_get_warning_tree_element_subtree()

◆ outliner_draw_hierarchy_line()

void blender::ed::outliner::outliner_draw_hierarchy_line ( const uint pos,
const int x,
const int y1,
const int y2,
const bool draw_dashed )
static

◆ outliner_draw_hierarchy_lines()

◆ outliner_draw_hierarchy_lines_recursive()

◆ outliner_draw_highlights() [1/2]

void blender::ed::outliner::outliner_draw_highlights ( ARegion * region,
SpaceOutliner * space_outliner,
int startx,
int * starty )
static

◆ outliner_draw_highlights() [2/2]

◆ outliner_draw_iconrow()

void blender::ed::outliner::outliner_draw_iconrow ( ui::Block * block,
const uiFontStyle * fstyle,
const TreeViewContext & tvc,
SpaceOutliner * space_outliner,
ListBaseT< TreeElement > * lb,
int level,
int xmax,
int * offsx,
int ys,
float alpha_fac,
bool in_bone_hierarchy,
const bool is_grease_pencil_node_hierarchy,
MergedIconRow * merged )
static

◆ outliner_draw_iconrow_doit()

◆ outliner_draw_mode_column()

◆ outliner_draw_mode_column_toggle()

◆ outliner_draw_overrides_restrictbuts()

◆ outliner_draw_overrides_rna_buts()

◆ outliner_draw_restrictbuts()

void blender::ed::outliner::outliner_draw_restrictbuts ( ui::Block * block,
const Main & bmain,
Scene * scene,
ViewLayer * view_layer,
ARegion * region,
SpaceOutliner * space_outliner,
ListBaseT< TreeElement > * lb,
RestrictPropertiesActive props_active_parent )
static

Definition at line 1174 of file outliner_draw.cc.

References blender::ed::outliner::RestrictProperties::base_hide_viewport, blender::ed::outliner::RestrictPropertiesActive::base_hide_viewport, blender::BKE_view_layer_base_find(), blender::BKE_view_layer_synced_ensure(), blender::BLI_assert(), blender::BONE_HIDDEN_A, blender::ed::outliner::RestrictProperties::bone_hide_viewport, blender::BONE_UNSELECTABLE, blender::ui::BUT_DRAG_LOCK, blender::ui::BUT_ICON_REVERSE, blender::ui::BUT_INACTIVE, blender::ed::outliner::RestrictProperties::collection_hide_render, blender::ed::outliner::RestrictPropertiesActive::collection_hide_render, blender::ed::outliner::RestrictProperties::collection_hide_select, blender::ed::outliner::RestrictPropertiesActive::collection_hide_select, blender::ed::outliner::RestrictProperties::collection_hide_viewport, blender::ed::outliner::RestrictPropertiesActive::collection_hide_viewport, blender::ed::outliner::RestrictProperties::constraint_enable, blender::ed::outliner::RestrictPropertiesActive::constraint_enable, blender::View2D::cur, blender::Object::data, ELEM, blender::bGPDlayer::flag, blender::Bone::flag, blender::EditBone::flag, blender::SpaceOutliner::flag, blender::GP_LAYER_HIDE, blender::GP_LAYER_LOCKED, blender::ui::IconToggle, blender::ui::IconToggleN, blender::bArmature::id, blender::Object::id, blender::Scene::id, blender::TreeStoreElem::id, blender::ID_OB, blender::ed::outliner::RestrictProperties::initialized, layer, blender::ed::outliner::RestrictProperties::layer_collection_exclude, blender::ed::outliner::RestrictProperties::layer_collection_hide_viewport, blender::ed::outliner::RestrictPropertiesActive::layer_collection_hide_viewport, blender::ed::outliner::RestrictProperties::layer_collection_holdout, blender::ed::outliner::RestrictPropertiesActive::layer_collection_holdout, blender::ed::outliner::RestrictProperties::layer_collection_indirect_only, blender::ed::outliner::RestrictPropertiesActive::layer_collection_indirect_only, blender::ed::outliner::RestrictProperties::modifier_show_render, blender::ed::outliner::RestrictPropertiesActive::modifier_show_render, blender::ed::outliner::RestrictProperties::modifier_show_viewport, blender::ed::outliner::RestrictPropertiesActive::modifier_show_viewport, node, blender::OB_GREASE_PENCIL, OB_TYPE_IS_GEOMETRY, blender::ed::outliner::RestrictProperties::object_hide_render, blender::ed::outliner::RestrictPropertiesActive::object_hide_render, blender::ed::outliner::RestrictProperties::object_hide_select, blender::ed::outliner::RestrictPropertiesActive::object_hide_select, blender::ed::outliner::RestrictProperties::object_hide_viewport, blender::ed::outliner::RestrictPropertiesActive::object_hide_viewport, blender::ed::outliner::RestrictProperties::object_holdout, blender::ed::outliner::RestrictPropertiesActive::object_holdout, blender::ed::outliner::RestrictProperties::object_indirect_only, blender::ed::outliner::RestrictPropertiesActive::object_indirect_only, outliner__base_set_flag_recursive_fn(), outliner__object_set_flag_recursive_fn(), outliner_collection_from_tree_element(), outliner_draw_restrictbuts(), outliner_is_collection_tree_element(), outliner_restrict_properties_collection_set(), outliner_right_columns_width(), blender::SpaceOutliner::outlinevis, restrictbutton_bone_select_fn(), restrictbutton_bone_visibility_fn(), restrictbutton_ebone_select_fn(), restrictbutton_ebone_visibility_fn(), restrictbutton_gp_layer_flag_fn(), restrictbutton_r_lay_fn(), blender::RNA_id_pointer_create(), blender::RNA_pointer_create_discrete(), blender::RNA_property_boolean_get(), blender::RNA_struct_type_find_property(), scenes__collection_set_flag_recursive_fn(), blender::SpaceOutliner::show_restrict_flags, blender::SO_RESTRICT_ENABLE, blender::SO_RESTRICT_HIDE, blender::SO_RESTRICT_HOLDOUT, blender::SO_RESTRICT_INDIRECT_ONLY, blender::SO_RESTRICT_RENDER, blender::SO_RESTRICT_SELECT, blender::SO_RESTRICT_VIEWPORT, blender::SO_SCENES, blender::SO_USERS_COLUMN, blender::SO_VIEW_LAYER, TE_CHILD_NOT_IN_COLLECTION, TIP_, tree_element_cast(), TREESTORE, blender::TSE_CONSTRAINT, blender::TSE_EBONE, blender::TSE_GP_LAYER, blender::TSE_GREASE_PENCIL_NODE, blender::TSE_LAYER_COLLECTION, blender::TSE_MODIFIER, blender::TSE_POSE_CHANNEL, blender::TSE_R_LAYER, blender::TSE_SOME_ID, TSELEM_OPEN, blender::Object::type, blender::TreeStoreElem::type, UI_UNIT_X, UI_UNIT_Y, blender::ARegion::v2d, V2D_SCROLL_WIDTH, view_layer__collection_set_flag_recursive_fn(), view_layer__layer_collection_set_flag_recursive_fn(), blender::VIEW_LAYER_RENDER, blender::rctf::xmax, blender::rctf::ymax, and blender::rctf::ymin.

Referenced by draw_outliner(), and outliner_draw_restrictbuts().

◆ outliner_draw_rnabuts()

◆ outliner_draw_separator()

◆ outliner_draw_struct_marks()

◆ outliner_draw_tree()

◆ outliner_draw_tree_element()

void blender::ed::outliner::outliner_draw_tree_element ( ui::Block * block,
const uiFontStyle * fstyle,
const TreeViewContext & tvc,
ARegion * region,
SpaceOutliner * space_outliner,
TreeElement * te,
bool draw_grayed_out,
int startx,
int * starty,
const float restrict_column_width,
TreeElement ** te_edit )
static

Definition at line 3162 of file outliner_draw.cc.

References blender::BASE_SELECTED, blender::BKE_image_has_packedfile(), blender::BKE_view_layer_base_find(), blender::BKE_view_layer_synced_ensure(), blender::ed::outliner::TreeViewContext::bmain, blender::View2D::cur, blender::ed::outliner::TreeElement::directdata, ELEM, element_should_draw_faded(), blender::Collection::exporters, blender::Base::flag, blender::ed::outliner::TreeElement::flag, blender::TreeStoreElem::flag, blender::ui::fontstyle_draw_simple(), blender::ui::fontstyle_string_width(), blender::ui::theme::get_color_3ubv(), blender::ui::theme::get_color_4fv(), blender::ui::theme::get_color_4ubv(), blender::ui::theme::get_color_blend_3ubv(), blender::ed::outliner::TreeElementRNACommon::get_pointer_rna(), blender::GPU_blend(), blender::GPU_BLEND_ALPHA, blender::GPU_BLEND_NONE, blender::GS(), blender::ui::icon_draw_alpha(), blender::ui::icon_from_library(), blender::TreeStoreElem::id, blender::ID_IM, blender::ID_OB, blender::ID_SCE, blender::ed::outliner::TreeElement::idcode, blender::Collection::importer, is_object_data_in_editmode(), blender::ed::outliner::TreeElement::name, blender::ID::name, blender::ed::outliner::TreeViewContext::obact, OL_DRAWSEL_ACTIVE, OL_DRAWSEL_NONE, outliner_draw_active_indicator(), outliner_draw_iconrow(), outliner_draw_tree_element(), outliner_icon_background_colors(), outliner_set_subtree_coords(), blender::RNA_struct_is_ID(), blender::ed::outliner::TreeViewContext::scene, blender::ed::outliner::TreeElement::subtree, TE_ACTIVE, TE_DRAGGING, TE_PRETEND_HAS_CHILDREN, blender::TH_ACTIVE_OBJECT, blender::TH_BACK, blender::TH_EDITED_OBJECT, blender::TH_SELECTED_OBJECT, blender::TH_TEXT, blender::TH_TEXT_HI, tree_element_active_state_get(), tree_element_cast(), tree_element_type_active_state_get(), TREESTORE, blender::TSE_HIGHLIGHTED_ICON, blender::TSE_ID_BASE, blender::TSE_LAYER_COLLECTION, blender::TSE_LINKED_NODE_TREE, blender::TSE_R_LAYER, blender::TSE_RNA_ARRAY_ELEM, blender::TSE_RNA_PROPERTY, blender::TSE_SOME_ID, blender::TSE_TEXTBUT, blender::TSE_VIEW_COLLECTION_BASE, tselem_draw_icon(), TSELEM_OPEN, blender::PointerRNA::type, blender::TreeStoreElem::type, UI_UNIT_X, UI_UNIT_Y, blender::ARegion::v2d, blender::ed::outliner::TreeViewContext::view_layer, blender::ed::outliner::TreeElement::xend, blender::rctf::xmax, blender::ed::outliner::TreeElement::xs, blender::rctf::ymin, and blender::ed::outliner::TreeElement::ys.

Referenced by outliner_draw_tree(), and outliner_draw_tree_element().

◆ outliner_draw_userbuts()

◆ outliner_draw_warning_column()

◆ outliner_draw_warning_tree_element()

void blender::ed::outliner::outliner_draw_warning_tree_element ( ui::Block * block,
const SpaceOutliner * space_outliner,
const StringRef warning_msg,
const bool use_mode_column,
const int te_ys )
static

◆ outliner_drivers_addsel_exec()

◆ outliner_drivers_deletesel_exec()

◆ outliner_drop_find()

◆ outliner_drop_insert_collection_find()

◆ outliner_drop_insert_find()

◆ outliner_dropboxes()

◆ outliner_dropzone_element()

◆ outliner_dropzone_find()

TreeElement * blender::ed::outliner::outliner_dropzone_find ( const SpaceOutliner * space_outliner,
const float fmval[2],
const bool children )
static

◆ outliner_duplicate()

◆ outliner_element_find_successor_in_parents()

◆ outliner_element_is_collection_or_object()

◆ outliner_element_visible_get()

bool blender::ed::outliner::outliner_element_visible_get ( const Main & bmain,
const Scene * scene,
ViewLayer * view_layer,
TreeElement * te,
const eSpaceOutliner_Filter exclude_filter )
static

Definition at line 877 of file outliner_tree.cc.

References blender::BASE_ENABLED_AND_VISIBLE_IN_DEFAULT_VIEWPORT, blender::BASE_SELECTABLE, blender::BASE_SELECTED, blender::BKE_view_layer_active_base_get(), blender::BKE_view_layer_base_find(), blender::BKE_view_layer_synced_ensure(), blender::BLI_assert(), blender::Object::data, blender::ed::outliner::TreeElement::directdata, blender::Base::flag, blender::TreeStoreElem::id, blender::ID_KE, blender::ID_MA, blender::ID_OB, blender::ed::outliner::TreeElement::idcode, blender::OB_ARMATURE, blender::OB_CAMERA, blender::OB_EMPTY, blender::OB_GREASE_PENCIL, blender::OB_LAMP, blender::OB_MESH, blender::Base::object, outliner_element_visible_get(), blender::ed::outliner::TreeElement::parent, SO_FILTER_ANY, blender::SO_FILTER_NO_ARMATURE_BONE_COLLECTION, blender::SO_FILTER_NO_CHILDREN, blender::SO_FILTER_NO_GREASE_PENCIL_EFFECTS, blender::SO_FILTER_NO_OB_ANIMATION, blender::SO_FILTER_NO_OB_ARMATURE, blender::SO_FILTER_NO_OB_CAMERA, blender::SO_FILTER_NO_OB_CONSTRAINTS, blender::SO_FILTER_NO_OB_CONTENT, blender::SO_FILTER_NO_OB_DATA, blender::SO_FILTER_NO_OB_DEFGROUP, blender::SO_FILTER_NO_OB_EMPTY, blender::SO_FILTER_NO_OB_GREASE_PENCIL, blender::SO_FILTER_NO_OB_LAMP, blender::SO_FILTER_NO_OB_MATERIAL, blender::SO_FILTER_NO_OB_MESH, blender::SO_FILTER_NO_OB_MODIFIERS, blender::SO_FILTER_NO_OB_OTHERS, blender::SO_FILTER_NO_OB_SHAPE_KEYS, blender::SO_FILTER_NO_POSE_BONES, SO_FILTER_OB_STATE, blender::SO_FILTER_OB_STATE_ACTIVE, blender::SO_FILTER_OB_STATE_INVERSE, blender::SO_FILTER_OB_STATE_SELECTABLE, blender::SO_FILTER_OB_STATE_SELECTED, blender::SO_FILTER_OB_STATE_VISIBLE, SO_FILTER_OB_TYPE, TREESTORE, blender::TSE_ANIM_DATA, blender::TSE_BONE_COLLECTION_BASE, blender::TSE_CONSTRAINT_BASE, blender::TSE_DEFGROUP_BASE, blender::TSE_GPENCIL_EFFECT_BASE, blender::TSE_MODIFIER_BASE, blender::TSE_POSE_BASE, blender::TSE_SOME_ID, blender::Object::type, and blender::TreeStoreElem::type.

Referenced by outliner_element_visible_get(), and outliner_filter_subtree().

◆ outliner_exclude_filter_get()

◆ outliner_extract_children_from_subtree()

◆ outliner_filter_has_name()

bool blender::ed::outliner::outliner_filter_has_name ( TreeElement * te,
const char * name,
int flags )
static

◆ outliner_filter_subtree()

◆ outliner_filter_tree()

◆ outliner_find_editbone()

TreeElement * blender::ed::outliner::outliner_find_editbone ( ListBaseT< TreeElement > * lb,
const EditBone * ebone )

◆ outliner_find_element_with_flag()

TreeElement * blender::ed::outliner::outliner_find_element_with_flag ( const ListBaseT< TreeElement > * lb,
short flag )

◆ outliner_find_first_desired_element_at_y()

TreeElement * blender::ed::outliner::outliner_find_first_desired_element_at_y ( const SpaceOutliner * space_outliner,
const float view_co,
const float view_co_limit )
static

Find the first element that passes a test starting from a reference vertical coordinate

If the element that is in the position is not what we are looking for, keep looking for its children, siblings, and eventually, aunts, cousins, distant families, ... etc.

Basically we keep going up and down the outliner tree from that point forward, until we find what we are looking for. If we are past the visible range and we can't find a valid element we return nullptr.

Definition at line 760 of file outliner_tree.cc.

References blender::SpaceOutliner::filter, blender::ed::outliner::TreeElement::next, outliner_find_first_desired_element_at_y(), outliner_find_first_desired_element_at_y_recursive(), outliner_find_item_at_y(), blender::SpaceOutliner::outlinevis, blender::ed::outliner::TreeElement::parent, blender::SpaceOutliner::runtime, blender::SO_FILTER_NO_COLLECTION, blender::SO_VIEW_LAYER, test_collection_callback(), test_object_callback(), blender::ed::outliner::SpaceOutliner_Runtime::tree, UI_UNIT_Y, and blender::ed::outliner::TreeElement::ys.

Referenced by outliner_find_first_desired_element_at_y(), and outliner_store_scrolling_position().

◆ outliner_find_first_desired_element_at_y_recursive()

TreeElement * blender::ed::outliner::outliner_find_first_desired_element_at_y_recursive ( const SpaceOutliner * space_outliner,
TreeElement * te,
const float limit,
bool(* callback_test )(TreeElement *) )
static

◆ outliner_find_first_selected_collection()

◆ outliner_find_first_selected_layer_collection()

◆ outliner_find_id()

◆ outliner_find_item_at_x_in_row()

TreeElement * blender::ed::outliner::outliner_find_item_at_x_in_row ( const SpaceOutliner * space_outliner,
TreeElement * parent_te,
float view_co_x,
bool * r_is_merged_icon,
bool * r_is_over_icon )

Collapsed items can show their children as click-able icons. This function tries to find such an icon that represents the child item at x-coordinate view_co_x (view-space).

Returns
a hovered child item or parent_te (if no hovered child found).

Definition at line 155 of file outliner_utils.cc.

References outliner_find_item_at_x_in_row(), outliner_find_item_at_x_in_row_recursive(), outliner_item_is_co_over_icon(), TREESTORE, blender::TSE_R_LAYER, TSELEM_OPEN, and blender::TreeStoreElem::type.

Referenced by outliner_find_item_at_x_in_row(), outliner_highlight_update_invoke(), and outliner_item_do_activate_from_cursor().

◆ outliner_find_item_at_x_in_row_recursive()

◆ outliner_find_item_at_y()

◆ outliner_find_next_element()

◆ outliner_find_parent_bone()

◆ outliner_find_parent_element()

TreeElement * blender::ed::outliner::outliner_find_parent_element ( ListBaseT< TreeElement > * lb,
TreeElement * parent_te,
const TreeElement * child_te )

Find parent element of te.

Definition at line 191 of file outliner_utils.cc.

References outliner_find_parent_element().

Referenced by collection_drop_init(), collection_drop_invoke(), and outliner_find_parent_element().

◆ outliner_find_posechannel()

TreeElement * blender::ed::outliner::outliner_find_posechannel ( ListBaseT< TreeElement > * lb,
const bPoseChannel * pchan )

◆ outliner_find_previous_element()

◆ outliner_find_rightmost_visible_child()

TreeElement * blender::ed::outliner::outliner_find_rightmost_visible_child ( SpaceOutliner * space_outliner,
TreeElement * te )
static

◆ outliner_find_tree_element()

TreeElement * blender::ed::outliner::outliner_find_tree_element ( ListBaseT< TreeElement > * lb,
const TreeStoreElem * store_elem )

◆ outliner_flag_flip() [1/2]

bool blender::ed::outliner::outliner_flag_flip ( ListBaseT< TreeElement > & lb,
const eTreeStoreElem_Flag flag )

◆ outliner_flag_flip() [2/2]

bool blender::ed::outliner::outliner_flag_flip ( SpaceOutliner & space_outliner,
const eTreeStoreElem_Flag flag )

◆ outliner_flag_is_any_test()

int blender::ed::outliner::outliner_flag_is_any_test ( ListBaseT< TreeElement > * lb,
eTreeStoreElem_Flag flag,
const int curlevel )

◆ outliner_flag_set() [1/2]

bool blender::ed::outliner::outliner_flag_set ( ListBaseT< TreeElement > & lb,
const eTreeStoreElem_Flag flag,
const short set )

◆ outliner_flag_set() [2/2]

◆ outliner_foreach_id()

◆ outliner_free()

◆ outliner_free_tree()

void blender::ed::outliner::outliner_free_tree ( ListBaseT< TreeElement > * tree)

◆ outliner_free_tree_element()

void blender::ed::outliner::outliner_free_tree_element ( TreeElement * element,
ListBaseT< TreeElement > * parent_subtree )

Free element and its sub-tree and remove its link in parent_subtree.

Note
Does not remove the TreeStoreElem of element!
Parameters
parent_subtreeSub-tree of the parent element, so the list containing element.

Definition at line 170 of file outliner_tree.cc.

References blender::BLI_assert(), blender::BLI_findindex(), blender::BLI_remlink(), blender::element, outliner_free_tree(), outliner_free_tree_element(), and TE_FREE_NAME.

Referenced by blender::ed::outliner::TreeDisplayOverrideLibraryHierarchies::build_tree(), outliner_extract_children_from_subtree(), outliner_filter_subtree(), outliner_free_tree(), and outliner_free_tree_element().

◆ outliner_get_insert_index()

◆ outliner_has_element_warnings()

bool blender::ed::outliner::outliner_has_element_warnings ( const SpaceOutliner & space_outliner)

◆ outliner_header_region_draw()

void blender::ed::outliner::outliner_header_region_draw ( const bContext * C,
ARegion * region )
static

◆ outliner_header_region_free()

void blender::ed::outliner::outliner_header_region_free ( ARegion * )
static

◆ outliner_header_region_init()

void blender::ed::outliner::outliner_header_region_init ( wmWindowManager * ,
ARegion * region )
static

◆ outliner_header_region_listener()

◆ outliner_hide_collect_data_to_edit()

◆ outliner_hide_exec()

◆ outliner_highlight_update_invoke()

◆ outliner_icon_background_colors()

void blender::ed::outliner::outliner_icon_background_colors ( float icon_color[4],
float icon_border[4] )
static

◆ outliner_id_copy_exec()

◆ outliner_id_copy_tag()

◆ outliner_id_copy_tag_id()

◆ outliner_id_delete_invoke()

◆ outliner_id_delete_tag()

◆ outliner_ID_drop_find()

◆ outliner_id_operation_exec()

wmOperatorStatus blender::ed::outliner::outliner_id_operation_exec ( bContext * C,
wmOperator * op )
static

Definition at line 3211 of file outliner_tools.cc.

References blender::BKE_id_multi_tagged_delete(), blender::BKE_main_ensure_invariants(), blender::BKE_main_id_tag_all(), blender::BKE_report(), C, blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_wm_manager(), blender::CTX_wm_space_outliner(), blender::ED_outliner_select_sync_from_all_tag(), blender::ED_undo_push(), get_element_operation_type(), get_target_element(), blender::ID_AC, id_delete_tag_fn(), id_fake_user_clear_fn(), id_fake_user_set_fn(), blender::ID_GR, blender::ID_IM, id_local_fn(), blender::ID_MA, id_remap_fn(), id_select_linked_fn(), blender::ID_TAG_DOIT, blender::ID_TE, blender::ID_WO, blender::wm::InvokeDefault, item_rename_fn(), NA_EDITED, NC_ANIMATION, NC_ID, NC_OBJECT, NC_SCENE, NC_SPACE, ND_LAYER, ND_NLA_ACTCHANGE, ND_OB_SHADING, ND_SPACE_OUTLINER, ND_WORLD, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, outliner_do_libdata_operation(), outliner_id_operation_exec(), OUTLINER_IDOP_COPY, OUTLINER_IDOP_DELETE, OUTLINER_IDOP_FAKE_ADD, OUTLINER_IDOP_FAKE_CLEAR, OUTLINER_IDOP_LOCAL, OUTLINER_IDOP_PACK, OUTLINER_IDOP_PASTE, OUTLINER_IDOP_REMAP, OUTLINER_IDOP_RENAME, OUTLINER_IDOP_SELECT_LINKED, OUTLINER_IDOP_SINGLE, OUTLINER_IDOP_UNLINK, blender::wmOperator::ptr, blender::wmOperator::reports, blender::RNA_enum_get(), blender::RPT_WARNING, singleuser_action_fn(), singleuser_world_fn(), TREESTORE, unlink_action_fn(), unlink_collection_fn(), unlink_material_fn(), unlink_object_fn(), unlink_texture_fn(), unlink_world_fn(), blender::WM_event_add_notifier(), and blender::WM_operator_name_call().

Referenced by outliner_id_operation_exec(), and OUTLINER_OT_id_operation().

◆ outliner_id_operation_item_poll()

◆ outliner_id_operation_itemf()

◆ outliner_id_paste_exec()

◆ outliner_id_relocate_invoke()

◆ outliner_id_remap()

◆ outliner_id_remap_exec()

◆ outliner_id_remap_find_tree_element()

◆ outliner_id_remap_invoke()

◆ outliner_id_remap_ui()

◆ outliner_idcode_to_plural()

◆ outliner_init()

void blender::ed::outliner::outliner_init ( wmWindowManager * ,
ScrArea *  )
static

Definition at line 453 of file space_outliner.cc.

References outliner_init().

Referenced by blender::ED_spacetype_outliner(), and outliner_init().

◆ outliner_is_co_within_active_mode_column()

◆ outliner_is_co_within_mode_column()

bool blender::ed::outliner::outliner_is_co_within_mode_column ( SpaceOutliner * space_outliner,
const float view_mval[2] )

◆ outliner_is_co_within_restrict_columns()

bool blender::ed::outliner::outliner_is_co_within_restrict_columns ( const SpaceOutliner * space_outliner,
const ARegion * region,
float view_co_x )
static

◆ outliner_is_collection_dragged_into_itself()

◆ outliner_is_collection_tree_element()

◆ outliner_is_element_in_view()

bool blender::ed::outliner::outliner_is_element_in_view ( const TreeElement * te,
const View2D * v2d )

◆ outliner_is_element_visible()

bool blender::ed::outliner::outliner_is_element_visible ( const TreeElement * te)

Find if element is visible in the outliner tree, i.e. if all of its parents are expanded. Doesn't check if the item is in view-bounds, for that use outliner_is_element_in_view().

Definition at line 416 of file outliner_utils.cc.

References blender::TreeStoreElem::flag, outliner_is_element_visible(), blender::ed::outliner::TreeElement::parent, TREESTORE, and blender::TSE_CLOSED.

Referenced by do_outliner_range_select(), find_walk_select_start_element(), and outliner_is_element_visible().

◆ outliner_is_scene_collection_tree_element()

bool blender::ed::outliner::outliner_is_scene_collection_tree_element ( const TreeElement * te)
static

◆ outliner_item_activate_invoke()

◆ outliner_item_do_activate_from_cursor()

wmOperatorStatus blender::ed::outliner::outliner_item_do_activate_from_cursor ( bContext * C,
const int mval[2],
const bool extend,
const bool use_range,
const bool deselect_all,
const bool recurse )
static

◆ outliner_item_drag_drop_invoke()

wmOperatorStatus blender::ed::outliner::outliner_item_drag_drop_invoke ( bContext * C,
wmOperator * ,
const wmEvent * event )
static

Definition at line 1765 of file outliner_dragdrop.cc.

References C, blender::CTX_data_scene(), blender::CTX_wm_region(), blender::CTX_wm_space_outliner(), blender::data, blender::LinkData::data, datastack_drop_data_init(), blender::ed::outliner::TreeElement::directdata, blender::ED_outliner_select_sync_from_outliner(), ELEM, blender::ed::outliner::TreeElement::flag, blender::TreeStoreElem::flag, blender::wmDragID::from_parent, blender::GS(), blender::Collection::id, blender::TreeStoreElem::id, blender::wmDragID::id, blender::ID_GR, blender::ID_OB, blender::wmDrag::ids, blender::wm::InvokeDefault, blender::Scene::master_collection, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::OPERATOR_PASS_THROUGH, outliner_collect_selected_objects_and_collections(), outliner_collection_from_tree_element(), OUTLINER_DRAG_SCOLL_OUTSIDE_PAD, outliner_find_parent_bone(), outliner_flag_set(), outliner_is_co_within_mode_column(), outliner_is_collection_tree_element(), outliner_item_drag_drop_invoke(), outliner_item_drag_element_find(), outliner_item_is_co_within_close_toggle(), outliner_tree_traverse(), blender::ed::outliner::TreeElement::parent, blender::RNA_float_set(), blender::SpaceOutliner::runtime, blender::ed::outliner::IDsSelectedData::selected_array, TE_CHILD_NOT_IN_COLLECTION, blender::ed::outliner::SpaceOutliner_Runtime::tree, tree_element_get_icon(), TREESTORE, blender::TSE_CONSTRAINT, blender::TSE_CONSTRAINT_BASE, blender::TSE_GPENCIL_EFFECT, blender::TSE_GPENCIL_EFFECT_BASE, blender::TSE_MODIFIER, blender::TSE_MODIFIER_BASE, blender::TSE_SELECTED, blender::TreeStoreElem::type, blender::ARegion::v2d, blender::ui::view2d_region_to_view(), blender::WM_drag_add_local_ID(), blender::WM_drag_data_create(), blender::WM_DRAG_DATASTACK, blender::WM_DRAG_ID, blender::WM_DRAG_NOP, blender::WM_event_drag_start_mval(), blender::WM_event_start_prepared_drag(), blender::WM_operator_name_call_ptr(), blender::WM_operator_properties_create_ptr(), blender::WM_operator_properties_free(), and blender::WM_operatortype_find().

Referenced by outliner_item_drag_drop_invoke(), and OUTLINER_OT_item_drag_drop().

◆ outliner_item_drag_element_find()

◆ outliner_item_is_co_over_icon()

bool blender::ed::outliner::outliner_item_is_co_over_icon ( const TreeElement * te,
float view_co_x )

◆ outliner_item_is_co_over_name()

bool blender::ed::outliner::outliner_item_is_co_over_name ( const TreeElement * te,
float view_co_x )

◆ outliner_item_is_co_over_name_icons()

bool blender::ed::outliner::outliner_item_is_co_over_name_icons ( const TreeElement * te,
float view_co_x )

◆ outliner_item_is_co_within_close_toggle()

bool blender::ed::outliner::outliner_item_is_co_within_close_toggle ( const TreeElement * te,
float view_co_x )

◆ outliner_item_mode_toggle()

◆ outliner_item_openclose()

◆ outliner_item_openclose_invoke()

◆ outliner_item_openclose_modal()

◆ outliner_item_rename_find_active()

◆ outliner_item_rename_find_hovered()

◆ outliner_item_rename_invoke()

◆ outliner_item_select()

◆ outliner_keyingset_additems_exec()

◆ outliner_keyingset_removeitems_exec()

◆ outliner_keymap()

void blender::ed::outliner::outliner_keymap ( wmKeyConfig * keyconf)

◆ outliner_layer_or_collection_pointer_create()

void blender::ed::outliner::outliner_layer_or_collection_pointer_create ( Scene * scene,
LayerCollection * layer_collection,
Collection * collection,
PointerRNA * ptr )
static

◆ outliner_lib_operation_exec()

◆ outliner_lib_reload_invoke()

◆ outliner_lib_relocate_invoke()

◆ outliner_lib_relocate_invoke_do()

◆ outliner_liboverride_operation_exec()

◆ outliner_liboverride_operation_poll()

bool blender::ed::outliner::outliner_liboverride_operation_poll ( bContext * C)
static

◆ outliner_liboverride_property_remove_do()

◆ outliner_liboverride_property_remove_exec()

◆ outliner_liboverride_property_remove_poll()

◆ outliner_main_region_context()

◆ outliner_main_region_draw()

◆ outliner_main_region_free()

void blender::ed::outliner::outliner_main_region_free ( ARegion * )
static

◆ outliner_main_region_init()

◆ outliner_main_region_listener()

void blender::ed::outliner::outliner_main_region_listener ( const wmRegionListenerParams * params)
static

Definition at line 122 of file space_outliner.cc.

References blender::wmNotifier::action, blender::wmRegionListenerParams::area, blender::wmNotifier::category, blender::wmNotifier::data, blender::ED_region_tag_redraw(), blender::ED_region_tag_redraw_no_rebuild(), ELEM, blender::SpaceOutliner::lib_override_view_mode, NA_ACTIVATED, NA_ADDED, NA_EDITED, NA_REMOVED, NA_RENAME, NA_SELECTED, NC_ANIMATION, NC_ASSET, NC_BRUSH, NC_GEOM, NC_GPENCIL, NC_GROUP, NC_ID, NC_IMAGE, NC_LAMP, NC_MASK, NC_MATERIAL, NC_NODE, NC_OBJECT, NC_PAINTCURVE, NC_SCENE, NC_SCREEN, NC_SPACE, NC_TEXT, NC_WINDOW, NC_WM, ND_ANIMCHAN, ND_BONE_ACTIVE, ND_BONE_COLLECTION, ND_BONE_SELECT, ND_CONSTRAINT, ND_DATA, ND_DRAW, ND_FRAME, ND_KEYFRAME, ND_KEYINGSET, ND_LAYER, ND_LAYER_CONTENT, ND_LAYOUTDELETE, ND_LIB_OVERRIDE_CHANGED, ND_LIGHTING_DRAW, ND_MODE, ND_MODIFIER, ND_NLA, ND_NLA_ACTCHANGE, ND_NLA_ORDER, ND_OB_ACTIVE, ND_OB_RENDER, ND_OB_SELECT, ND_OB_SHADING, ND_OB_VISIBLE, ND_PARENT, ND_POSE, ND_RENDER_OPTIONS, ND_SCENEBROWSE, ND_SEQUENCER, ND_SHADING_LINKS, ND_SPACE_OUTLINER, ND_TRANSFORM, ND_VERTEX_GROUP, ND_WORLD, blender::wmRegionListenerParams::notifier, NS_LAYER_COLLECTION, outliner_main_region_listener(), outliner_requires_rebuild_on_select_or_active_change(), blender::SpaceOutliner::outlinevis, blender::wmRegionListenerParams::region, blender::SO_DATA_API, blender::SO_ID_ORPHANS, blender::SO_LIB_OVERRIDE_VIEW_PROPERTIES, blender::SO_LIBRARIES, blender::SO_OVERRIDES_LIBRARY, blender::ScrArea::spacedata, and blender::wmNotifier::subtype.

Referenced by blender::ED_spacetype_outliner(), and outliner_main_region_listener().

◆ outliner_main_region_message_subscribe()

◆ outliner_make_object_parent_hierarchy()

◆ outliner_mode_toggle_fn()

◆ outliner_modifier_operation_exec()

◆ outliner_object_delete_fn()

◆ outliner_object_operation_exec()

◆ outliner_object_set_flag_recursive_fn()

◆ outliner_one_level_exec()

◆ outliner_open_back()

bool blender::ed::outliner::outliner_open_back ( TreeElement * te)
static

◆ outliner_openclose_level()

void blender::ed::outliner::outliner_openclose_level ( ListBaseT< TreeElement > * lb,
int curlevel,
int level,
int open )
static

◆ outliner_operation_invoke()

◆ outliner_operation_tree_element_poll()

◆ outliner_operator_menu()

◆ outliner_operatortypes()

void blender::ed::outliner::outliner_operatortypes ( )

Definition at line 20 of file outliner_ops.cc.

References outliner_operatortypes(), OUTLINER_OT_action_set(), OUTLINER_OT_animdata_operation(), OUTLINER_OT_clear_filter(), OUTLINER_OT_collection_color_tag_set(), OUTLINER_OT_collection_disable(), OUTLINER_OT_collection_disable_render(), OUTLINER_OT_collection_drop(), OUTLINER_OT_collection_duplicate(), OUTLINER_OT_collection_duplicate_linked(), OUTLINER_OT_collection_enable(), OUTLINER_OT_collection_enable_render(), OUTLINER_OT_collection_exclude_clear(), OUTLINER_OT_collection_exclude_set(), OUTLINER_OT_collection_hide(), OUTLINER_OT_collection_hide_inside(), OUTLINER_OT_collection_hierarchy_delete(), OUTLINER_OT_collection_holdout_clear(), OUTLINER_OT_collection_holdout_set(), OUTLINER_OT_collection_indirect_only_clear(), OUTLINER_OT_collection_indirect_only_set(), OUTLINER_OT_collection_instance(), OUTLINER_OT_collection_isolate(), OUTLINER_OT_collection_link(), OUTLINER_OT_collection_new(), OUTLINER_OT_collection_objects_deselect(), OUTLINER_OT_collection_objects_select(), OUTLINER_OT_collection_show(), OUTLINER_OT_collection_show_inside(), OUTLINER_OT_constraint_operation(), OUTLINER_OT_data_operation(), OUTLINER_OT_datastack_drop(), OUTLINER_OT_delete(), OUTLINER_OT_drivers_add_selected(), OUTLINER_OT_drivers_delete_selected(), OUTLINER_OT_expanded_toggle(), OUTLINER_OT_hide(), OUTLINER_OT_highlight_update(), OUTLINER_OT_id_copy(), OUTLINER_OT_id_delete(), OUTLINER_OT_id_linked_relocate(), OUTLINER_OT_id_operation(), OUTLINER_OT_id_paste(), OUTLINER_OT_id_remap(), OUTLINER_OT_item_activate(), OUTLINER_OT_item_drag_drop(), OUTLINER_OT_item_openclose(), OUTLINER_OT_item_rename(), OUTLINER_OT_keyingset_add_selected(), OUTLINER_OT_keyingset_remove_selected(), OUTLINER_OT_lib_operation(), OUTLINER_OT_lib_relocate(), OUTLINER_OT_liboverride_operation(), OUTLINER_OT_liboverride_property_remove(), OUTLINER_OT_liboverride_troubleshoot_operation(), OUTLINER_OT_material_drop(), OUTLINER_OT_modifier_operation(), OUTLINER_OT_object_operation(), OUTLINER_OT_operation(), OUTLINER_OT_orphans_manage(), OUTLINER_OT_orphans_purge(), OUTLINER_OT_pack_data(), OUTLINER_OT_parent_clear(), OUTLINER_OT_parent_drop(), OUTLINER_OT_scene_drop(), OUTLINER_OT_scene_operation(), OUTLINER_OT_scroll_page(), OUTLINER_OT_select_all(), OUTLINER_OT_select_box(), OUTLINER_OT_select_walk(), OUTLINER_OT_show_active(), OUTLINER_OT_show_hierarchy(), OUTLINER_OT_show_one_level(), OUTLINER_OT_start_filter(), OUTLINER_OT_unhide_all(), and blender::WM_operatortype_append().

Referenced by blender::ED_spacetype_outliner(), and outliner_operatortypes().

◆ outliner_orphans_manage_invoke()

◆ outliner_orphans_purge_cancel()

void blender::ed::outliner::outliner_orphans_purge_cancel ( bContext * C,
wmOperator * op )
static

◆ outliner_orphans_purge_check()

◆ outliner_orphans_purge_cleanup()

void blender::ed::outliner::outliner_orphans_purge_cleanup ( bContext * C,
wmOperator * op,
const bool is_abort = false )
static

◆ outliner_orphans_purge_exec()

wmOperatorStatus blender::ed::outliner::outliner_orphans_purge_exec ( bContext * C,
wmOperator * op )
static

◆ outliner_orphans_purge_invoke()

◆ outliner_orphans_purge_ui()

◆ OUTLINER_OT_action_set()

◆ OUTLINER_OT_animdata_operation()

◆ OUTLINER_OT_clear_filter()

◆ OUTLINER_OT_collection_color_tag_set()

◆ OUTLINER_OT_collection_disable()

◆ OUTLINER_OT_collection_disable_render()

◆ OUTLINER_OT_collection_drop()

◆ OUTLINER_OT_collection_duplicate()

◆ OUTLINER_OT_collection_duplicate_linked()

◆ OUTLINER_OT_collection_enable()

◆ OUTLINER_OT_collection_enable_render()

◆ OUTLINER_OT_collection_exclude_clear()

◆ OUTLINER_OT_collection_exclude_set()

◆ OUTLINER_OT_collection_hide()

◆ OUTLINER_OT_collection_hide_inside()

◆ OUTLINER_OT_collection_hierarchy_delete()

◆ OUTLINER_OT_collection_holdout_clear()

◆ OUTLINER_OT_collection_holdout_set()

◆ OUTLINER_OT_collection_indirect_only_clear()

◆ OUTLINER_OT_collection_indirect_only_set()

◆ OUTLINER_OT_collection_instance()

◆ OUTLINER_OT_collection_isolate()

◆ OUTLINER_OT_collection_link()

◆ OUTLINER_OT_collection_new()

◆ OUTLINER_OT_collection_objects_deselect()

◆ OUTLINER_OT_collection_objects_select()

◆ OUTLINER_OT_collection_show()

◆ OUTLINER_OT_collection_show_inside()

◆ OUTLINER_OT_constraint_operation()

◆ OUTLINER_OT_data_operation()

◆ OUTLINER_OT_datastack_drop()

◆ OUTLINER_OT_delete()

◆ OUTLINER_OT_drivers_add_selected()

◆ OUTLINER_OT_drivers_delete_selected()

◆ OUTLINER_OT_expanded_toggle()

◆ OUTLINER_OT_hide()

◆ OUTLINER_OT_highlight_update()

◆ OUTLINER_OT_id_copy()

◆ OUTLINER_OT_id_delete()

◆ OUTLINER_OT_id_linked_relocate()

◆ OUTLINER_OT_id_operation()

◆ OUTLINER_OT_id_paste()

◆ OUTLINER_OT_id_remap()

◆ OUTLINER_OT_item_activate()

◆ OUTLINER_OT_item_drag_drop()

◆ OUTLINER_OT_item_openclose()

◆ OUTLINER_OT_item_rename()

◆ OUTLINER_OT_keyingset_add_selected()

◆ OUTLINER_OT_keyingset_remove_selected()

◆ OUTLINER_OT_lib_operation()

◆ OUTLINER_OT_lib_reload()

◆ OUTLINER_OT_lib_relocate()

◆ OUTLINER_OT_liboverride_operation()

◆ OUTLINER_OT_liboverride_property_remove()

◆ OUTLINER_OT_liboverride_troubleshoot_operation()

◆ OUTLINER_OT_material_drop()

◆ OUTLINER_OT_modifier_operation()

◆ OUTLINER_OT_object_operation()

◆ OUTLINER_OT_operation()

◆ OUTLINER_OT_orphans_manage()

◆ OUTLINER_OT_orphans_purge()

◆ OUTLINER_OT_pack_data()

◆ OUTLINER_OT_parent_clear()

◆ OUTLINER_OT_parent_drop()

◆ OUTLINER_OT_scene_drop()

◆ OUTLINER_OT_scene_operation()

◆ OUTLINER_OT_scroll_page()

◆ OUTLINER_OT_select_all()

◆ OUTLINER_OT_select_box()

◆ OUTLINER_OT_select_walk()

◆ OUTLINER_OT_show_active()

◆ OUTLINER_OT_show_hierarchy()

◆ OUTLINER_OT_show_one_level()

◆ OUTLINER_OT_start_filter()

◆ OUTLINER_OT_unhide_all()

◆ outliner_pack_data_exec()

◆ outliner_requires_rebuild_on_select_or_active_change()

bool blender::ed::outliner::outliner_requires_rebuild_on_select_or_active_change ( const SpaceOutliner * space_outliner)

◆ outliner_restore_scrolling_position()

◆ outliner_restrict_properties_collection_set()

◆ outliner_restrict_properties_enable_collection_set()

void blender::ed::outliner::outliner_restrict_properties_enable_collection_set ( PointerRNA * collection_ptr,
RestrictProperties * props,
RestrictPropertiesActive * props_active )
static

◆ outliner_restrict_properties_enable_layer_collection_set()

void blender::ed::outliner::outliner_restrict_properties_enable_layer_collection_set ( PointerRNA * layer_collection_ptr,
PointerRNA * collection_ptr,
RestrictProperties * props,
RestrictPropertiesActive * props_active )
static

◆ outliner_right_columns_width()

◆ outliner_scene_operation_exec()

◆ outliner_scroll_page_exec()

◆ outliner_scroll_to_active()

◆ outliner_scroll_view()

void blender::ed::outliner::outliner_scroll_view ( SpaceOutliner * space_outliner,
ARegion * region,
int delta_y )

◆ outliner_search_back()

◆ outliner_search_back_te()

◆ outliner_select_all_exec()

◆ outliner_select_sync_from_edit_bone()

◆ outliner_select_sync_from_object()

◆ outliner_select_sync_from_pose_bone()

◆ outliner_select_sync_from_strip()

◆ outliner_select_sync_to_edit_bone()

◆ outliner_select_sync_to_object()

◆ outliner_select_sync_to_pose_bone()

◆ outliner_select_sync_to_strip()

◆ outliner_set_coordinates()

◆ outliner_set_properties_tab()

void blender::ed::outliner::outliner_set_properties_tab ( bContext * C,
TreeElement * te,
TreeStoreElem * tselem )
static

Definition at line 1321 of file outliner_select.cc.

References blender::BCONTEXT_BONE, blender::BCONTEXT_BONE_CONSTRAINT, blender::BCONTEXT_COLLECTION, blender::BCONTEXT_CONSTRAINT, blender::BCONTEXT_DATA, blender::BCONTEXT_MATERIAL, blender::BCONTEXT_MODIFIER, blender::BCONTEXT_OBJECT, blender::BCONTEXT_PARTICLE, blender::BCONTEXT_PHYSICS, blender::BCONTEXT_SCENE, blender::BCONTEXT_SHADERFX, blender::BCONTEXT_VIEW_LAYER, blender::BCONTEXT_WORLD, blender::BKE_constraint_panel_expand(), blender::BKE_modifier_panel_expand(), blender::BKE_shaderfx_panel_expand(), C, blender::Object::data, blender::ed::outliner::TreeElement::directdata, blender::eModifierType_Cloth, blender::eModifierType_Collision, blender::eModifierType_DynamicPaint, blender::eModifierType_Fluid, blender::eModifierType_Fluidsim, blender::eModifierType_ParticleSystem, blender::eModifierType_Softbody, blender::bArmature::id, blender::Object::id, blender::TreeStoreElem::id, blender::ID_AR, blender::ID_CA, blender::ID_CU_LEGACY, blender::ID_CV, blender::ID_GD_LEGACY, blender::ID_GP, blender::ID_IM, blender::ID_LA, blender::ID_LP, blender::ID_LT, blender::ID_MA, blender::ID_MB, blender::ID_ME, blender::ID_OB, blender::ID_PT, blender::ID_SCE, blender::ID_SPK, blender::ID_VO, blender::ID_WO, blender::ed::outliner::TreeElement::idcode, outliner_find_parent_bone(), outliner_search_back_te(), outliner_set_properties_tab(), outliner_sync_to_properties_editors(), blender::psys_get_current(), blender::RNA_id_pointer_create(), blender::RNA_pointer_create_discrete(), TREESTORE, blender::TSE_BONE, blender::TSE_BONE_COLLECTION, blender::TSE_BONE_COLLECTION_BASE, blender::TSE_CONSTRAINT, blender::TSE_CONSTRAINT_BASE, blender::TSE_DEFGROUP, blender::TSE_DEFGROUP_BASE, blender::TSE_EBONE, blender::TSE_GP_LAYER, blender::TSE_GPENCIL_EFFECT, blender::TSE_GPENCIL_EFFECT_BASE, blender::TSE_GREASE_PENCIL_NODE, blender::TSE_LAYER_COLLECTION, blender::TSE_LINKED_NODE_TREE, blender::TSE_LINKED_PSYS, blender::TSE_MODIFIER, blender::TSE_MODIFIER_BASE, blender::TSE_POSE_BASE, blender::TSE_POSE_CHANNEL, blender::TSE_R_LAYER, blender::TSE_SHAPE_KEY_BASE, blender::TSE_SHAPE_KEY_BLOCK, blender::TSE_SOME_ID, blender::ModifierData::type, and blender::TreeStoreElem::type.

Referenced by outliner_item_do_activate_from_cursor(), and outliner_set_properties_tab().

◆ outliner_set_subtree_coords()

void blender::ed::outliner::outliner_set_subtree_coords ( TreeElement * te)
static

◆ outliner_show_active()

void blender::ed::outliner::outliner_show_active ( SpaceOutliner * space_outliner,
ARegion * region,
TreeElement * te,
ID * id )
static

◆ outliner_show_active_exec()

◆ outliner_show_active_get_element()

◆ outliner_show_hierarchy_exec()

◆ outliner_shows_mode_column()

bool blender::ed::outliner::outliner_shows_mode_column ( const SpaceOutliner & space_outliner)

◆ outliner_sort()

◆ outliner_sort_custom() [1/2]

void blender::ed::outliner::outliner_sort_custom ( Main * bmain,
Scene * scene,
ListBaseT< TreeElement > * lb )
static

◆ outliner_sort_custom() [2/2]

◆ outliner_space_blend_read_after_liblink()

◆ outliner_space_blend_read_data()

◆ outliner_space_blend_write()

void blender::ed::outliner::outliner_space_blend_write ( BlendWriter * writer,
SpaceLink * sl )
static

◆ outliner_start_filter_exec()

◆ outliner_storage_cleanup()

◆ outliner_store_scrolling_position()

void blender::ed::outliner::outliner_store_scrolling_position ( SpaceOutliner * space_outliner,
ARegion * region,
OutlinerTreeElementFocus * focus )
static

Store information of current outliner scrolling status to be restored later.

Finds the top-most collection visible in the outliner and populates the OutlinerTreeElementFocus struct to retrieve this element later to make sure it is in the same original position as before filtering.

Definition at line 816 of file outliner_tree.cc.

References blender::View2D::cur, outliner_find_first_desired_element_at_y(), outliner_set_coordinates(), outliner_store_scrolling_position(), TREESTORE, blender::ed::outliner::OutlinerTreeElementFocus::tselem, blender::ARegion::v2d, blender::rctf::ymax, blender::rctf::ymin, blender::ed::outliner::OutlinerTreeElementFocus::ys, and blender::ed::outliner::TreeElement::ys.

Referenced by outliner_build_tree(), and outliner_store_scrolling_position().

◆ outliner_sync_select_from_outliner_set_types()

◆ outliner_sync_select_to_outliner_set_types()

◆ outliner_sync_selection()

◆ outliner_sync_selection_from_outliner()

◆ outliner_sync_selection_to_outliner()

void blender::ed::outliner::outliner_sync_selection_to_outliner ( const Main & bmain,
const Scene * scene,
ViewLayer * view_layer,
LayerCollection * layer_collection,
SpaceOutliner * space_outliner,
ListBaseT< TreeElement > * tree,
SyncSelectActiveData * active_data,
const SyncSelectTypes * sync_types,
bool * r_any_new_active,
short & idcode )
static

◆ outliner_sync_to_properties_editors()

◆ outliner_tag_redraw_avoid_rebuild_on_open_change()

void blender::ed::outliner::outliner_tag_redraw_avoid_rebuild_on_open_change ( const SpaceOutliner * space_outliner,
ARegion * region )

The outliner should generally use ED_region_tag_redraw_no_rebuild() to avoid unnecessary tree rebuilds. If elements are open or closed, we may still have to rebuild. Upon changing the open/closed state, call this to avoid rebuilds if possible.

Definition at line 485 of file outliner_utils.cc.

References blender::ED_region_tag_redraw(), blender::ED_region_tag_redraw_no_rebuild(), outliner_tag_redraw_avoid_rebuild_on_open_change(), blender::SpaceOutliner::runtime, and blender::ed::outliner::SpaceOutliner_Runtime::tree_display.

Referenced by outliner_item_openclose_invoke(), outliner_item_openclose_modal(), outliner_tag_redraw_avoid_rebuild_on_open_change(), and outliner_walk_select_invoke().

◆ outliner_toggle_expanded_exec()

◆ outliner_tree_dimensions()

void blender::ed::outliner::outliner_tree_dimensions ( SpaceOutliner * space_outliner,
int * r_width,
int * r_height )

◆ outliner_tree_dimensions_impl()

void blender::ed::outliner::outliner_tree_dimensions_impl ( SpaceOutliner * space_outliner,
ListBaseT< TreeElement > * lb,
int * width,
int * height )
static

◆ outliner_tree_traverse()

bool blender::ed::outliner::outliner_tree_traverse ( const SpaceOutliner * space_outliner,
ListBaseT< TreeElement > * tree,
int filter_te_flag,
int filter_tselem_flag,
TreeTraversalFunc func,
void * customdata )

Iterate over all tree elements (pre-order traversal), executing func callback for each tree element matching the optional filters.

Parameters
filter_te_flagIf not 0, only TreeElements with this flag will be visited.
filter_tselem_flagSame as filter_te_flag, but for the TreeStoreElem.
funcCustom callback to execute for each visited item.

Definition at line 306 of file outliner_utils.cc.

References blender::TreeStoreElem::flag, outliner_tree_traverse(), TRAVERSE_BREAK, TRAVERSE_CONTINUE, TRAVERSE_SKIP_CHILDS, and TREESTORE.

Referenced by collection_duplicate_exec(), collection_flag_exec(), collection_instance_exec(), collection_isolate_exec(), collection_link_exec(), collection_objects_select_exec(), collection_view_layer_exec(), collection_visibility_exec(), collections_view_layer_poll(), blender::ED_outliner_selected_objects_get(), outliner_active_collection(), outliner_active_layer_collection(), outliner_collection_delete(), outliner_color_tag_set_exec(), outliner_delete_exec(), outliner_hide_exec(), outliner_item_drag_drop_invoke(), and outliner_tree_traverse().

◆ outliner_treesort_tiebreak()

bool blender::ed::outliner::outliner_treesort_tiebreak ( bool a_is_object,
const char * a_name,
bool b_is_object,
const char * b_name )

◆ outliner_unhide_all_exec()

◆ outliner_update_viewable_area()

void blender::ed::outliner::outliner_update_viewable_area ( ARegion * region,
SpaceOutliner * space_outliner,
int tree_width,
int tree_height,
float right_column_width )
static

◆ outliner_view_layer_collections_editor_poll()

◆ outliner_viewcontext_init()

◆ outliner_walk_left()

TreeElement * blender::ed::outliner::outliner_walk_left ( SpaceOutliner * space_outliner,
TreeElement * te,
bool toggle_all )
static

◆ outliner_walk_right()

TreeElement * blender::ed::outliner::outliner_walk_right ( SpaceOutliner * space_outliner,
TreeElement * te,
bool toggle_all )
static

◆ outliner_walk_scroll()

◆ outliner_walk_select_invoke()

◆ outliner_width()

int blender::ed::outliner::outliner_width ( SpaceOutliner * space_outliner,
int max_tree_width,
float right_column_width )
static

◆ parent_clear_invoke()

◆ parent_clear_poll()

◆ parent_drop_allowed()

◆ parent_drop_invoke()

◆ parent_drop_poll()

◆ parent_drop_set_parents()

◆ pchan_fn()

◆ refreshdrivers_animdata_fn()

◆ restrictbutton_bone_select_fn()

◆ restrictbutton_bone_visibility_fn()

void blender::ed::outliner::restrictbutton_bone_visibility_fn ( bContext * C,
void * poin,
void * poin2 )
static

◆ restrictbutton_ebone_select_fn()

◆ restrictbutton_ebone_visibility_fn()

◆ restrictbutton_gp_layer_flag_fn()

void blender::ed::outliner::restrictbutton_gp_layer_flag_fn ( bContext * C,
void * poin,
void *  )
static

◆ restrictbutton_r_lay_fn()

void blender::ed::outliner::restrictbutton_r_lay_fn ( bContext * C,
void * poin,
void *  )
static

◆ restrictbutton_recursive_bone()

void blender::ed::outliner::restrictbutton_recursive_bone ( Bone * bone_parent,
eBone_Flag flag,
bool set_flag )
static

◆ restrictbutton_recursive_ebone()

◆ scene_drop_invoke()

◆ scene_drop_poll()

bool blender::ed::outliner::scene_drop_poll ( bContext * C,
wmDrag * drag,
const wmEvent * event )
static

◆ scene_fn()

◆ scenes__collection_set_flag_recursive_fn()

void blender::ed::outliner::scenes__collection_set_flag_recursive_fn ( bContext * C,
void * poin,
void * poin2 )
static

Collection properties called from the Scenes mode. Change the collection children but no objects.

Definition at line 727 of file outliner_draw.cc.

References C, outliner_collection_set_flag_recursive_fn(), and scenes__collection_set_flag_recursive_fn().

Referenced by outliner_draw_restrictbuts(), and scenes__collection_set_flag_recursive_fn().

◆ sequence_fn()

◆ singleuser_action_fn()

◆ singleuser_world_fn()

◆ subtree_contains_object()

bool blender::ed::outliner::subtree_contains_object ( ListBaseT< TreeElement > * lb)
static

◆ subtree_has_objects()

int blender::ed::outliner::subtree_has_objects ( ListBaseT< TreeElement > * lb)
static

Helper function for #tree_element_shwo_hierarchy() - recursively checks whether subtrees have any objects.

Definition at line 1871 of file outliner_edit.cc.

References blender::ID_OB, subtree_has_objects(), TREESTORE, blender::TSE_SOME_ID, and blender::TreeStoreElem::type.

Referenced by subtree_has_objects(), and tree_element_show_hierarchy().

◆ test_collection_callback()

bool blender::ed::outliner::test_collection_callback ( TreeElement * te)
static

◆ test_object_callback()

◆ tree_element_activate()

void blender::ed::outliner::tree_element_activate ( bContext * C,
const TreeViewContext & tvc,
TreeElement * te,
eOLSetState set,
bool handle_all_types )

◆ tree_element_active_camera_get()

eOLDrawState blender::ed::outliner::tree_element_active_camera_get ( const Scene * scene,
const TreeElement * te )
static

◆ tree_element_active_ebone__sel()

void blender::ed::outliner::tree_element_active_ebone__sel ( bContext * C,
bArmature * arm,
EditBone * ebone,
short sel )
static

◆ tree_element_active_material_get()

◆ tree_element_active_scene_get()

◆ tree_element_active_state_get()

◆ tree_element_active_world_get()

eOLDrawState blender::ed::outliner::tree_element_active_world_get ( const Scene * scene,
const TreeElement * te )
static

◆ tree_element_bone_activate()

◆ tree_element_bone_collection_state_get()

◆ tree_element_bone_state_get()

◆ tree_element_bonecollection_activate()

◆ tree_element_camera_activate()

◆ tree_element_cast()

template<typename TreeElementT>
TreeElementT * blender::ed::outliner::tree_element_cast ( const TreeElement * te)

◆ tree_element_constraint_activate()

◆ tree_element_defgroup_activate()

◆ tree_element_defgroup_state_get()

◆ tree_element_ebone_activate()

◆ tree_element_ebone_state_get()

◆ tree_element_expand()

void blender::ed::outliner::tree_element_expand ( const AbstractTreeElement & tree_element,
SpaceOutliner & space_outliner )

◆ tree_element_get_icon()

◆ tree_element_get_icon_from_id()

◆ tree_element_gplayer_activate()

◆ tree_element_gplayer_state_get()

◆ tree_element_grease_pencil_node_activate()

◆ tree_element_grease_pencil_node_state_get()

◆ tree_element_id_type_to_index()

int blender::ed::outliner::tree_element_id_type_to_index ( TreeElement * te)

◆ tree_element_layer_collection_activate()

◆ tree_element_layer_collection_state_get()

eOLDrawState blender::ed::outliner::tree_element_layer_collection_state_get ( const LayerCollection * layer_collection,
const TreeElement * te )
static

◆ tree_element_master_collection_activate()

◆ tree_element_master_collection_state_get()

eOLDrawState blender::ed::outliner::tree_element_master_collection_state_get ( const ViewLayer * view_layer,
const LayerCollection * layer_collection )
static

◆ tree_element_material_activate()

◆ tree_element_modifier_activate()

◆ tree_element_modifier_state_get()

◆ tree_element_object_activate()

void blender::ed::outliner::tree_element_object_activate ( bContext * C,
Main & bmain,
Scene * scene,
ViewLayer * view_layer,
TreeElement * te,
const eOLSetState set,
bool recursive )
static

Definition at line 289 of file outliner_select.cc.

References blender::ed::object::BA_DESELECT, blender::ed::object::BA_SELECT, blender::ed::object::base_activate_with_mode_exit_if_needed(), blender::ed::object::base_select(), blender::BASE_SELECTED, blender::BKE_object_is_mode_compat(), blender::BKE_view_layer_active_object_get(), blender::BKE_view_layer_base_deselect_all(), blender::BKE_view_layer_base_find(), blender::BKE_view_layer_synced_ensure(), C, blender::CTX_data_ensure_evaluated_depsgraph(), blender::CTX_wm_window(), blender::DEG_id_tag_update(), do_outliner_object_select_recursive(), blender::Base::flag, blender::TreeStoreElem::flag, blender::Scene::id, blender::TreeStoreElem::id, blender::ID_OB, blender::ID_RECALC_SELECT, blender::ID_SCE, blender::ed::outliner::TreeElement::idcode, blender::Object::mode, blender::ed::object::mode_generic_exit(), NC_SCENE, ND_OB_SELECT, blender::OB_MODE_OBJECT, blender::Base::object, blender::ToolSettings::object_flag, OL_SETSEL_EXTEND, OL_SETSEL_NONE, outliner_search_back(), outliner_search_back_te(), blender::SCE_OBJECT_MODE_LOCK, blender::Scene::toolsettings, tree_element_object_activate(), TREESTORE, blender::TSE_SELECTED, blender::TSE_SOME_ID, blender::TreeStoreElem::type, blender::WM_event_add_notifier(), blender::WM_window_get_active_view_layer(), and blender::WM_window_set_active_scene().

Referenced by do_outliner_item_activate_tree_element(), tree_element_activate(), tree_element_object_activate(), and tree_element_type_active_set().

◆ tree_element_object_state_get()

◆ tree_element_pose_state_get()

◆ tree_element_posechannel_activate()

◆ tree_element_posechannel_state_get()

◆ tree_element_psys_activate()

void blender::ed::outliner::tree_element_psys_activate ( bContext * C,
TreeStoreElem * tselem )
static

◆ tree_element_shapekey_state_get()

◆ tree_element_show_hierarchy()

◆ tree_element_strip_activate()

◆ tree_element_strip_dup_activate()

void blender::ed::outliner::tree_element_strip_dup_activate ( WorkSpace * workspace,
TreeElement *  )
static

◆ tree_element_strip_dup_state_get()

◆ tree_element_strip_state_get()

◆ tree_element_text_activate()

void blender::ed::outliner::tree_element_text_activate ( bContext * C,
TreeElement * te )
static

◆ tree_element_to_path()

◆ tree_element_type_active_set()

void blender::ed::outliner::tree_element_type_active_set ( bContext * C,
const TreeViewContext & tvc,
TreeElement * te,
TreeStoreElem * tselem,
eOLSetState set,
bool recursive )

Generic call for non-id data to make active in UI

Definition at line 874 of file outliner_select.cc.

References blender::BLI_assert(), blender::ed::outliner::TreeViewContext::bmain, C, OL_SETSEL_NONE, blender::ed::outliner::TreeViewContext::scene, tree_element_bone_activate(), tree_element_bonecollection_activate(), tree_element_constraint_activate(), tree_element_defgroup_activate(), tree_element_ebone_activate(), tree_element_gplayer_activate(), tree_element_grease_pencil_node_activate(), tree_element_layer_collection_activate(), tree_element_master_collection_activate(), tree_element_modifier_activate(), tree_element_object_activate(), tree_element_posechannel_activate(), tree_element_psys_activate(), tree_element_strip_activate(), tree_element_strip_dup_activate(), tree_element_type_active_set(), tree_element_viewlayer_activate(), tree_elemment_shapekey_active_set(), blender::TSE_BONE, blender::TSE_BONE_COLLECTION, blender::TSE_CONSTRAINT, blender::TSE_CONSTRAINT_BASE, blender::TSE_DEFGROUP, blender::TSE_EBONE, blender::TSE_GP_LAYER, blender::TSE_GREASE_PENCIL_NODE, blender::TSE_LAYER_COLLECTION, blender::TSE_LINKED_OB, blender::TSE_LINKED_PSYS, blender::TSE_MODIFIER, blender::TSE_POSE_BASE, blender::TSE_POSE_CHANNEL, blender::TSE_R_LAYER, blender::TSE_SHAPE_KEY_BLOCK, blender::TSE_STRIP, blender::TSE_STRIP_DUP, blender::TSE_VIEW_COLLECTION_BASE, blender::TreeStoreElem::type, blender::ed::outliner::TreeViewContext::view_layer, and blender::ed::outliner::TreeViewContext::workspace.

Referenced by tree_element_type_active_set().

◆ tree_element_type_active_state_get()

eOLDrawState blender::ed::outliner::tree_element_type_active_state_get ( const TreeViewContext & tvc,
const TreeElement * te,
const TreeStoreElem * tselem )

Generic call for non-id data to check the active state in UI.

Definition at line 1230 of file outliner_select.cc.

References blender::ed::outliner::TreeViewContext::bmain, blender::ed::outliner::TreeViewContext::layer_collection, blender::ed::outliner::TreeViewContext::ob_pose, OL_DRAWSEL_NONE, blender::ed::outliner::TreeViewContext::scene, tree_element_bone_collection_state_get(), tree_element_bone_state_get(), tree_element_defgroup_state_get(), tree_element_ebone_state_get(), tree_element_gplayer_state_get(), tree_element_grease_pencil_node_state_get(), tree_element_layer_collection_state_get(), tree_element_master_collection_state_get(), tree_element_modifier_state_get(), tree_element_object_state_get(), tree_element_pose_state_get(), tree_element_posechannel_state_get(), tree_element_shapekey_state_get(), tree_element_strip_dup_state_get(), tree_element_strip_state_get(), tree_element_type_active_state_get(), tree_element_viewlayer_state_get(), blender::TSE_BONE, blender::TSE_BONE_COLLECTION, blender::TSE_CONSTRAINT, blender::TSE_CONSTRAINT_BASE, blender::TSE_DEFGROUP, blender::TSE_EBONE, blender::TSE_GP_LAYER, blender::TSE_GREASE_PENCIL_NODE, blender::TSE_LAYER_COLLECTION, blender::TSE_LINKED_NODE_TREE, blender::TSE_LINKED_OB, blender::TSE_LINKED_PSYS, blender::TSE_MODIFIER, blender::TSE_POSE_BASE, blender::TSE_POSE_CHANNEL, blender::TSE_R_LAYER, blender::TSE_SHAPE_KEY_BLOCK, blender::TSE_STRIP, blender::TSE_STRIP_DUP, blender::TSE_VIEW_COLLECTION_BASE, blender::TreeStoreElem::type, blender::ed::outliner::TreeViewContext::view_layer, and blender::ed::outliner::TreeViewContext::workspace.

Referenced by outliner_draw_iconrow(), outliner_draw_tree_element(), and tree_element_type_active_state_get().

◆ tree_element_viewlayer_activate()

◆ tree_element_viewlayer_state_get()

eOLDrawState blender::ed::outliner::tree_element_viewlayer_state_get ( const ViewLayer * view_layer,
const TreeElement * te )
static

◆ tree_element_world_activate()

◆ tree_elemment_shapekey_active_set()

◆ treesort_alpha()

bool blender::ed::outliner::treesort_alpha ( const tTreeSort & x1,
const tTreeSort & x2 )
static

◆ treesort_alpha_ob()

◆ treesort_child_not_in_collection()

std::optional< bool > blender::ed::outliner::treesort_child_not_in_collection ( const tTreeSort & x1,
const tTreeSort & x2 )
static

◆ treesort_custom()

bool blender::ed::outliner::treesort_custom ( const tTreeSort & x1,
const tTreeSort & x2,
const OutlinerSortMaps & sort_maps,
const Map< Collection *, CollectionChild * > & collection_child_map,
Collection * collection,
const bool is_parented_object )
static

◆ tselem_draw_icon()

◆ unlink_action_fn()

◆ unlink_collection_fn()

◆ unlink_material_fn()

◆ unlink_object_fn()

◆ unlink_texture_fn()

◆ unlink_world_fn()

◆ unlinkact_animdata_fn()

void blender::ed::outliner::unlinkact_animdata_fn ( int ,
TreeElement * ,
TreeStoreElem * tselem,
void *  )
static

◆ unused_message_gen()

void blender::ed::outliner::unused_message_gen ( std::string & message,
const std::array< int, INDEX_ID_MAX > & num_tagged )
static

◆ unused_message_popup_width_compute()

◆ user_tooltip_func()

◆ verify_active_keyingset()

◆ view_layer__collection_set_flag_recursive_fn()

void blender::ed::outliner::view_layer__collection_set_flag_recursive_fn ( bContext * C,
void * poin,
void * poin2 )
static

Collection properties called from the ViewLayer mode. Change the (non-excluded) collection children, and the objects nested to them all.

Definition at line 715 of file outliner_draw.cc.

References C, blender::LayerCollection::collection, outliner_collection_set_flag_recursive_fn(), and view_layer__collection_set_flag_recursive_fn().

Referenced by outliner_draw_restrictbuts(), and view_layer__collection_set_flag_recursive_fn().

◆ view_layer__layer_collection_set_flag_recursive_fn()

void blender::ed::outliner::view_layer__layer_collection_set_flag_recursive_fn ( bContext * C,
void * poin,
void * poin2 )
static

Layer collection properties called from the ViewLayer mode. Change the (non-excluded) collection children, and the objects nested to them all.

Definition at line 702 of file outliner_draw.cc.

References C, outliner_collection_set_flag_recursive_fn(), and view_layer__layer_collection_set_flag_recursive_fn().

Referenced by outliner_draw_restrictbuts(), and view_layer__layer_collection_set_flag_recursive_fn().

◆ write_space_outliner()

Variable Documentation

◆ LOG

CLG_LogRef blender::ed::outliner::LOG = {"outliner.tools"}
static

◆ outliner_context_dir

const char* blender::ed::outliner::outliner_context_dir[]
static
Initial value:
= {
"id",
"selected_ids",
nullptr,
}

Definition at line 30 of file outliner_context.cc.

Referenced by outliner_main_region_context().

◆ outliner_lib_op_type_items

const EnumPropertyItem blender::ed::outliner::outliner_lib_op_type_items[]
static
Initial value:
= {
{OL_LIB_DELETE, "DELETE", ICON_X, "Delete", "Delete this library and all its items"},
"RELOCATE",
0,
"Relocate",
"Select a new path for this library, and reload all its data"},
{OL_LIB_RELOAD, "RELOAD", ICON_FILE_REFRESH, "Reload", "Reload all data from this library"},
{0, nullptr, 0, nullptr, nullptr},
}

Definition at line 3428 of file outliner_tools.cc.

Referenced by OUTLINER_OT_lib_operation().

◆ prop_animdata_op_types

const EnumPropertyItem blender::ed::outliner::prop_animdata_op_types[]
static
Initial value:
= {
"CLEAR_ANIMDATA",
0,
"Clear Animation Data",
"Remove this animation data container"},
{OUTLINER_ANIMOP_SET_ACT, "SET_ACT", 0, "Set Action", ""},
{OUTLINER_ANIMOP_CLEAR_ACT, "CLEAR_ACT", 0, "Unlink Action", ""},
{OUTLINER_ANIMOP_REFRESH_DRV, "REFRESH_DRIVERS", 0, "Refresh Drivers", ""},
{OUTLINER_ANIMOP_CLEAR_DRV, "CLEAR_DRIVERS", 0, "Clear Drivers", ""},
{0, nullptr, 0, nullptr, nullptr},
}

Definition at line 3627 of file outliner_tools.cc.

Referenced by OUTLINER_OT_animdata_operation().

◆ prop_constraint_op_types

const EnumPropertyItem blender::ed::outliner::prop_constraint_op_types[]
static
Initial value:
= {
{OL_CONSTRAINTOP_ENABLE, "ENABLE", ICON_HIDE_OFF, "Enable", ""},
{OL_CONSTRAINTOP_DISABLE, "DISABLE", ICON_HIDE_ON, "Disable", ""},
{OL_CONSTRAINTOP_DELETE, "DELETE", ICON_X, "Delete", ""},
{0, nullptr, 0, nullptr, nullptr},
}

Definition at line 3728 of file outliner_tools.cc.

Referenced by OUTLINER_OT_constraint_operation().

◆ prop_id_op_types

const EnumPropertyItem blender::ed::outliner::prop_id_op_types[]
static
Initial value:
= {
{OUTLINER_IDOP_UNLINK, "UNLINK", 0, "Unlink", ""},
{OUTLINER_IDOP_LOCAL, "LOCAL", 0, "Make Local", ""},
{OUTLINER_IDOP_SINGLE, "SINGLE", 0, "Make Single User", ""},
{OUTLINER_IDOP_DELETE, "DELETE", ICON_X, "Delete", ""},
"REMAP",
0,
"Remap Users",
"Make all users of selected data-blocks to use instead current (clicked) one"},
{OUTLINER_IDOP_COPY, "COPY", ICON_COPYDOWN, "Copy", ""},
{OUTLINER_IDOP_PASTE, "PASTE", ICON_PASTEDOWN, "Paste", ""},
"ADD_FAKE",
0,
"Add Fake User",
"Ensure data-block gets saved even if it isn't in use (e.g. for motion and material "
"libraries)"},
{OUTLINER_IDOP_FAKE_CLEAR, "CLEAR_FAKE", 0, "Clear Fake User", ""},
{OUTLINER_IDOP_RENAME, "RENAME", 0, "Rename", ""},
{OUTLINER_IDOP_SELECT_LINKED, "SELECT_LINKED", 0, "Select Linked", ""},
{OUTLINER_IDOP_PACK, "PACK", ICON_PACKAGE, "Pack", "Embed data-blocks into the .blend file"},
{0, nullptr, 0, nullptr, nullptr},
}
#define RNA_ENUM_ITEM_SEPR
Definition RNA_types.hh:762

Definition at line 3123 of file outliner_tools.cc.

Referenced by outliner_id_operation_itemf(), and OUTLINER_OT_id_operation().

◆ prop_lib_op_selection_set

const EnumPropertyItem blender::ed::outliner::prop_lib_op_selection_set[]
static
Initial value:
= {
"SELECTED",
0,
"Selected",
"Apply the operation over selected data-blocks only"},
"CONTENT",
0,
"Content",
"Apply the operation over content of the selected items only (the data-blocks in their "
"sub-tree)"},
"SELECTED_AND_CONTENT",
0,
"Selected & Content",
"Apply the operation over selected data-blocks and all their dependencies"},
{0, nullptr, 0, nullptr, nullptr},
}
@ OUTLINER_LIB_LIB_SELECTIONSET_SELECTED_AND_CONTENT

Definition at line 582 of file outliner_tools.cc.

Referenced by OUTLINER_OT_liboverride_operation(), and OUTLINER_OT_liboverride_troubleshoot_operation().

◆ prop_liboverride_op_types

const EnumPropertyItem blender::ed::outliner::prop_liboverride_op_types[]
static
Initial value:
= {
"OVERRIDE_LIBRARY_CREATE_HIERARCHY",
0,
"Make",
"Create a local override of the selected linked data-blocks, and their hierarchy of "
"dependencies"},
"OVERRIDE_LIBRARY_RESET",
0,
"Reset",
"Reset the selected local overrides to their linked references values"},
"OVERRIDE_LIBRARY_CLEAR_SINGLE",
0,
"Clear",
"Delete the selected local overrides and relink their usages to the linked data-blocks if "
"possible, else reset them and mark them as non editable"},
{0, nullptr, 0, nullptr, nullptr},
}

Definition at line 1860 of file outliner_tools.cc.

Referenced by OUTLINER_OT_liboverride_operation().

◆ prop_liboverride_troubleshoot_op_types

const EnumPropertyItem blender::ed::outliner::prop_liboverride_troubleshoot_op_types[]
static
Initial value:
= {
"OVERRIDE_LIBRARY_RESYNC_HIERARCHY",
0,
"Resync",
"Rebuild the selected local overrides from their linked references, as well as their "
"hierarchies of dependencies"},
"OVERRIDE_LIBRARY_RESYNC_HIERARCHY_ENFORCE",
0,
"Resync Enforce",
"Rebuild the selected local overrides from their linked references, as well as their "
"hierarchies of dependencies, enforcing these hierarchies to match the linked data (i.e. "
"ignoring existing overrides on data-blocks pointer properties)"},
"OVERRIDE_LIBRARY_DELETE_HIERARCHY",
0,
"Delete",
"Delete the selected local overrides (including their hierarchies of override dependencies) "
"and relink their usages to the linked data-blocks"},
{0, nullptr, 0, nullptr, nullptr},
}

Definition at line 1881 of file outliner_tools.cc.

Referenced by OUTLINER_OT_liboverride_troubleshoot_operation().

◆ prop_modifier_op_types

const EnumPropertyItem blender::ed::outliner::prop_modifier_op_types[]
static
Initial value:
= {
{OL_MODIFIER_OP_APPLY, "APPLY", ICON_CHECKMARK, "Apply", ""},
{OL_MODIFIER_OP_DELETE, "DELETE", ICON_X, "Delete", ""},
{OL_MODIFIER_OP_TOGVIS, "TOGVIS", ICON_RESTRICT_VIEW_OFF, "Toggle Viewport Use", ""},
{OL_MODIFIER_OP_TOGREN, "TOGREN", ICON_RESTRICT_RENDER_OFF, "Toggle Render Use", ""},
{0, nullptr, 0, nullptr, nullptr},
}

Definition at line 3774 of file outliner_tools.cc.

Referenced by OUTLINER_OT_modifier_operation().

◆ prop_object_op_types

const EnumPropertyItem blender::ed::outliner::prop_object_op_types[]
static
Initial value:
= {
{OL_OP_SELECT, "SELECT", ICON_RESTRICT_SELECT_OFF, "Select", ""},
{OL_OP_DESELECT, "DESELECT", 0, "Deselect", ""},
{OL_OP_SELECT_HIERARCHY, "SELECT_HIERARCHY", 0, "Select Hierarchy", ""},
"REMAP",
0,
"Remap Users",
"Make all users of selected data-blocks to use instead a new chosen one"},
{OL_OP_RENAME, "RENAME", 0, "Rename", ""},
{0, nullptr, 0, nullptr, nullptr},
}

Definition at line 2771 of file outliner_tools.cc.

Referenced by OUTLINER_OT_object_operation().

◆ prop_scene_op_types

const EnumPropertyItem blender::ed::outliner::prop_scene_op_types[]
static
Initial value:
= {
{OL_SCENE_OP_DELETE, "DELETE", ICON_X, "Delete", ""},
{0, nullptr, 0, nullptr, nullptr},
}

Definition at line 705 of file outliner_tools.cc.

Referenced by OUTLINER_OT_scene_operation().