63 if ((fmval[1] > te->
ys) && (fmval[1] < (te->
ys +
UI_UNIT_Y))) {
137 space_outliner, &space_outliner->
runtime->
tree, view_mval[1]);
142 const float margin =
UI_UNIT_Y * (1.0f / 4);
144 if (view_mval[1] < (te_hovered->
ys + margin)) {
147 if (te_hovered->
subtree.is_empty()) {
152 return te_hovered->
subtree.first();
157 if (view_mval[1] > (te_hovered->
ys + (3 * margin))) {
170 if (view_mval[1] < last->
ys) {
188 while (te !=
nullptr) {
189 if (check_type(te)) {
205 if (!(drop_target_te && dragged_id &&
GS(dragged_id->
name) ==
ID_GR)) {
214 while (coll_te && coll_te->
parent !=
nullptr) {
218 if (&te_parent_coll->
id == dragged_id) {
224 coll_te = coll_te->
parent;
252 if (!collection_te) {
268 if (!is_object_row) {
280 ListBaseT<T> *listbase)
285 drop_te = drop_te->
prev;
290 drop_te = drop_te->
next;
294 if (drop_te ==
nullptr) {
314 Object *potential_parent = id_cast<Object *>(tselem->
id);
316 if (potential_parent == potential_child) {
322 if (potential_parent == potential_child->
parent) {
376 if (!potential_child) {
411 const bool keep_transform)
420 if (scene ==
nullptr) {
429 bool parent_set =
false;
430 bool linked_objects =
false;
432 for (
wmDragID *drag_id = drag; drag_id; drag_id = drag_id->
next) {
433 if (
GS(drag_id->id->name) ==
ID_OB) {
434 Object *
object = id_cast<Object *>(drag_id->id);
438 linked_objects =
true;
443 reports,
C, scene,
object, parent, parent_type,
false, keep_transform,
nullptr))
450 if (linked_objects) {
451 BKE_report(reports,
RPT_INFO,
"Cannot edit library linked or non-editable override object(s)");
470 Object *par = id_cast<Object *>(tselem->
id);
473 if (
ELEM(
nullptr, ob, par)) {
484 ListBaseT<wmDrag> *lb =
static_cast<ListBaseT<wmDrag> *
>(
event->customdata);
485 wmDrag *drag = lb->first();
496 ot->
name =
"Drop to Set Parent (hold Alt to not keep transforms)";
498 ot->
idname =
"OUTLINER_OT_parent_drop";
541 switch (
GS(
id->name)) {
563 ListBaseT<wmDrag> *lb =
static_cast<ListBaseT<wmDrag> *
>(
event->customdata);
564 wmDrag *drag = lb->first();
566 for (
wmDragID &drag_id : drag->ids) {
568 Object *
object = id_cast<Object *>(drag_id.
id);
586 ot->
name =
"Drop to Clear Parent (hold Alt to not keep transforms)";
587 ot->
description =
"Drag to clear parent in Outliner";
588 ot->
idname =
"OUTLINER_OT_parent_clear";
657 ot->
name =
"Drop Object to Scene";
658 ot->
description =
"Drag object to scene in Outliner";
659 ot->
idname =
"OUTLINER_OT_scene_drop";
714 ot->
name =
"Drop Material on Object";
715 ot->
description =
"Drag material to object in Outliner";
716 ot->
idname =
"OUTLINER_OT_material_drop";
774 drag->
poin = drop_data;
805 ob = id_cast<Object *>(
TREESTORE(object_te)->
id);
834 else if (ob && ob != drop_data->
ob_parent) {
835 drop_data->
drop_te = object_te;
842 else if (ob || pchan) {
850 else if (ob && ob != drop_data->
ob_parent) {
853 drop_data->
drop_te = object_te;
861 drop_data->
drop_te = te_target;
879 Object *ob_dst = id_cast<Object *>(tselem->
id);
961 return TIP_(
"Reorder");
964 return TIP_(
"Copy to bone");
966 return TIP_(
"Copy to object");
970 return TIP_(
"Link all to bone");
972 return TIP_(
"Link all to object");
981 Object *ob_dst = id_cast<Object *>(tselem->
id);
988 ListBaseT<bConstraint> *src;
997 ListBaseT<bConstraint> *dst;
1026 Object *ob_dst = id_cast<Object *>(tselem->
id);
1120 ListBaseT<wmDrag> *lb =
static_cast<ListBaseT<wmDrag> *
>(
event->customdata);
1121 wmDrag *drag = lb->first();
1142 ot->
name =
"Data Stack Drop";
1143 ot->
description =
"Copy or reorder modifiers, constraints, and effects";
1144 ot->
idname =
"OUTLINER_OT_datastack_drop";
1178 return (id_cast<Scene *>(
id))->master_collection;
1181 return id_cast<Collection *>(
id);
1212 if (drag_id ==
nullptr) {
1216 ID *
id = drag_id->
id;
1252 if (
id == &to_collection->
id) {
1267 if (parent_te !=
nullptr && parent_te->
idcode ==
ID_OB) {
1268 const Object *parent_ob = id_cast<Object *>(
TREESTORE(parent_te)->
id);
1271 const Object *
object = id_cast<const Object *>(drag_id.
id);
1272 if (
object->parent != parent_ob) {
1283 const Collection *target_collection = to_collection;
1285 target_collection =
nullptr;
1288 te_parent !=
nullptr;
1289 te_parent = te_parent->
parent)
1292 if (target_collection !=
nullptr) {
1298 if (target_collection !=
nullptr &&
1304 data->from = from_collection;
1305 data->to = to_collection;
1307 data->insert_type = insert_type;
1322 switch (
data.insert_type) {
1361 bool same_level =
false;
1373 if (!target_is_object_row && !target_is_collection_row) {
1376 const bool tooltip_link = (is_link && !same_level);
1379 const char *tooltip_before = tooltip_link ?
1380 (target_is_object_row ?
TIP_(
"Link before object") :
1381 TIP_(
"Link before collection")) :
1382 (target_is_object_row ?
TIP_(
"Move before object") :
1383 TIP_(
"Move before collection"));
1385 const char *tooltip_between = tooltip_link ?
1386 (target_is_object_row ?
TIP_(
"Link between objects") :
1387 TIP_(
"Link between collections")) :
1388 (target_is_object_row ?
TIP_(
"Move between objects") :
1389 TIP_(
"Move between collections"));
1391 const char *tooltip_after = tooltip_link ?
1392 (target_is_object_row ?
TIP_(
"Link after object") :
1393 TIP_(
"Link after collection")) :
1394 (target_is_object_row ?
TIP_(
"Move after object") :
1395 TIP_(
"Move after collection"));
1398 switch (
data.insert_type) {
1403 return tooltip_between;
1405 return tooltip_before;
1410 return tooltip_between;
1412 return tooltip_after;
1415 return TIP_(
"Link inside collection");
1425 return TIP_(
"Move parent object inside collection");
1428 "Move inside collection (Ctrl to link, Shift to parent, "
1429 "Ctrl + Shift to move only parent)");
1431 return TIP_(
"Move inside collection (Ctrl to link)");
1462 ListBaseT<wmDrag> *lb =
static_cast<ListBaseT<wmDrag> *
>(
event->customdata);
1463 wmDrag *drag = lb->first();
1471 bool relative_after =
false;
1473 bool is_parented_object =
false;
1483 for (
TreeElement *te_parent = parent_te; te_parent !=
nullptr; te_parent = te_parent->
parent) {
1485 if (
data.to !=
nullptr) {
1490 is_parented_object =
true;
1507 if (is_custom_sort_move) {
1508 if (is_parented_object) {
1524 auto get_sort_index = [&](
const std::variant<Object *, Collection *> &item) ->
int {
1525 int sort_index = -1;
1526 if (std::holds_alternative<Object *>(item)) {
1527 Object *ob = std::get<Object *>(item);
1529 if (cob ==
nullptr) {
1531 if (other_col !=
nullptr) {
1545 return (sort_index >= 0) ? sort_index :
INT_MAX;
1547 auto items_sort = [&](
const std::variant<Object *, Collection *> &a,
1548 const std::variant<Object *, Collection *> &
b) {
1549 const int a_index = get_sort_index(a);
1550 const int b_index = get_sort_index(
b);
1551 if (a_index != b_index) {
1552 return a_index < b_index;
1554 const bool a_is_ob = std::holds_alternative<Object *>(a);
1555 const bool b_is_ob = std::holds_alternative<Object *>(
b);
1557 a_is_ob ? std::get<Object *>(a)->
id.name + 2 :
nullptr,
1559 b_is_ob ? std::get<Object *>(
b)->
id.name + 2 :
nullptr);
1561 std::ranges::stable_sort(items, items_sort);
1564 if (relative_after && !is_custom_sort_move) {
1568 int insert_index = items.
size();
1570 auto is_relative = [&](
const std::variant<Object *, Collection *> &item) {
1572 return std::holds_alternative<Object *>(item) &&
1576 return std::holds_alternative<Collection *>(item) &&
1577 std::get<Collection *>(item) ==
1583 if (is_relative(items[i])) {
1590 for (
wmDragID &drag_id : drag->ids) {
1598 Object *
object = id_cast<Object *>(drag_id.
id);
1606 for (
Object *child_ob : child_objects) {
1615 if (is_custom_sort_move) {
1617 std::variant<Object *, Collection *>(
object));
1619 if (
index < insert_index) {
1624 dragged_items.
append(
object);
1629 Collection *collection = id_cast<Collection *>(drag_id.
id);
1631 if (collection != from) {
1635 if (is_custom_sort_move) {
1637 std::variant<Object *, Collection *>(collection));
1639 if (
index < insert_index) {
1644 dragged_items.
append(collection);
1654 if (is_custom_sort_move) {
1660 using T = std::decay_t<
decltype(item)>;
1661 if constexpr (std::is_same_v<T, Object *>) {
1663 if (cob ==
nullptr) {
1665 if (other_col !=
nullptr) {
1669 if (cob !=
nullptr) {
1670 if (is_parented_object) {
1678 else if constexpr (std::is_same_v<T, Collection *>) {
1680 if (child !=
nullptr) {
1702 ot->
name =
"Move to Collection";
1703 ot->
description =
"Drag to move to collection in Outliner";
1704 ot->
idname =
"OUTLINER_OT_collection_drop";
1720#define OUTLINER_DRAG_SCOLL_OUTSIDE_PAD 7
1782 if (!
data.drag_id) {
1805 const bool use_datastack_drag =
ELEM(tselem->
type,
1816 if (use_datastack_drag) {
1820 drag, id_cast<Object *>(tselem->
id), pchan, te, tselem, te->
directdata);
1855 if (te_selected->
parent) {
1857 te_parent = te_parent->
parent)
1872 if (drag_id.
id ==
id) {
1901 ot->
name =
"Drag and Drop";
1902 ot->
idname =
"OUTLINER_OT_item_drag_drop";
1903 ot->
description =
"Drag and drop element to another place";
1909#undef OUTLINER_DRAG_SCOLL_OUTSIDE_PAD
1926 "OUTLINER_OT_datastack_drop",
1932 "OUTLINER_OT_collection_drop",
General operations, lookup, etc. for materials.
General operations, lookup, etc. for blender objects.
#define ID_IS_EDITABLE(_id)
#define ID_IS_OVERRIDE_LIBRARY(_id)
Object groups, one object can be in many groups at once.
Object is a sort of wrapper for general info.
Read Blender memory allocation and freeing.
#define BLI_assert_unreachable()
void append(const T &value)
void insert(const int64_t insert_index, const T &value)
void remove(const int64_t index)
IndexRange index_range() const
Span< T > as_span() const
int64_t first_index_of_try(const T &value) const
@ CLEAR_PARENT_KEEP_TRANSFORM
void constraint_copy_for_object(Main *bmain, Object *ob_dst, bConstraint *con)
void constraint_link(Main *bmain, Object *ob_dst, ListBaseT< bConstraint > *dst, ListBaseT< bConstraint > *src)
void constraint_copy_for_pose(Main *bmain, Object *ob_dst, bPoseChannel *pchan, bConstraint *con)
void base_select(Base *base, eObjectSelect_Mode mode)
ModifierData * modifier_copy_to_object(Main *bmain, const Scene *scene, const Object *ob_src, const ModifierData *md, Object *ob_dst, ReportList *reports)
bool parent_set(ReportList *reports, const bContext *C, Scene *scene, Object *const ob, Object *const par, int partype, bool xmirror, bool keep_transform, const int vert_par[3])
void shaderfx_copy(Object *dst, ShaderFxData *fx)
bool constraint_move_to_index(Object *ob, bConstraint *con, int index)
void parent_clear(Main *bmain, Object *ob, int type)
bool modifier_move_to_index(ReportList *reports, eReportType error_type, Object *ob, ModifierData *md, int index, bool allow_partial)
bool shaderfx_move_to_index(ReportList *reports, Object *ob, ShaderFxData *fx, int index)
void modifier_link(bContext *C, Object *ob_dst, Object *ob_src)
void shaderfx_link(Object *dst, Object *src)
static bool scene_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event)
bool outliner_item_is_co_within_close_toggle(const TreeElement *te, float view_co_x)
static bool collection_drop_init(bContext *C, wmDrag *drag, const int xy[2], CollectionDrop *data)
static bool is_pchan_element(TreeElement *te)
TreeElement * outliner_find_item_at_y(const SpaceOutliner *space_outliner, const ListBaseT< TreeElement > *tree, float view_co_y)
static void datastack_drop_link(bContext *C, StackDropData *drop_data)
bool(*)(TreeElement *te) CheckTypeFn
static wmOperatorStatus outliner_item_drag_drop_invoke(bContext *C, wmOperator *, const wmEvent *event)
static TreeElement * outliner_drop_find(bContext *C, const wmEvent *event)
static bool parent_drop_allowed(const Main &bmain, TreeElement *te, Object *potential_child)
bool outliner_tree_traverse(const SpaceOutliner *space_outliner, ListBaseT< TreeElement > *tree, int filter_te_flag, int filter_tselem_flag, TreeTraversalFunc func, void *customdata)
static std::string datastack_drop_tooltip(bContext *, wmDrag *drag, const int[2], wmDropBox *)
bool outliner_is_collection_tree_element(const TreeElement *te)
static std::string collection_drop_tooltip(bContext *C, wmDrag *drag, const int xy[2], wmDropBox *)
static ID * outliner_ID_drop_find(bContext *C, const wmEvent *event, short idcode)
static bool collection_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event)
static wmOperatorStatus scene_drop_invoke(bContext *C, wmOperator *, const wmEvent *event)
static bool datastack_drop_are_types_valid(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)
TreeElement * outliner_find_parent_element(ListBaseT< TreeElement > *lb, TreeElement *parent_te, const TreeElement *child_te)
static TreeTraversalAction outliner_collect_selected_objects_and_collections(TreeElement *te, void *customdata)
static bool datastack_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event)
void OUTLINER_OT_collection_drop(wmOperatorType *ot)
TreeElementIcon tree_element_get_icon(TreeStoreElem *tselem, TreeElement *te)
static TreeElement * outliner_drop_insert_collection_find(bContext *C, const int xy[2], TreeElementInsertType *r_insert_type)
@ DATA_STACK_DROP_REORDER
TreeElement * outliner_find_id(SpaceOutliner *space_outliner, ListBaseT< TreeElement > *lb, const ID *id, TreeElementFlag exclude_flags)
bPoseChannel * outliner_find_parent_bone(TreeElement *te, TreeElement **r_bone_te)
bool outliner_flag_set(SpaceOutliner &space_outliner, const eTreeStoreElem_Flag flag, const short set)
void OUTLINER_OT_datastack_drop(wmOperatorType *ot)
static TreeElement * outliner_drop_insert_find(bContext *C, const int xy[2], TreeElementInsertType *r_insert_type)
static void find_child_objects_recursive(Collection *from, Object *ob, Vector< Object * > &child_objects)
static void datastack_drop_data_init(wmDrag *drag, Object *ob, bPoseChannel *pchan, TreeElement *te, TreeStoreElem *tselem, void *directdata)
Collection * outliner_collection_from_tree_element(const TreeElement *te)
static bool parent_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event)
bool outliner_is_co_within_mode_column(SpaceOutliner *space_outliner, const float view_mval[2])
void OUTLINER_OT_material_drop(wmOperatorType *ot)
void OUTLINER_OT_scene_drop(wmOperatorType *ot)
static TreeElement * outliner_dropzone_find(const SpaceOutliner *space_outliner, const float fmval[2], const bool children)
static wmOperatorStatus material_drop_invoke(bContext *C, wmOperator *, const wmEvent *event)
static TreeElement * outliner_item_drag_element_find(SpaceOutliner *space_outliner, ARegion *region, const wmEvent *event)
void OUTLINER_OT_parent_drop(wmOperatorType *ot)
ID * outliner_search_back(TreeElement *te, short idcode)
static bool datastack_drop_init(bContext *C, const wmEvent *event, StackDropData *drop_data)
static bool allow_parenting_without_modifier_key(SpaceOutliner *space_outliner)
static void parent_drop_set_parents(bContext *C, ReportList *reports, wmDragID *drag, Object *parent, short parent_type, const bool keep_transform)
bool outliner_treesort_tiebreak(bool a_is_object, const char *a_name, bool b_is_object, const char *b_name)
@ TE_CHILD_NOT_IN_COLLECTION
static wmOperatorStatus parent_drop_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static bool is_object_element(TreeElement *te)
TreeElement * outliner_find_tree_element(ListBaseT< TreeElement > *lb, const TreeStoreElem *store_elem)
static void datastack_drop_copy(bContext *C, StackDropData *drop_data)
static wmOperatorStatus collection_drop_invoke(bContext *C, wmOperator *, const wmEvent *event)
static bool is_collection_element(TreeElement *te)
static TreeElement * outliner_data_from_tree_element_and_parents(CheckTypeFn check_type, TreeElement *te)
static Collection * collection_parent_from_ID(ID *id)
static bool outliner_is_scene_collection_tree_element(const TreeElement *te)
void OUTLINER_OT_parent_clear(wmOperatorType *ot)
static bool outliner_is_collection_dragged_into_itself(TreeElement *drop_target_te, ID *dragged_id)
static TreeElement * outliner_dropzone_element(TreeElement *te, const float fmval[2], const bool children)
static int outliner_get_insert_index(TreeElement *drag_te, TreeElement *drop_te, TreeElementInsertType insert_type, ListBaseT< T > *listbase)
static wmOperatorStatus parent_clear_invoke(bContext *C, wmOperator *, const wmEvent *event)
static bool material_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event)
void OUTLINER_OT_item_drag_drop(wmOperatorType *ot)
void outliner_dropboxes()
static bool parent_clear_poll(bContext *C, wmDrag *drag, const wmEvent *event)
static bool drag_ids_are_all_objects(const wmDrag *drag)
void view2d_region_to_view(const View2D *v2d, float x, float y, float *r_view_x, float *r_view_y) ATTR_NONNULL()
float view2d_region_to_view_y(const View2D *v2d, float y)
void WM_main_add_notifier(uint type, void *reference)
ID * WM_drag_get_local_ID_from_event(const wmEvent *event, short idcode)
@ SO_FILTER_NO_COLLECTION
wmDropBox * WM_dropbox_add(ListBaseT< wmDropBox > *lb, const char *idname, bool(*poll)(bContext *C, wmDrag *drag, const wmEvent *event), void(*copy)(bContext *C, wmDrag *drag, wmDropBox *drop), void(*cancel)(Main *bmain, wmDrag *drag, wmDropBox *drop), WMDropboxTooltipFunc tooltip)
void WM_event_add_notifier_ex(wmWindowManager *wm, const wmWindow *win, uint type, void *reference)
SpaceOutliner * CTX_wm_space_outliner(const bContext *C)
void WM_operator_properties_free(PointerRNA *ptr)
void ED_outliner_select_sync_from_outliner(bContext *C, SpaceOutliner *space_outliner)
CollectionObject * BKE_collection_object_find_in(const Collection &collection, const Object &ob)
PointerRNA WM_operator_properties_create_ptr(wmOperatorType *ot)
wmWindow * CTX_wm_window(const bContext *C)
bool ED_operator_outliner_active(bContext *C)
void BKE_object_material_assign(Main *bmain, Object *ob, Material *ma, short act, int assign_type)
void ED_region_tag_redraw(ARegion *region)
@ TSE_LIBRARY_OVERRIDE_BASE
@ TSE_VIEW_COLLECTION_BASE
@ TSE_SCENE_COLLECTION_BASE
@ TSE_GPENCIL_EFFECT_BASE
Collection * BKE_collection_object_find(Main *bmain, Scene *scene, Collection *collection, Object *ob)
bool BKE_scene_has_object(const Main &bmain, Scene *scene, Object *ob)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
void DEG_id_tag_update(ID *id, unsigned int flags)
void BKE_report(ReportList *reports, eReportType type, const char *message)
BMesh const char void * data
wmWindowManager * CTX_wm_manager(const bContext *C)
bool BKE_collection_move(Main *bmain, Collection *to_parent, Collection *from_parent, Collection *relative, bool relative_after, Collection *collection)
bool BKE_collection_is_empty(const Collection *collection)
@ BKE_MAT_ASSIGN_USERPREF
CollectionChild * BKE_collection_child_find(Collection *parent, Collection *collection)
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
LinkData * BLI_genericNodeN(void *data)
void BKE_collection_object_move(Main *bmain, Scene *scene, Collection *collection_dst, Collection *collection_src, Object *ob)
bool BKE_collection_object_add(Main *bmain, Collection *collection, Object *ob)
wmDrag * WM_drag_data_create(bContext *C, int icon, eWM_DragDataType type, void *poin, uint flags)
void void void void void void void BLI_listbase_reverse(ListBase *lb) ATTR_NONNULL(1)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
void WM_event_drag_start_mval(const wmEvent *event, const ARegion *region, int r_mval[2])
void RNA_float_set(PointerRNA *ptr, const char *name, float value)
wmOperatorType * WM_operatortype_find(const char *idname, bool quiet)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
Main * CTX_data_main(const bContext *C)
wmOperatorStatus WM_operator_name_call_ptr(bContext *C, wmOperatorType *ot, wm::OpCallContext context, PointerRNA *properties, const wmEvent *event)
ID_Type GS(const char *name)
Base * BKE_view_layer_base_find(ViewLayer *view_layer, Object *ob)
bool BKE_object_is_child_recursive(const Object *ob_parent, const Object *ob_child)
void DEG_relations_tag_update(Main *bmain)
Scene * CTX_data_scene(const bContext *C)
void WM_drag_add_local_ID(wmDrag *drag, ID *id, ID *from_parent)
void WM_event_start_prepared_drag(bContext *C, wmDrag *drag)
ID * WM_drag_get_local_ID(const wmDrag *drag, short idcode)
void BKE_object_modifier_set_active(Object *ob, ModifierData *md)
ListBaseT< wmDropBox > * WM_dropboxmap_find(const char *idname, int spaceid, int regionid)
ReportList * CTX_wm_reports(const bContext *C)
bool ED_operator_region_outliner_active(bContext *C)
bool BKE_id_is_editable(const Main *bmain, const ID *id)
ARegion * CTX_wm_region(const bContext *C)
void ED_region_tag_redraw_no_rebuild(ARegion *region)
Collection * CTX_data_collection(const bContext *C)
#define OUTLINER_DRAG_SCOLL_OUTSIDE_PAD
#define TSELEM_OPEN(telm, sv)
struct Collection * collection
struct Collection * collection
ListBaseT< CollectionObject > gobject
ListBaseT< ModifierData > modifiers
ListBaseT< ShaderFxData > shader_fx
ListBaseT< bConstraint > constraints
ListBaseT< ViewLayer > view_layers
struct Collection * master_collection
eSpaceOutliner_Mode outlinevis
eSpaceOutliner_SortMethod sort_method
ed::outliner::SpaceOutliner_Runtime * runtime
eSpaceOutliner_Filter filter
ListBaseT< struct bConstraint > constraints
TreeElementInsertType insert_type
ListBaseT< LinkData > selected_array
ListBaseT< ed::outliner::TreeElement > tree
eDataStackDropAction drop_action
TreeStoreElem * drag_tselem
TreeElementInsertType insert_type
bPoseChannel * pchan_parent
ListBaseT< TreeElement > subtree
ListBaseT< wmDragID > ids
wmEventModifierFlag modifier
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports
bke::WindowRuntime * runtime