|
Blender V5.0
|
Namespaces | |
| namespace | tree_iterator |
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 | { 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 } |
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:
| |
| 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) |
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) |
| static bool | outliner_liboverride_operation_poll (bContext *C) |
| static wmOperatorStatus | outliner_liboverride_operation_exec (bContext *C, wmOperator *op) |
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 } |
| 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) |
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) |
| using blender::ed::outliner::CheckTypeFn = bool (*)(TreeElement *te) |
Definition at line 182 of file outliner_dragdrop.cc.
| using blender::ed::outliner::List = ListBaseWrapper<T> |
Definition at line 27 of file tree_display_libraries.cc.
Definition at line 390 of file outliner_intern.hh.
| using blender::ed::outliner::OutlinerDeleteFn = void (*)(bContext *C, ReportList *reports, Scene *scene, Object *ob) |
Definition at line 2596 of file outliner_tools.cc.
| using blender::ed::outliner::TreeTraversalFunc = TreeTraversalAction (*)(TreeElement *te, void *customdata) |
Definition at line 85 of file outliner_intern.hh.
| 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 2111 of file outliner_edit.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| OL_OP_SELECT | |
| OL_OP_DESELECT | |
| OL_OP_SELECT_HIERARCHY | |
| OL_OP_REMAP | |
| OL_OP_RENAME | |
Definition at line 2469 of file outliner_tools.cc.
| 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 1946 of file outliner_edit.cc.
| anonymous enum |
Definition at line 159 of file outliner_intern.hh.
| Enumerator | |
|---|---|
| DATA_STACK_DROP_REORDER | |
| DATA_STACK_DROP_COPY | |
| DATA_STACK_DROP_LINK | |
Definition at line 691 of file outliner_dragdrop.cc.
| Enumerator | |
|---|---|
| OL_DRAWSEL_NONE | |
| OL_DRAWSEL_NORMAL | |
| OL_DRAWSEL_ACTIVE | |
Definition at line 179 of file outliner_intern.hh.
| Enumerator | |
|---|---|
| OL_SETSEL_NONE | |
| OL_SETSEL_NORMAL | |
| OL_SETSEL_EXTEND | |
Definition at line 185 of file outliner_intern.hh.
| 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 3266 of file outliner_tools.cc.
| Enumerator | |
|---|---|
| OL_CONSTRAINTOP_ENABLE | |
| OL_CONSTRAINTOP_DISABLE | |
| OL_CONSTRAINTOP_DELETE | |
Definition at line 2080 of file outliner_tools.cc.
| Enumerator | |
|---|---|
| OL_DOP_SELECT | |
| OL_DOP_DESELECT | |
| OL_DOP_HIDE | |
| OL_DOP_UNHIDE | |
| OL_DOP_SELECT_LINKED | |
Definition at line 2072 of file outliner_tools.cc.
| Enumerator | |
|---|---|
| OL_MODIFIER_OP_TOGVIS | |
| OL_MODIFIER_OP_TOGREN | |
| OL_MODIFIER_OP_DELETE | |
| OL_MODIFIER_OP_APPLY | |
Definition at line 2086 of file outliner_tools.cc.
| Enumerator | |
|---|---|
| OL_SCENE_OP_DELETE | |
Definition at line 686 of file outliner_tools.cc.
Definition at line 2761 of file outliner_tools.cc.
| Enumerator | |
|---|---|
| OUTLINER_LIB_SELECTIONSET_SELECTED | |
| OUTLINER_LIB_LIB_SELECTIONSET_CONTENT | |
| OUTLINER_LIB_LIB_SELECTIONSET_SELECTED_AND_CONTENT | |
Definition at line 563 of file outliner_tools.cc.
| Enumerator | |
|---|---|
| OL_LIB_INVALID | |
| OL_LIB_DELETE | |
| OL_LIB_RELOCATE | |
| OL_LIB_RELOAD | |
Definition at line 3061 of file outliner_tools.cc.
Definition at line 1782 of file outliner_tools.cc.
| Enumerator | |
|---|---|
| FOREACH_CONTINUE | |
| FOREACH_BREAK | |
Definition at line 188 of file tree_display_override_library_hierarchies.cc.
|
strong |
| Enumerator | |
|---|---|
| Noop | |
| Add | |
| None | |
Definition at line 223 of file tree_display.hh.
| Enumerator | |
|---|---|
| TE_INSERT_BEFORE | |
| TE_INSERT_AFTER | |
| TE_INSERT_INTO | |
Definition at line 70 of file outliner_intern.hh.
| Enumerator | |
|---|---|
| OL_ITEM_DESELECT | |
| OL_ITEM_SELECT | |
| OL_ITEM_SELECT_DATA | |
| OL_ITEM_ACTIVATE | |
| OL_ITEM_EXTEND | |
| OL_ITEM_RECURSIVE | |
Definition at line 257 of file outliner_intern.hh.
| 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 76 of file outliner_intern.hh.
|
static |
Definition at line 3166 of file outliner_tools.cc.
References BKE_animdata_set_action(), TreeStoreElem::id, TSE_ANIM_DATA, and TreeStoreElem::type.
Referenced by outliner_action_set_exec().
|
static |
Definition at line 308 of file outliner_dragdrop.cc.
References SpaceOutliner::filter, SpaceOutliner::outlinevis, SO_FILTER_NO_COLLECTION, SO_SCENES, and SO_VIEW_LAYER.
Referenced by parent_clear_poll(), and parent_drop_poll().
|
static |
Definition at line 2112 of file outliner_tools.cc.
References BONE_HIDDEN_P, BONE_SELECTED, blender::ed::outliner::TreeElement::directdata, Bone::flag, OL_DOP_DESELECT, OL_DOP_HIDE, OL_DOP_SELECT, and OL_DOP_UNHIDE.
Referenced by outliner_data_operation_exec().
|
static |
Definition at line 1610 of file outliner_select.cc.
References BKE_collection_has_object_recursive(), can_select_recursive(), TreeStoreElem::id, ID_OB, blender::ed::outliner::TreeElement::idcode, blender::ed::outliner::TreeElement::store_elem, TSE_LAYER_COLLECTION, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by can_select_recursive(), do_outliner_range_select_recursive(), and do_outliner_select_recursive().
|
static |
Definition at line 111 of file outliner_tree.cc.
References BLI_mempool_alloc(), BLI_MEMPOOL_ALLOW_ITER, BLI_mempool_create(), TreeStoreElem::flag, TreeStoreElem::id, TreeStoreElem::nr, SpaceOutliner::runtime, blender::ed::outliner::TreeElement::store_elem, blender::ed::outliner::SpaceOutliner_Runtime::tree_hash, SpaceOutliner::treestore, TSE_CLOSED, TreeStoreElem::type, and TreeStoreElem::used.
Referenced by blender::ed::outliner::AbstractTreeDisplay::add_element().
|
static |
Definition at line 1727 of file outliner_tools.cc.
References BKE_animdata_free(), DEG_id_tag_update(), TreeStoreElem::id, and ID_RECALC_ANIMATION.
Referenced by outliner_animdata_operation_exec().
|
static |
Definition at line 1746 of file outliner_tools.cc.
References IdAdtTemplate::adt, BKE_fcurves_free(), DEG_id_tag_update(), AnimData::drivers, TreeStoreElem::id, and ID_RECALC_ANIMATION.
Referenced by outliner_animdata_operation_exec().
|
static |
Definition at line 333 of file outliner_collections.cc.
References COLLECTION_IS_MASTER, data, Collection::flag, ID_IS_OVERRIDE_LIBRARY_HIERARCHY_ROOT, ID_IS_OVERRIDE_LIBRARY_REAL, outliner_collection_from_tree_element(), TRAVERSE_CONTINUE, and TRAVERSE_SKIP_CHILDS.
Referenced by collection_flag_exec(), collection_instance_exec(), collection_link_exec(), and outliner_collection_delete().
|
static |
Definition at line 1323 of file outliner_collections.cc.
References C, collection_flag_poll(), and COLLECTION_HIDE_VIEWPORT.
Referenced by OUTLINER_OT_collection_disable().
|
static |
Definition at line 1333 of file outliner_collections.cc.
References C, collection_flag_poll(), and COLLECTION_HIDE_RENDER.
Referenced by OUTLINER_OT_collection_disable_render().
|
static |
Definition at line 1125 of file outliner_dragdrop.cc.
References C, collection_parent_from_ID(), data, ELEM, ListBase::first, wmDragID::from_parent, GS, Collection::id, wmDragID::id, ID_GR, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, ID_OB, wmDrag::ids, ID::name, outliner_collection_from_tree_element(), outliner_drop_insert_collection_find(), TE_INSERT_AFTER, TE_INSERT_BEFORE, TE_INSERT_INTO, wmDrag::type, WM_DRAG_ID, and xy.
Referenced by collection_drop_invoke(), collection_drop_poll(), and collection_drop_tooltip().
|
static |
Definition at line 1288 of file outliner_dragdrop.cc.
References BKE_collection_is_empty(), BKE_collection_move(), BKE_collection_object_add(), BKE_collection_object_move(), C, collection_drop_init(), collection_parent_from_ID(), CTX_data_main(), CTX_data_scene(), CTX_wm_space_outliner(), wmEvent::custom, data, DEG_id_tag_update(), DEG_relations_tag_update(), ELEM, EVT_DATA_DRAGDROP, ListBase::first, GS, Collection::id, Object::id, ID_GR, ID_OB, ID_RECALC_GEOMETRY, ID_RECALC_HIERARCHY, ID_RECALC_SYNC_TO_EVAL, wmDrag::ids, KM_CTRL, LISTBASE_FOREACH, NC_SCENE, ND_LAYER, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_collection_from_tree_element(), outliner_find_parent_element(), TE_INSERT_AFTER, TE_INSERT_BEFORE, SpaceOutliner::tree, TREESTORE, TSE_CLOSED, WM_event_add_notifier(), and wmEvent::xy.
Referenced by OUTLINER_OT_collection_drop().
|
static |
Definition at line 1190 of file outliner_dragdrop.cc.
References C, collection_drop_init(), CTX_wm_region(), CTX_wm_space_outliner(), data, ED_region_tag_redraw_no_rebuild(), TreeStoreElem::flag, KM_SHIFT, wmEvent::modifier, outliner_flag_set(), TE_INSERT_AFTER, TE_INSERT_BEFORE, TE_INSERT_INTO, TREESTORE, TSE_DRAG_AFTER, TSE_DRAG_ANY, TSE_DRAG_BEFORE, TSE_DRAG_INTO, TSE_HIGHLIGHTED_ANY, and wmEvent::xy.
Referenced by outliner_dropboxes().
|
static |
Definition at line 1226 of file outliner_dragdrop.cc.
References C, collection_drop_init(), CTX_wm_window(), data, wmWindow::eventstate, ListBase::first, GS, wmDragID::id, ID_OB, wmDrag::ids, KM_CTRL, KM_SHIFT, LISTBASE_FOREACH, ID::name, blender::ed::outliner::TreeElement::next, outliner_is_collection_tree_element(), blender::ed::outliner::TreeElement::prev, TE_INSERT_AFTER, TE_INSERT_BEFORE, TE_INSERT_INTO, TIP_, and xy.
Referenced by outliner_dropboxes().
|
static |
Definition at line 629 of file outliner_collections.cc.
References BKE_collection_child_find(), BKE_collection_duplicate(), BKE_id_owner_get(), BKE_report(), BKE_reportf(), BLI_assert, BLI_freelistN(), BLI_listbase_is_empty(), C, COLLECTION_IS_MASTER, CTX_data_main(), CTX_data_scene(), CTX_wm_space_outliner(), DEG_relations_tag_update(), ED_outliner_select_sync_from_object_tag(), Collection::flag, ID::flag, GS, Collection::id, Scene::id, ID_FLAG_EMBEDDED_DATA, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, ID_SCE, wmOperator::idname, LIB_ID_DUPLICATE_IS_ROOT_ID, LISTBASE_FOREACH, Scene::master_collection, ID::name, NC_SCENE, ND_LAYER, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_collect_selected_parent_collections(), outliner_collection_from_tree_element(), outliner_tree_traverse(), blender::ed::outliner::TreeElement::parent, wmOperator::reports, RPT_ERROR, RPT_WARNING, blender::ed::outliner::IDsSelectedData::selected_array, SpaceOutliner::tree, TSE_SELECTED, U, USER_DUP_OBJECT, and WM_main_add_notifier().
Referenced by OUTLINER_OT_collection_duplicate(), and OUTLINER_OT_collection_duplicate_linked().
|
static |
Definition at line 191 of file outliner_collections.cc.
References C, CTX_data_scene(), ED_outliner_collections_editor_poll(), ID_IS_EDITABLE, and ID_IS_OVERRIDE_LIBRARY.
Referenced by collection_new_poll(), OUTLINER_OT_collection_hierarchy_delete(), OUTLINER_OT_collection_instance(), and OUTLINER_OT_collection_link().
|
static |
Definition at line 1318 of file outliner_collections.cc.
References C, collection_flag_poll(), and COLLECTION_HIDE_VIEWPORT.
Referenced by OUTLINER_OT_collection_enable().
|
static |
Definition at line 1328 of file outliner_collections.cc.
References C, collection_flag_poll(), and COLLECTION_HIDE_RENDER.
Referenced by OUTLINER_OT_collection_enable_render().
|
static |
Definition at line 225 of file outliner_collections.cc.
References data, outliner_collection_from_tree_element(), TRAVERSE_BREAK, TRAVERSE_CONTINUE, and TRAVERSE_SKIP_CHILDS.
Referenced by collection_new_exec().
|
static |
Definition at line 1338 of file outliner_collections.cc.
References BKE_id_is_editable(), BKE_view_layer_need_resync_tag(), C, clear(), LayerCollection::collection, collection_collect_data_to_edit(), COLLECTION_HIDE_RENDER, COLLECTION_HIDE_VIEWPORT, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_outliner(), data, DEG_id_tag_update(), DEG_relations_tag_update(), Collection::flag, flag, LayerCollection::flag, Collection::id, Scene::id, ID_RECALC_BASE_FLAGS, wmOperator::idname, layer_collection_collect_data_to_edit(), LAYER_COLLECTION_HIDE, NC_SCENE, ND_LAYER_CONTENT, OPERATOR_FINISHED, outliner_tree_traverse(), SpaceOutliner::outlinevis, SO_VIEW_LAYER, SpaceOutliner::tree, TSE_SELECTED, and WM_main_add_notifier().
Referenced by OUTLINER_OT_collection_disable(), OUTLINER_OT_collection_disable_render(), OUTLINER_OT_collection_enable(), and OUTLINER_OT_collection_enable_render().
|
static |
Definition at line 1292 of file outliner_collections.cc.
References C, clear(), ED_outliner_collections_editor_poll(), Collection::flag, flag, outliner_active_collection(), and outliner_collection_from_tree_element().
Referenced by collection_disable_poll(), collection_disable_render_poll(), collection_enable_poll(), and collection_enable_render_poll().
|
static |
Definition at line 1182 of file outliner_collections.cc.
References C, collections_view_layer_poll(), and LAYER_COLLECTION_HIDE.
Referenced by OUTLINER_OT_collection_hide().
|
static |
Definition at line 435 of file outliner_collections.cc.
References active, BKE_view_layer_active_base_get(), BKE_view_layer_synced_ensure(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_message_bus(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_outliner_select_sync_from_object_tag(), Scene::id, ID_RECALC_SYNC_TO_EVAL, NC_SCENE, ND_LAYER, OPERATOR_FINISHED, outliner_collection_delete(), wmOperator::reports, WM_main_add_notifier(), and WM_msg_publish_rna_prop.
Referenced by OUTLINER_OT_collection_hierarchy_delete().
|
static |
Definition at line 1187 of file outliner_collections.cc.
References C, ED_outliner_collections_editor_poll(), and outliner_active_layer_collection().
Referenced by OUTLINER_OT_collection_hide_inside(), and OUTLINER_OT_collection_show_inside().
|
static |
Definition at line 812 of file outliner_collections.cc.
References blender::ed::object::add_type(), BKE_collection_cycle_find(), BKE_layer_collection_activate_parent(), BKE_layer_collection_get_active(), C, LayerCollection::collection, collection_collect_data_to_edit(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_outliner(), Scene::cursor, data, DEG_relations_tag_update(), Collection::id, id_us_plus(), Object::instance_collection, View3DCursor::location, ID::name, NC_SCENE, ND_LAYER, OB_DUPLICOLLECTION, OB_EMPTY, OPERATOR_FINISHED, outliner_tree_traverse(), Object::transflag, SpaceOutliner::tree, TSE_SELECTED, and WM_main_add_notifier().
Referenced by OUTLINER_OT_collection_instance().
|
static |
Definition at line 1101 of file outliner_collections.cc.
References BKE_layer_collection_isolate_global(), BKE_view_layer_need_resync_tag(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_outliner(), data, DEG_id_tag_update(), Scene::id, ID_RECALC_BASE_FLAGS, layer_collection_collect_data_to_edit(), NC_SCENE, ND_LAYER_CONTENT, OPERATOR_FINISHED, outliner_collection_isolate_flag(), outliner_tree_traverse(), ptr, wmOperator::ptr, RNA_boolean_get(), RNA_pointer_create_discrete(), RNA_property_boolean_get(), RNA_struct_type_find_property(), SpaceOutliner::tree, TSE_SELECTED, and WM_main_add_notifier().
Referenced by collection_isolate_invoke(), and OUTLINER_OT_collection_isolate().
|
static |
Definition at line 1145 of file outliner_collections.cc.
References C, collection_isolate_exec(), KM_SHIFT, wmEvent::modifier, wmOperator::ptr, RNA_property_boolean_set(), RNA_property_is_set(), and RNA_struct_find_property().
Referenced by OUTLINER_OT_collection_isolate().
|
static |
Definition at line 747 of file outliner_collections.cc.
References BKE_collection_child_add(), BKE_report(), C, LayerCollection::collection, collection_collect_data_to_edit(), COLLECTION_IS_MASTER, CTX_data_layer_collection(), CTX_data_main(), CTX_data_scene(), CTX_wm_space_outliner(), data, DEG_id_tag_update(), DEG_relations_tag_update(), Collection::flag, Collection::id, id_fake_user_clear(), ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, ID_RECALC_SYNC_TO_EVAL, NC_SCENE, ND_LAYER, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_tree_traverse(), wmOperator::reports, RPT_ERROR, SpaceOutliner::tree, TSE_SELECTED, and WM_main_add_notifier().
Referenced by OUTLINER_OT_collection_link().
|
static |
Definition at line 243 of file outliner_collections.cc.
References BKE_collection_add(), BKE_report(), C, collection_find_selected_to_add(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_region(), CTX_wm_space_outliner(), CTX_wm_workspace(), data, DEG_id_tag_update(), DEG_relations_tag_update(), ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, ID_RECALC_SYNC_TO_EVAL, Scene::master_collection, NC_SCENE, ND_LAYER, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_build_tree(), outliner_cleanup_tree(), outliner_tree_traverse(), wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, SpaceOutliner::tree, TSE_SELECTED, and WM_main_add_notifier().
Referenced by OUTLINER_OT_collection_new().
|
static |
Definition at line 203 of file outliner_collections.cc.
References C, collection_edit_in_active_scene_poll(), and ED_operator_region_outliner_active().
Referenced by OUTLINER_OT_collection_new().
|
static |
Definition at line 521 of file outliner_collections.cc.
References BKE_layer_collection_objects_select(), BLI_freelistN(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_outliner(), DEG_id_tag_update(), blender::ed::outliner::TreeElement::directdata, ED_outliner_select_sync_from_object_tag(), ListBase::first, Scene::id, ID_RECALC_SELECT, wmOperator::idname, LISTBASE_FOREACH, NC_SCENE, ND_OB_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_collect_selected_collections(), outliner_tree_traverse(), blender::ed::outliner::IDsSelectedData::selected_array, blender::ed::outliner::TreeElement::store_elem, STREQ, SpaceOutliner::tree, TSE_LAYER_COLLECTION, TSE_SELECTED, TreeStoreElem::type, and WM_main_add_notifier().
Referenced by OUTLINER_OT_collection_objects_deselect(), and OUTLINER_OT_collection_objects_select().
|
static |
Definition at line 1107 of file outliner_dragdrop.cc.
References GS, ID_GR, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, ID_SCE, and ID::name.
Referenced by collection_drop_init(), and collection_drop_invoke().
|
static |
Definition at line 1177 of file outliner_collections.cc.
References C, collections_view_layer_poll(), and LAYER_COLLECTION_HIDE.
Referenced by OUTLINER_OT_collection_show().
|
static |
Definition at line 968 of file outliner_collections.cc.
References BKE_layer_collection_set_flag(), BKE_view_layer_need_resync_tag(), C, clear(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_outliner(), data, DEG_relations_tag_update(), flag, wmOperator::idname, layer_collection_collect_data_to_edit(), LAYER_COLLECTION_EXCLUDE, LAYER_COLLECTION_HOLDOUT, LAYER_COLLECTION_INDIRECT_ONLY, NC_SCENE, ND_LAYER, OPERATOR_FINISHED, outliner_tree_traverse(), SpaceOutliner::tree, TSE_SELECTED, and WM_main_add_notifier().
Referenced by OUTLINER_OT_collection_exclude_clear(), OUTLINER_OT_collection_exclude_set(), OUTLINER_OT_collection_holdout_clear(), OUTLINER_OT_collection_holdout_set(), OUTLINER_OT_collection_indirect_only_clear(), and OUTLINER_OT_collection_indirect_only_set().
|
static |
Definition at line 1195 of file outliner_collections.cc.
References BKE_layer_collection_set_visible(), BKE_view_layer_need_resync_tag(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_outliner(), data, DEG_id_tag_update(), Scene::id, ID_RECALC_BASE_FLAGS, wmOperator::idname, is_inside(), layer_collection_collect_data_to_edit(), NC_SCENE, ND_LAYER_CONTENT, OPERATOR_FINISHED, outliner_tree_traverse(), SpaceOutliner::tree, TSE_SELECTED, and WM_main_add_notifier().
Referenced by OUTLINER_OT_collection_hide(), OUTLINER_OT_collection_hide_inside(), OUTLINER_OT_collection_show(), and OUTLINER_OT_collection_show_inside().
|
static |
Definition at line 943 of file outliner_collections.cc.
References C, collections_view_layer_poll(), and LAYER_COLLECTION_EXCLUDE.
Referenced by OUTLINER_OT_collection_exclude_clear().
|
static |
Definition at line 938 of file outliner_collections.cc.
References C, collections_view_layer_poll(), and LAYER_COLLECTION_EXCLUDE.
Referenced by OUTLINER_OT_collection_exclude_set().
|
static |
Definition at line 953 of file outliner_collections.cc.
References C, collections_view_layer_poll(), and LAYER_COLLECTION_HOLDOUT.
Referenced by OUTLINER_OT_collection_holdout_clear().
|
static |
Definition at line 948 of file outliner_collections.cc.
References C, collections_view_layer_poll(), and LAYER_COLLECTION_HOLDOUT.
Referenced by OUTLINER_OT_collection_holdout_set().
|
static |
Definition at line 963 of file outliner_collections.cc.
References C, collections_view_layer_poll(), and LAYER_COLLECTION_INDIRECT_ONLY.
Referenced by OUTLINER_OT_collection_indirect_only_clear().
|
static |
Definition at line 958 of file outliner_collections.cc.
References C, collections_view_layer_poll(), and LAYER_COLLECTION_INDIRECT_ONLY.
Referenced by OUTLINER_OT_collection_indirect_only_set().
|
static |
Definition at line 903 of file outliner_collections.cc.
References C, clear(), CTX_data_scene(), CTX_wm_space_outliner(), data, flag, LayerCollection::flag, layer_collection_collect_data_to_edit(), outliner_tree_traverse(), SpaceOutliner::outlinevis, result, SO_VIEW_LAYER, SpaceOutliner::tree, and TSE_SELECTED.
Referenced by collection_hide_poll(), collection_show_poll(), collections_exclude_clear_poll(), collections_exclude_set_poll(), collections_holdout_clear_poll(), collections_holdout_set_poll(), collections_indirect_only_clear_poll(), and collections_indirect_only_set_poll().
|
static |
Definition at line 2241 of file outliner_tools.cc.
References BKE_constraint_remove_ex(), BKE_constraints_active_set(), C, CONSTRAINT_OFF, blender::ed::object::constraint_update(), Object::constraints, CTX_data_main(), blender::ed::outliner::TreeElement::directdata, bConstraint::flag, TreeStoreElem::flag, ID_OB, NA_REMOVED, NC_OBJECT, ND_CONSTRAINT, OL_CONSTRAINTOP_DELETE, OL_CONSTRAINTOP_DISABLE, OL_CONSTRAINTOP_ENABLE, outliner_search_back(), blender::ed::outliner::TreeElement::parent, blender::ed::outliner::TreeElement::store_elem, TREESTORE, TSE_POSE_CHANNEL, TSE_SELECTED, and WM_event_add_notifier().
Referenced by outliner_constraint_operation_exec().
|
static |
Definition at line 2220 of file outliner_tools.cc.
References C, blender::ed::outliner::TreeElementRNACommon::get_pointer_rna(), OL_DOP_SELECT_LINKED, ptr, RNA_struct_is_ID(), blender::ed::object::select_linked_by_id(), and tree_element_cast().
Referenced by outliner_data_operation_exec().
|
static |
Definition at line 825 of file outliner_dragdrop.cc.
References blender::ed::outliner::StackDropData::drag_tselem, blender::ed::outliner::StackDropData::drop_te, TreeStoreElem::id, OB_GREASE_PENCIL, blender::ed::outliner::StackDropData::ob_parent, blender::ed::outliner::StackDropData::pchan_parent, TREESTORE, TSE_CONSTRAINT, TSE_CONSTRAINT_BASE, TSE_GPENCIL_EFFECT, TSE_GPENCIL_EFFECT_BASE, TSE_MODIFIER, TSE_MODIFIER_BASE, TSE_POSE_CHANNEL, Object::type, and TreeStoreElem::type.
Referenced by datastack_drop_poll().
|
static |
Definition at line 967 of file outliner_dragdrop.cc.
References C, blender::ed::object::constraint_copy_for_object(), blender::ed::object::constraint_copy_for_pose(), CTX_data_main(), CTX_data_scene(), CTX_wm_reports(), blender::ed::outliner::TreeElement::directdata, blender::ed::outliner::StackDropData::drag_directdata, blender::ed::outliner::StackDropData::drag_tselem, blender::ed::outliner::StackDropData::drop_te, TreeStoreElem::id, blender::ed::object::modifier_copy_to_object(), OB_GREASE_PENCIL, blender::ed::outliner::StackDropData::ob_parent, blender::ed::object::shaderfx_copy(), TREESTORE, TSE_CONSTRAINT, TSE_GPENCIL_EFFECT, TSE_MODIFIER, TSE_POSE_CHANNEL, Object::type, and TreeStoreElem::type.
Referenced by datastack_drop_invoke().
|
static |
Definition at line 709 of file outliner_dragdrop.cc.
References blender::ed::outliner::StackDropData::drag_directdata, blender::ed::outliner::StackDropData::drag_index, blender::ed::outliner::StackDropData::drag_tselem, wmDrag::flags, blender::ed::outliner::TreeElement::index, MEM_callocN(), blender::ed::outliner::StackDropData::ob_parent, blender::ed::outliner::StackDropData::pchan_parent, wmDrag::poin, and WM_DRAG_FREE_DATA.
Referenced by outliner_item_drag_drop_invoke().
|
static |
Definition at line 728 of file outliner_dragdrop.cc.
References BKE_id_is_editable(), C, CTX_data_main(), DATA_STACK_DROP_COPY, DATA_STACK_DROP_LINK, DATA_STACK_DROP_REORDER, blender::ed::outliner::TreeElement::directdata, blender::ed::outliner::StackDropData::drag_tselem, blender::ed::outliner::StackDropData::drop_action, blender::ed::outliner::StackDropData::drop_te, ELEM, Object::id, blender::ed::outliner::StackDropData::insert_type, is_object_element(), is_pchan_element(), blender::ed::outliner::StackDropData::ob_parent, outliner_data_from_tree_element_and_parents(), outliner_drop_insert_find(), blender::ed::outliner::StackDropData::pchan_parent, TE_INSERT_INTO, TREESTORE, TSE_CONSTRAINT, TSE_CONSTRAINT_BASE, TSE_GPENCIL_EFFECT, TSE_GPENCIL_EFFECT_BASE, TSE_MODIFIER, TSE_MODIFIER_BASE, TreeStoreElem::type, and wmEvent::xy.
Referenced by datastack_drop_poll().
|
static |
Definition at line 1052 of file outliner_dragdrop.cc.
References C, wmEvent::custom, DATA_STACK_DROP_COPY, DATA_STACK_DROP_LINK, DATA_STACK_DROP_REORDER, datastack_drop_copy(), datastack_drop_link(), datastack_drop_reorder(), blender::ed::outliner::StackDropData::drop_action, EVT_DATA_DRAGDROP, ListBase::first, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmDrag::poin, and wmOperator::reports.
Referenced by OUTLINER_OT_datastack_drop().
|
static |
Definition at line 925 of file outliner_dragdrop.cc.
References C, blender::ed::object::constraint_link(), bPoseChannel::constraints, Object::constraints, CTX_data_main(), blender::ed::outliner::TreeElement::directdata, blender::ed::outliner::StackDropData::drag_tselem, blender::ed::outliner::StackDropData::drop_te, TreeStoreElem::id, blender::ed::object::modifier_link(), OB_GREASE_PENCIL, blender::ed::outliner::StackDropData::ob_parent, blender::ed::outliner::StackDropData::pchan_parent, blender::ed::object::shaderfx_link(), TREESTORE, TSE_CONSTRAINT_BASE, TSE_GPENCIL_EFFECT_BASE, TSE_MODIFIER_BASE, TSE_POSE_CHANNEL, Object::type, and TreeStoreElem::type.
Referenced by datastack_drop_invoke().
|
static |
Definition at line 858 of file outliner_dragdrop.cc.
References C, CTX_wm_region(), CTX_wm_space_outliner(), datastack_drop_are_types_valid(), datastack_drop_init(), blender::ed::outliner::StackDropData::drop_te, ED_region_tag_redraw_no_rebuild(), TreeStoreElem::flag, blender::ed::outliner::StackDropData::insert_type, outliner_flag_set(), wmDrag::poin, TE_INSERT_AFTER, TE_INSERT_BEFORE, TE_INSERT_INTO, TREESTORE, TSE_DRAG_AFTER, TSE_DRAG_ANY, TSE_DRAG_BEFORE, TSE_DRAG_INTO, TSE_HIGHLIGHTED_ANY, wmDrag::type, and WM_DRAG_DATASTACK.
Referenced by outliner_dropboxes().
|
static |
Definition at line 1008 of file outliner_dragdrop.cc.
References C, blender::ed::object::constraint_move_to_index(), bPoseChannel::constraints, Object::constraints, CTX_wm_space_outliner(), blender::ed::outliner::StackDropData::drag_directdata, blender::ed::outliner::StackDropData::drag_tselem, blender::ed::outliner::StackDropData::drop_te, blender::ed::outliner::StackDropData::insert_type, blender::ed::object::modifier_move_to_index(), Object::modifiers, blender::ed::outliner::StackDropData::ob_parent, outliner_find_tree_element(), outliner_get_insert_index(), blender::ed::outliner::StackDropData::pchan_parent, RPT_WARNING, Object::shader_fx, blender::ed::object::shaderfx_move_to_index(), SpaceOutliner::tree, TSE_CONSTRAINT, TSE_GPENCIL_EFFECT, TSE_MODIFIER, and TreeStoreElem::type.
Referenced by datastack_drop_invoke().
|
static |
Definition at line 901 of file outliner_dragdrop.cc.
References DATA_STACK_DROP_COPY, DATA_STACK_DROP_LINK, DATA_STACK_DROP_REORDER, blender::ed::outliner::StackDropData::drop_action, blender::ed::outliner::StackDropData::pchan_parent, wmDrag::poin, and TIP_.
Referenced by outliner_dropboxes().
|
static |
Definition at line 319 of file outliner_edit.cc.
References BKE_report(), COLLECTION_IS_MASTER, ED_region_tag_redraw(), ELEM, Collection::flag, TreeStoreElem::flag, TreeStoreElem::id, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, ID_LI, blender::ed::outliner::TreeElement::idcode, outliner_collection_from_tree_element(), outliner_is_collection_tree_element(), RPT_INFO, TSE_ANIM_DATA, TSE_BONE_COLLECTION_BASE, TSE_CONSTRAINT_BASE, TSE_DEFGROUP_BASE, TSE_DRIVER_BASE, TSE_GENERIC_LABEL, TSE_GPENCIL_EFFECT_BASE, TSE_ID_BASE, TSE_IS_REAL_ID, TSE_LIBRARY_OVERRIDE_BASE, TSE_MODIFIER_BASE, TSE_NLA, TSE_POSE_BASE, TSE_R_LAYER_BASE, TSE_RNA_ARRAY_ELEM, TSE_RNA_PROPERTY, TSE_RNA_STRUCT, TSE_SCENE_COLLECTION_BASE, TSE_SCENE_OBJECTS_BASE, TSE_STRIP, TSE_STRIP_DATA, TSE_STRIP_DUP, TSE_TEXTBUT, TSE_VIEW_COLLECTION_BASE, and TreeStoreElem::type.
Referenced by item_rename_fn(), and outliner_item_rename_invoke().
|
static |
Definition at line 259 of file outliner_select.cc.
References blender::animrig::bone_is_selectable(), BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, Bone::childbase, do_outliner_bone_select_recursive(), LISTBASE_FOREACH, and select.
Referenced by do_outliner_bone_select_recursive(), tree_element_bone_activate(), and tree_element_posechannel_activate().
|
static |
Definition at line 1952 of file outliner_edit.cc.
References blender::ed::outliner::tree_iterator::all_open(), ANIM_add_driver(), ANIM_remove_driver(), CREATEDRIVER_WITH_DEFAULT_DVAR, DRIVER_TYPE_PYTHON, DRIVERS_EDITMODE_ADD, DRIVERS_EDITMODE_REMOVE, flag, TreeStoreElem::flag, blender::ed::outliner::TreeElementRNACommon::get_pointer_rna(), blender::ed::outliner::TreeElementRNACommon::get_property_rna(), KSP_FLAG_WHOLE_ARRAY, KSP_GROUP_KSNAME, MEM_freeN(), PointerRNA_NULL, ptr, RNA_property_anim_editable(), RNA_property_array_length(), tree_element_cast(), tree_element_to_path(), TREESTORE, and TSE_SELECTED.
Referenced by outliner_drivers_addsel_exec(), and outliner_drivers_deletesel_exec().
|
static |
Definition at line 272 of file outliner_select.cc.
References BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, EBONE_SELECTABLE, ED_armature_ebone_is_child_recursive(), EditBone::flag, EditBone::next, and select.
Referenced by tree_element_ebone_activate().
|
static |
Action when clicking to activate an item (typically under the mouse cursor), but don't do any cursor intersection checks.
Needed to run from operators accessed from a menu.
Definition at line 1446 of file outliner_select.cc.
References blender::ed::outliner::tree_iterator::all(), C, ELEM, SpaceOutliner::flag, OL_SETSEL_EXTEND, OL_SETSEL_NORMAL, blender::ed::outliner::TreeViewContext::scene, SO_SYNC_SELECT, blender::ed::outliner::TreeElement::subtree, tree_element_object_activate(), TSE_EBONE, TSE_LAYER_COLLECTION, TSE_LINKED_NODE_TREE, TSE_SOME_ID, TSE_STRIP, TSE_STRIP_DATA, TSE_STRIP_DUP, TreeStoreElem::type, and blender::ed::outliner::TreeViewContext::view_layer.
Referenced by outliner_item_select().
|
static |
Definition at line 85 of file outliner_select.cc.
References blender::ed::object::BA_DESELECT, blender::ed::object::BA_SELECT, blender::ed::object::base_select(), BKE_object_is_in_editmode(), C, CTX_data_main(), DEG_id_tag_update(), ED_outliner_select_sync_from_object_tag(), ED_undo_push(), blender::ed::object::editmode_enter_ex(), blender::ed::object::editmode_exit_ex(), blender::ed::object::EM_FREEDATA, blender::ed::object::EM_NO_CONTEXT, Scene::id, ID_RECALC_SELECT, NC_SCENE, ND_MODE, NS_MODE_OBJECT, Base::object, and WM_event_add_notifier().
Referenced by outliner_item_mode_toggle().
|
static |
Swap the current active object from the interaction mode with the given base.
If we didn't want to touch selection we could add an option to the operators not to do multi-object editing.
Definition at line 162 of file outliner_select.cc.
References BKE_view_layer_base_deselect_all(), BKE_view_layer_base_find(), BKE_view_layer_base_select_and_set_active(), BKE_view_layer_synced_ensure(), C, DEG_id_tag_update(), ED_outliner_select_sync_from_object_tag(), ED_undo_group_begin(), ED_undo_group_end(), ED_undo_push(), Scene::id, ID_RECALC_SELECT, Object::mode, blender::ed::object::mode_set(), OB_MODE_OBJECT, blender::ed::outliner::TreeViewContext::obact, blender::ed::outliner::TreeViewContext::scene, and blender::ed::outliner::TreeViewContext::view_layer.
Referenced by outliner_item_mode_toggle().
|
static |
Definition at line 118 of file outliner_select.cc.
References blender::ed::object::BA_DESELECT, blender::ed::object::BA_SELECT, blender::ed::object::base_select(), BKE_id_is_editable(), BKE_report(), C, CTX_data_main(), CTX_wm_reports(), DEG_id_tag_update(), ED_object_posemode_enter_ex(), ED_object_posemode_exit_ex(), ED_outliner_select_sync_from_object_tag(), ED_undo_push(), Object::id, Scene::id, ID_RECALC_SELECT, Object::mode, NC_SCENE, ND_MODE, NS_MODE_OBJECT, NS_MODE_POSE, OB_MODE_POSE, Base::object, RPT_WARNING, and WM_event_add_notifier().
Referenced by outliner_item_mode_toggle().
|
static |
Definition at line 2143 of file outliner_edit.cc.
References KeyingSet::active_path, blender::ed::outliner::tree_iterator::all_open(), BKE_keyingset_add_path(), BKE_keyingset_find_path(), BKE_keyingset_free_path(), BLI_listbase_count(), flag, TreeStoreElem::flag, blender::ed::outliner::TreeElementRNACommon::get_pointer_rna(), blender::ed::outliner::TreeElementRNACommon::get_property_rna(), KEYINGSET_EDITMODE_ADD, KEYINGSET_EDITMODE_REMOVE, KSP_GROUP_KSNAME, MEM_freeN(), KeyingSet::paths, ptr, RNA_property_anim_editable(), tree_element_cast(), tree_element_to_path(), TREESTORE, and TSE_SELECTED.
Referenced by outliner_keyingset_additems_exec(), and outliner_keyingset_removeitems_exec().
|
static |
Select object tree
Definition at line 243 of file outliner_select.cc.
References blender::ed::object::BA_DESELECT, blender::ed::object::BA_SELECT, BASE_ENABLED_AND_MAYBE_VISIBLE_IN_VIEWPORT, blender::ed::object::base_select(), BKE_object_is_child_recursive(), BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), LISTBASE_FOREACH, and select.
Referenced by tree_element_object_activate().
|
static |
Definition at line 3646 of file outliner_tools.cc.
References C, ED_outliner_select_sync_from_outliner(), ED_region_tag_redraw_no_rebuild(), ELEM, TreeStoreElem::flag, get_element_operation_type(), ID_GR, ID_LI, blender::wm::InvokeRegionWin, OL_ITEM_ACTIVATE, OL_ITEM_EXTEND, OL_ITEM_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_item_select(), outliner_operator_menu(), TREESTORE, TSE_ANIM_DATA, TSE_CONSTRAINT, TSE_DRIVER_BASE, TSE_ID_BASE, TSE_LAYER_COLLECTION, TSE_MODIFIER, TSE_SCENE_COLLECTION_BASE, TSE_SELECTED, TSE_VIEW_COLLECTION_BASE, and WM_menu_name_call().
Referenced by outliner_operation_invoke().
|
static |
Definition at line 1695 of file outliner_select.cc.
References active, C, do_outliner_range_select(), do_outliner_range_select_recursive(), do_outliner_select_recursive(), TreeStoreElem::flag, OL_ITEM_ACTIVATE, OL_ITEM_SELECT, outliner_collection_get_for_recursive(), outliner_find_element_with_flag(), outliner_flag_set(), outliner_is_element_visible(), outliner_item_select(), blender::ed::outliner::TreeElement::subtree, SpaceOutliner::tree, TREESTORE, TSE_ACTIVE, and TSE_SELECTED.
Referenced by do_outliner_range_select(), and outliner_item_do_activate_from_cursor().
|
static |
Definition at line 1654 of file outliner_select.cc.
References active, can_select_recursive(), do_outliner_range_select_recursive(), ELEM, TreeStoreElem::flag, LISTBASE_FOREACH, TREESTORE, TSE_CLOSED, TSE_LAYER_COLLECTION, TSE_SELECTED, and TreeStoreElem::type.
Referenced by do_outliner_range_select(), and do_outliner_range_select_recursive().
|
static |
Definition at line 1630 of file outliner_select.cc.
References can_select_recursive(), LayerCollection::collection, do_outliner_select_recursive(), TreeStoreElem::flag, LISTBASE_FOREACH, TREESTORE, TSE_LAYER_COLLECTION, TSE_SELECTED, and TreeStoreElem::type.
Referenced by do_outliner_range_select(), do_outliner_select_recursive(), and outliner_item_do_activate_from_cursor().
|
static |
Definition at line 2155 of file outliner_select.cc.
References do_outliner_select_walk(), TreeStoreElem::flag, outliner_find_next_element(), outliner_find_previous_element(), outliner_walk_left(), outliner_walk_right(), TREESTORE, TSE_SELECTED, UI_SELECT_WALK_DOWN, UI_SELECT_WALK_LEFT, UI_SELECT_WALK_RIGHT, and UI_SELECT_WALK_UP.
Referenced by do_outliner_select_walk(), and outliner_walk_select_invoke().
| void blender::ed::outliner::draw_outliner | ( | const bContext * | C, |
| bool | do_rebuild ) |
| do_rebuild | When false, only the scroll position changed since last draw. |
Definition at line 4032 of file outliner_draw.cc.
References C, CTX_data_main(), CTX_wm_region(), CTX_wm_space_outliner(), CTX_wm_workspace(), View2D::cur, draw_outliner(), ED_outliner_select_sync_flag_outliners(), ED_outliner_select_sync_is_dirty(), ELEM, blender::ui::Emboss, SpaceOutliner::flag, View2D::flag, 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_shows_mode_column(), outliner_sync_selection(), outliner_tree_dimensions(), outliner_update_viewable_area(), outliner_viewcontext_init(), SpaceOutliner::outlinevis, blender::ed::outliner::TreeViewContext::scene, SO_DATA_API, SO_ID_ORPHANS, SO_LIB_OVERRIDE_VIEW_HIERARCHIES, SO_LIB_OVERRIDE_VIEW_PROPERTIES, SO_LIBRARIES, SO_OVERRIDES_LIBRARY, SO_SYNC_SELECT, SpaceOutliner::tree, UI_block_begin(), UI_block_draw(), UI_block_emboss_set(), UI_block_end(), UI_block_flag_enable(), UI_BLOCK_NO_DRAW_OVERRIDDEN_STATE, UI_view2d_view_ortho(), ARegion::v2d, V2D_PIXELOFS_X, V2D_PIXELOFS_Y, blender::ed::outliner::TreeViewContext::view_layer, x, and rctf::xmax.
Referenced by draw_outliner(), and outliner_main_region_draw().
|
static |
Definition at line 2131 of file outliner_tools.cc.
References BONE_HIDDEN_A, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, blender::ed::outliner::TreeElement::directdata, EditBone::flag, OL_DOP_DESELECT, OL_DOP_HIDE, OL_DOP_SELECT, and OL_DOP_UNHIDE.
Referenced by outliner_data_operation_exec().
|
static |
Specialized poll callback for these operators to work in data-blocks view only.
Definition at line 1779 of file outliner_edit.cc.
References CTX_wm_area(), CTX_wm_space_outliner(), SpaceOutliner::outlinevis, SO_DATA_API, SPACE_OUTLINER, and ScrArea::spacetype.
Referenced by OUTLINER_OT_drivers_add_selected(), OUTLINER_OT_drivers_delete_selected(), OUTLINER_OT_keyingset_add_selected(), and OUTLINER_OT_keyingset_remove_selected().
|
static |
Definition at line 2297 of file outliner_edit.cc.
References CTX_wm_area(), CTX_wm_space_outliner(), SpaceOutliner::outlinevis, SO_ID_ORPHANS, SPACE_OUTLINER, and ScrArea::spacetype.
Referenced by OUTLINER_OT_orphans_purge().
|
static |
Definition at line 3306 of file outliner_draw.cc.
References BASE_ENABLED_AND_VISIBLE_IN_DEFAULT_VIEWPORT, BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), blender::ed::outliner::TreeElement::directdata, element_should_draw_faded(), Base::flag, blender::ed::outliner::TreeElement::flag, LayerCollection::flag, TreeStoreElem::id, ID_OB, blender::ed::outliner::TreeElement::idcode, LAYER_COLLECTION_EXCLUDE, LAYER_COLLECTION_VISIBLE_VIEW_LAYER, blender::ed::outliner::TreeElement::parent, LayerCollection::runtime_flag, blender::ed::outliner::TreeViewContext::scene, blender::ed::outliner::TreeElement::store_elem, TE_CHILD_NOT_IN_COLLECTION, tree_element_cast(), TSE_GREASE_PENCIL_NODE, TSE_LAYER_COLLECTION, TSE_SOME_ID, TreeStoreElem::type, and blender::ed::outliner::TreeViewContext::view_layer.
Referenced by element_should_draw_faded(), outliner_draw_hierarchy_lines_recursive(), and outliner_draw_tree_element().
|
static |
Definition at line 2190 of file outliner_select.cc.
References find_walk_select_start_element(), ListBase::first, outliner_find_element_with_flag(), outliner_is_element_visible(), blender::ed::outliner::TreeElement::parent, SpaceOutliner::tree, and TSE_ACTIVE.
Referenced by find_walk_select_start_element(), and outliner_walk_select_invoke().
|
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:
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 279 of file tree_display_override_library_hierarchies.cc.
References BLI_ghash_lookup(), FOREACH_BREAK, MainIDRelationsEntry::from_ids, GS, Object::id, ID_OB, IDWALK_CB_LOOPBACK, ID::name, MainIDRelationsEntryItem::next, Object::parent, MainIDRelations::relations_from_pointers, and MainIDRelationsEntry::to_ids.
|
static |
Definition at line 109 of file outliner_tools.cc.
References BLI_assert, ELEM, TreeStoreElem::flag, GS, TreeStoreElem::id, ID_AC, ID_AR, ID_BR, ID_CA, ID_CF, ID_CU_LEGACY, ID_CV, ID_GD_LEGACY, ID_GP, ID_GR, ID_IM, ID_KE, ID_LA, ID_LI, ID_LP, ID_LS, ID_LT, ID_MA, ID_MB, ID_MC, ID_ME, ID_MSK, ID_NLA, ID_NT, ID_OB, ID_PA, ID_PAL, ID_PC, ID_PT, ID_SCE, ID_SCR, ID_SO, ID_SPK, ID_TE, ID_TXT, ID_VF, ID_VO, ID_WM, ID_WO, ID_WS, ID::name, TREESTORE, TSE_LAYER_COLLECTION, TSE_SELECTED, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by do_outliner_operation_event(), outliner_action_set_exec(), outliner_animdata_operation_exec(), outliner_data_operation_exec(), outliner_data_operation_poll(), and outliner_id_operation_exec().
|
static |
Definition at line 467 of file tree_element_overrides.cc.
References PROP_COLLECTION, ptr, RNA_property_pointer_type(), RNA_property_type(), RNA_property_ui_icon(), and RNA_struct_ui_icon().
|
static |
Definition at line 503 of file outliner_sync.cc.
References BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), C, CTX_data_active_bone(), CTX_data_active_pose_bone(), CTX_data_scene(), CTX_data_sequencer_scene(), CTX_data_view_layer(), blender::ed::outliner::SyncSelectActiveData::edit_bone, blender::ed::outliner::SyncSelectActiveData::object, blender::ed::outliner::SyncSelectActiveData::pose_channel, blender::seq::select_active_get(), and blender::ed::outliner::SyncSelectActiveData::strip.
Referenced by outliner_sync_selection().
|
static |
Definition at line 198 of file outliner_tools.cc.
References outliner_find_element_with_flag(), SpaceOutliner::tree, and TSE_ACTIVE.
Referenced by outliner_action_set_exec(), outliner_animdata_operation_exec(), outliner_data_op_sets_enum_item_fn(), outliner_data_operation_exec(), outliner_data_operation_poll(), outliner_id_operation_exec(), outliner_id_operation_item_poll(), and outliner_operation_tree_element_poll().
|
static |
Definition at line 2178 of file outliner_tools.cc.
References blender::ed::outliner::TreeElement::directdata, bGPDlayer::flag, GP_LAYER_HIDE, GP_LAYER_SELECT, OL_DOP_DESELECT, OL_DOP_HIDE, OL_DOP_SELECT, and OL_DOP_UNHIDE.
Referenced by outliner_data_operation_exec().
|
static |
Definition at line 2199 of file outliner_tools.cc.
References OL_DOP_DESELECT, OL_DOP_HIDE, OL_DOP_SELECT, OL_DOP_UNHIDE, and tree_element_cast().
Referenced by outliner_data_operation_exec().
|
static |
Definition at line 479 of file outliner_edit.cc.
References BKE_library_ID_is_indirectly_used(), BKE_main_id_tag_idcode(), BKE_reportf(), BKE_workspace_id_tag_all_visible(), BLI_assert, CTX_data_main(), CTX_data_scene(), IDOverrideLibrary::flag, Scene::id, TreeStoreElem::id, ID_IS_OVERRIDE_LIBRARY, ID_IS_OVERRIDE_LIBRARY_REAL, ID_LI, ID_REAL_USERS, ID_TAG_DOIT, ID_TAG_INDIRECT, ID_TAG_PRE_EXISTING, ID_WS, blender::ed::outliner::TreeElement::idcode, ID::lib, lib, LIBOVERRIDE_FLAG_NO_HIERARCHY, ID::name, NC_WINDOW, ID::override_library, RPT_WARNING, ID::tag, TSE_LAYER_COLLECTION, TSE_SOME_ID, TreeStoreElem::type, UNUSED_VARS_NDEBUG, and WM_event_add_notifier().
Referenced by id_delete_tag_fn(), and outliner_id_delete_tag().
| void blender::ed::outliner::id_delete_tag_fn | ( | bContext * | C, |
| ReportList * | reports, | ||
| Scene * | , | ||
| TreeElement * | te, | ||
| TreeStoreElem * | , | ||
| TreeStoreElem * | tselem ) |
Definition at line 553 of file outliner_edit.cc.
References id_delete_tag().
Referenced by outliner_id_operation_exec(), and outliner_lib_operation_exec().
|
static |
Definition at line 1606 of file outliner_tools.cc.
References TreeStoreElem::id, and id_fake_user_clear().
Referenced by outliner_id_operation_exec().
|
static |
Definition at line 1594 of file outliner_tools.cc.
References TreeStoreElem::id, and id_fake_user_set().
Referenced by outliner_id_operation_exec().
|
static |
Definition at line 338 of file tree_display_override_library_hierarchies.cc.
References BKE_lib_override_library_get(), IDOverrideLibrary::hierarchy_root, ID_IS_OVERRIDE_LIBRARY, ID_IS_OVERRIDE_LIBRARY_VIRTUAL, and ID::override_library.
|
static |
Definition at line 983 of file outliner_tools.cc.
References BKE_id_newptr_and_tag_clear(), BKE_lib_id_make_local(), BKE_lib_override_library_make_local(), C, CTX_data_main(), TreeStoreElem::id, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY_REAL, ID_TAG_EXTERN, LIB_ID_MAKELOCAL_ASSET_DATA_CLEAR, and ID::tag.
Referenced by outliner_id_operation_exec().
|
static |
Definition at line 1492 of file outliner_tools.cc.
References BKE_reportf(), BLI_assert, data, TreeStoreElem::id, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, ID_IS_OVERRIDE_LIBRARY_REAL, ID::name, RPT_WARNING, and TSE_IS_REAL_ID.
|
static |
Definition at line 1434 of file outliner_tools.cc.
References ViewLayer::basact, BKE_id_delete(), BKE_lib_override_library_id_reset(), BKE_lib_override_library_is_hierarchy_leaf(), BKE_libblock_remap(), BKE_view_layer_active_object_get(), BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), BLI_assert, C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), data, DEG_id_tag_update(), GS, Scene::id, ID_OB, ID_RECALC_BASE_FLAGS, ID_RECALC_SELECT, ID_RECALC_SYNC_TO_EVAL, and ID_REMAP_SKIP_INDIRECT_USAGE.
Referenced by outliner_liboverride_operation_exec().
|
static |
Definition at line 1269 of file outliner_tools.cc.
References blender::ed::object::base_free_and_unlink(), BKE_lib_override_library_create(), BKE_lib_override_library_create_from_id(), BKE_main_id_newptr_and_tag_clear(), BKE_main_id_tag_all(), BLI_assert, BLI_assert_unreachable, data, IDOverrideLibrary::flag, FOREACH_MAIN_ID_BEGIN, FOREACH_MAIN_ID_END, GS, IDOverrideLibrary::hierarchy_root, ID_IS_LINKED, ID_IS_OVERRIDABLE_LIBRARY, ID_IS_OVERRIDE_LIBRARY, ID_IS_OVERRIDE_LIBRARY_REAL, ID_OB, ID_TAG_DOIT, LIBOVERRIDE_FLAG_SYSTEM_DEFINED, ID::override_library, IDOverrideLibrary::reference, ID::session_uid, and ID::tag.
Referenced by id_override_library_create_hierarchy_process().
|
static |
Definition at line 1079 of file outliner_tools.cc.
References BKE_idtype_idcode_is_linkable(), BKE_main_id_tag_all(), BKE_reportf(), BLI_assert, C, CTX_data_main(), data, ID::flag, IDOverrideLibrary::flag, TreeStoreElem::flag, FOREACH_COLLECTION_OBJECT_RECURSIVE_BEGIN, FOREACH_COLLECTION_OBJECT_RECURSIVE_END, GS, IDOverrideLibrary::hierarchy_root, Collection::id, Library::id, TreeStoreElem::id, ID_FLAG_EMBEDDED_DATA, ID_FLAG_EMBEDDED_DATA_LIB_OVERRIDE, ID_GR, ID_IS_LINKED, ID_IS_OVERRIDABLE_LIBRARY, ID_IS_OVERRIDABLE_LIBRARY_HIERARCHY, ID_IS_OVERRIDE_LIBRARY, ID_IS_OVERRIDE_LIBRARY_REAL, ID_IS_OVERRIDE_LIBRARY_VIRTUAL, ID_OB, ID_TAG_DOIT, Object::instance_collection, ID::lib, LIBOVERRIDE_FLAG_SYSTEM_DEFINED, ID::name, OB_ARMATURE, OB_EMPTY, ID::override_library, blender::ed::outliner::TreeElement::parent, IDOverrideLibrary::reference, RPT_WARNING, ID::session_uid, blender::ed::outliner::TreeElement::store_elem, ID::tag, TSE_CLOSED, TSE_IS_REAL_ID, TSE_SELECTED, TSE_SOME_ID, Object::type, TreeStoreElem::type, and UNUSED_VARS_NDEBUG.
|
static |
Definition at line 1366 of file outliner_tools.cc.
References BKE_reportf(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), data, IDOverrideLibrary::flag, FOREACH_MAIN_ID_BEGIN, FOREACH_MAIN_ID_END, IDOverrideLibrary::hierarchy_root, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY_REAL, id_override_library_create_hierarchy(), LIBOVERRIDE_FLAG_SYSTEM_DEFINED, ID::override_library, IDOverrideLibrary::reference, RPT_WARNING, and ID::session_uid.
Referenced by outliner_liboverride_operation_exec().
|
static |
Definition at line 1564 of file outliner_tools.cc.
References BLI_assert, CLOG_WARN, data, IDOverrideLibrary::hierarchy_root, TreeStoreElem::id, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY_REAL, LOG, ID::name, ID::override_library, and TSE_IS_REAL_ID.
|
static |
Definition at line 1583 of file outliner_tools.cc.
References BKE_lib_override_library_delete(), C, CTX_data_main(), and data.
Referenced by outliner_liboverride_operation_exec().
|
static |
Definition at line 1411 of file outliner_tools.cc.
References BKE_lib_override_library_id_hierarchy_reset(), BKE_lib_override_library_id_reset(), BLI_assert, C, CLOG_WARN, CTX_data_main(), data, TreeStoreElem::id, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY_REAL, LOG, ID::name, and TSE_IS_REAL_ID.
|
static |
Definition at line 1522 of file outliner_tools.cc.
References BLI_assert, CLOG_WARN, data, IDOverrideLibrary::hierarchy_root, TreeStoreElem::id, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY_REAL, LOG, ID::name, ID::override_library, and TSE_IS_REAL_ID.
|
static |
Definition at line 1540 of file outliner_tools.cc.
References BKE_lib_override_library_resync(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), data, NC_WINDOW, BlendFileReadReport::reports, and WM_event_add_notifier().
Referenced by outliner_liboverride_operation_exec().
| void blender::ed::outliner::id_remap_fn | ( | bContext * | C, |
| ReportList * | , | ||
| Scene * | , | ||
| TreeElement * | , | ||
| TreeStoreElem * | , | ||
| TreeStoreElem * | tselem ) |
Definition at line 800 of file outliner_edit.cc.
References BLI_assert, GS, TreeStoreElem::id, blender::wm::InvokeDefault, ID::name, ot, RNA_enum_set(), RNA_enum_set_identifier(), WM_operator_name_call_ptr(), WM_operator_properties_create_ptr(), WM_operator_properties_free(), and WM_operatortype_find().
Referenced by outliner_id_operation_exec(), and outliner_object_operation_exec().
|
static |
Definition at line 1618 of file outliner_tools.cc.
References C, TreeStoreElem::id, and blender::ed::object::select_linked_by_id().
Referenced by outliner_id_operation_exec().
|
static |
Definition at line 196 of file outliner_dragdrop.cc.
References outliner_is_collection_tree_element().
Referenced by outliner_drop_insert_collection_find().
|
static |
The active object is only needed for reference.
Definition at line 127 of file outliner_draw.cc.
References BKE_object_data_is_in_editmode(), Object::data, GS, Object::mode, ID::name, OB_DATA_SUPPORT_EDITMODE, and OB_MODE_EDIT.
Referenced by outliner_draw_iconrow(), and outliner_draw_tree_element().
|
static |
Definition at line 201 of file outliner_dragdrop.cc.
References ID_OB, blender::ed::outliner::TreeElement::idcode, TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by datastack_drop_init().
|
static |
Definition at line 207 of file outliner_dragdrop.cc.
References TREESTORE, TSE_POSE_CHANNEL, and TreeStoreElem::type.
Referenced by datastack_drop_init().
| void blender::ed::outliner::item_rename_fn | ( | bContext * | C, |
| ReportList * | reports, | ||
| Scene * | , | ||
| TreeElement * | te, | ||
| TreeStoreElem * | , | ||
| TreeStoreElem * | tselem ) |
Definition at line 383 of file outliner_edit.cc.
References CTX_wm_region(), and do_item_rename().
Referenced by outliner_id_operation_exec(), and outliner_object_operation_exec().
|
static |
Definition at line 89 of file tree_element_overrides.cc.
References BKE_lib_override_library_property_is_animated(), BKE_lib_override_rna_property_find(), data, ELEM, LIBOVERRIDE_OP_FLAG_IDPOINTER_MATCH_REFERENCE, PROP_COLLECTION, PROP_POINTER, RNA_id_pointer_create(), RNA_property_pointer_type(), and RNA_struct_is_ID().
Referenced by blender::ed::outliner::TreeElementOverridesBase::expand().
|
static |
Definition at line 879 of file outliner_collections.cc.
References LayerCollection::collection, COLLECTION_IS_MASTER, data, blender::ed::outliner::TreeElement::directdata, Collection::flag, TRAVERSE_CONTINUE, TREESTORE, TSE_LAYER_COLLECTION, and TreeStoreElem::type.
Referenced by collection_flag_exec(), collection_isolate_exec(), collection_view_layer_exec(), collection_visibility_exec(), and collections_view_layer_poll().
| void blender::ed::outliner::lib_reload_fn | ( | bContext * | C, |
| ReportList * | , | ||
| Scene * | , | ||
| TreeElement * | te, | ||
| TreeStoreElem * | , | ||
| TreeStoreElem * | tselem ) |
Definition at line 1189 of file outliner_edit.cc.
References lib_relocate(), ot, and WM_operatortype_find().
Referenced by outliner_lib_operation_exec().
|
static |
Definition at line 1023 of file outliner_edit.cc.
References BLI_assert, BLI_path_cmp, BLI_path_split_dir_file(), blender::wm::ExecDefault, FILE_MAX, FILE_MAXDIR, TreeStoreElem::id, ID_LI, blender::ed::outliner::TreeElement::idcode, blender::wm::InvokeDefault, lib, ID::name, ot, printf, ret, RNA_boolean_set(), RNA_string_set(), UNUSED_VARS_NDEBUG, WM_operator_name_call_ptr(), WM_operator_properties_create_ptr(), and WM_operator_properties_free().
Referenced by lib_reload_fn(), lib_relocate_fn(), and outliner_lib_relocate_invoke_do().
| void blender::ed::outliner::lib_relocate_fn | ( | bContext * | C, |
| ReportList * | , | ||
| Scene * | , | ||
| TreeElement * | te, | ||
| TreeStoreElem * | , | ||
| TreeStoreElem * | tselem ) |
Definition at line 1131 of file outliner_edit.cc.
References lib_relocate(), ot, and WM_operatortype_find().
Referenced by outliner_lib_operation_exec().
|
static |
Definition at line 635 of file outliner_dragdrop.cc.
References BKE_id_is_editable(), BKE_MAT_ASSIGN_USERPREF, BKE_object_material_assign(), C, CTX_data_main(), ELEM, Material::gp_style, Object::id, ID_MA, ID_OB, NC_MATERIAL, NC_OBJECT, NC_SPACE, ND_OB_SHADING, ND_SHADING_LINKS, ND_SPACE_VIEW3D, OB_GREASE_PENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_ID_drop_find(), Object::totcol, Object::type, WM_drag_get_local_ID_from_event(), and WM_event_add_notifier().
Referenced by OUTLINER_OT_material_drop().
|
static |
Definition at line 626 of file outliner_dragdrop.cc.
References C, ELEM, Object::id, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, ID_MA, ID_OB, outliner_ID_drop_find(), and WM_drag_get_local_ID().
Referenced by outliner_dropboxes().
|
static |
Definition at line 835 of file outliner_tools.cc.
References C, CTX_wm_space_outliner(), ED_outliner_select_sync_from_outliner(), element, OL_ITEM_ACTIVATE, OL_ITEM_SELECT, and outliner_item_select().
Referenced by merged_element_search_menu().
|
static |
Definition at line 790 of file outliner_tools.cc.
References BLI_strcasestr(), blender::ed::outliner::TreeElementIcon::icon, LISTBASE_FOREACH, merged_element_search_fn_recursive(), name, str, STRNCPY(), tree, tree_element_get_icon(), tree_element_id_type_to_index(), TREESTORE, TreeStoreElem::type, UI_search_item_add(), and UI_search_items_find_index().
Referenced by merged_element_search_fn_recursive(), and merged_element_search_update_fn().
|
static |
Merged element search menu Created on activation of a merged or aggregated icon-row icon.
Definition at line 849 of file outliner_tools.cc.
References C, data, blender::ui::Emboss, Label, merged_element_search_exec_fn(), merged_element_search_update_fn(), UI_block_begin(), UI_block_bounds_set_popup(), UI_block_flag_enable(), UI_BLOCK_LOOP, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_SEARCH_MENU, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_BUT_ACTIVATE_ON_INIT, UI_but_flag_enable(), UI_but_func_search_set(), UI_SEARCHBOX_BOUNDS, UI_searchbox_size_y(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), and uiDefSearchBut().
Referenced by merged_element_search_menu_invoke().
| void blender::ed::outliner::merged_element_search_menu_invoke | ( | bContext * | C, |
| TreeElement * | parent_te, | ||
| TreeElement * | activate_te ) |
Definition at line 887 of file outliner_tools.cc.
References C, MEM_callocN(), MEM_freeN(), merged_element_search_menu(), blender::ed::outliner::MergedSearchData::parent_element, blender::ed::outliner::MergedSearchData::select_element, and UI_popup_block_invoke().
Referenced by outliner_item_do_activate_from_cursor().
|
static |
Definition at line 819 of file outliner_tools.cc.
References data, merged_element_search_fn_recursive(), blender::ed::outliner::MergedSearchData::parent_element, blender::ed::outliner::MergedSearchData::select_element, str, blender::ed::outliner::TreeElement::subtree, tree_element_id_type_to_index(), and TREESTORE.
Referenced by merged_element_search_menu().
|
static |
Definition at line 2286 of file outliner_tools.cc.
References C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), data, DEG_id_tag_update(), DEG_relations_tag_update(), depsgraph, blender::ed::outliner::TreeElement::directdata, eModifierMode_Realtime, eModifierMode_Render, TreeStoreElem::flag, Object::id, ID_OB, ID_RECALC_GEOMETRY, ModifierData::mode, blender::ed::object::modifier_apply(), blender::ed::object::MODIFIER_APPLY_DATA, blender::ed::object::modifier_remove(), NA_REMOVED, NC_OBJECT, ND_MODIFIER, OL_MODIFIER_OP_APPLY, OL_MODIFIER_OP_DELETE, OL_MODIFIER_OP_TOGREN, OL_MODIFIER_OP_TOGVIS, outliner_search_back(), blender::ed::outliner::TreeElement::store_elem, TSE_SELECTED, and WM_event_add_notifier().
Referenced by outliner_modifier_operation_exec().
|
static |
Definition at line 707 of file outliner_draw.cc.
References ANIM_armature_bonecoll_name_set(), BKE_gpencil_layer_active_set(), BKE_library_filepath_set(), BKE_main_blendfile_path(), BKE_object_defgroup_unique_name(), BKE_reportf(), BKE_view_layer_rename(), BLI_assert, BLI_exists(), BLI_path_abs(), BLI_strncpy_utf8(), BLI_uniquename(), BLT_I18NCONTEXT_OPERATOR_DEFAULT, bPoseChannel::bone, C, CTX_data_main(), CTX_N_, CTX_wm_message_bus(), CTX_wm_reports(), CTX_wm_space_outliner(), Object::data, DEG_id_tag_update(), DEG_relations_tag_update(), blender::ed::outliner::TreeElement::directdata, ED_armature_bone_rename(), ED_id_rename(), ED_undo_push(), bArmature::edbo, ELEM, FILE_MAX, TreeStoreElem::flag, GS, bArmature::id, bGPdata::id, GreasePencil::id, Object::id, Scene::id, TreeStoreElem::id, ID_IM, ID_LI, ID_MA, ID_RECALC_GEOMETRY, ID_RECALC_SYNC_TO_EVAL, ID_SCE, ID_TAG_MISSING, ID_TE, blender::ed::outliner::TreeElement::idcode, bGPDlayer::info, bGPdata::layers, lib, NA_RENAME, NA_SELECTED, Bone::name, BoneCollection::name, bPoseChannel::name, EditBone::name, GreasePencilLayerTreeNode::name, ID::name, name, ViewLayer::name, namebutton_fn(), NC_ANIMATION, NC_GPENCIL, NC_ID, NC_IMAGE, NC_MATERIAL, NC_OBJECT, NC_SCENE, NC_TEXTURE, ND_ANIMCHAN, ND_BONE_COLLECTION, ND_DATA, ND_MODIFIER, ND_POSE, OB_ARMATURE, offsetof, OL_SETSEL_NORMAL, outliner_find_tree_element(), outliner_viewcontext_init(), RPT_ERROR, RPT_INFO, STRNCPY(), STRNCPY_UTF8, SpaceOutliner::tree, tree_element_activate(), tree_element_cast(), SpaceOutliner::treestore, TSE_ACTION_SLOT, TSE_BONE, TSE_BONE_COLLECTION, TSE_DEFGROUP, TSE_EBONE, TSE_GP_LAYER, TSE_GREASE_PENCIL_NODE, TSE_LAYER_COLLECTION, TSE_LINKED_NODE_TREE, TSE_MODIFIER, TSE_NLA_ACTION, TSE_NLA_TRACK, TSE_POSE_CHANNEL, TSE_R_LAYER, TSE_SOME_ID, TSE_TEXTBUT, Object::type, TreeStoreElem::type, WM_event_add_notifier(), and WM_msg_publish_rna_prop.
Referenced by namebutton_fn(), and outliner_buttons().
|
static |
Definition at line 2405 of file outliner_tools.cc.
References BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), BLI_assert, C, CTX_data_edit_object(), CTX_data_main(), CTX_data_view_layer(), blender::ed::object::editmode_exit(), blender::ed::object::EM_FREEDATA, Object::id, ID_TAG_DOIT, Base::object, outliner_batch_delete_object_hierarchy_tag(), Object::parent, and ID::tag.
Referenced by outliner_delete_exec().
|
static |
Definition at line 936 of file outliner_tools.cc.
References BASE_SELECTED, BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), C, CTX_data_scene(), CTX_data_view_layer(), Base::flag, and TreeStoreElem::id.
Referenced by outliner_object_operation_exec().
|
static |
Definition at line 898 of file outliner_tools.cc.
References blender::ed::object::BA_SELECT, blender::ed::object::base_select(), BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), C, CTX_data_scene(), CTX_data_view_layer(), and TreeStoreElem::id.
Referenced by outliner_object_operation_exec().
|
static |
Definition at line 922 of file outliner_tools.cc.
References C, CTX_wm_space_outliner(), OL_ITEM_ACTIVATE, OL_ITEM_RECURSIVE, OL_ITEM_SELECT, and outliner_item_select().
Referenced by outliner_object_operation_exec().
|
static |
Base properties.
Definition at line 344 of file outliner_draw.cc.
References C, outliner__base_set_flag_recursive_fn(), and outliner_object_set_flag_recursive_fn().
Referenced by outliner__base_set_flag_recursive_fn(), and outliner_draw_restrictbuts().
|
static |
Object properties.
Definition at line 334 of file outliner_draw.cc.
References C, outliner__object_set_flag_recursive_fn(), and outliner_object_set_flag_recursive_fn().
Referenced by outliner__object_set_flag_recursive_fn(), and outliner_draw_restrictbuts().
|
static |
Definition at line 3187 of file outliner_tools.cc.
References blender::animrig::legacy::action_treat_as_legacy(), Main::actions, actionset_id_fn(), BKE_report(), BKE_reportf(), BLI_findlink(), C, CTX_data_main(), CTX_wm_space_outliner(), DEG_id_tag_update(), ED_undo_push(), get_element_operation_type(), get_target_element(), bAction::id, TreeStoreElem::id, ID_AC, ID_RECALC_ANIMATION, bAction::idroot, ID::name, NC_ANIMATION, ND_NLA_ACTCHANGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_do_id_set_operation(), wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, RPT_WARNING, blender::ed::outliner::TreeElement::store_elem, TSE_ANIM_DATA, and WM_event_add_notifier().
Referenced by OUTLINER_OT_action_set().
|
static |
Definition at line 614 of file outliner_collections.cc.
References C, CTX_wm_space_outliner(), data, outliner_find_first_selected_collection(), outliner_tree_traverse(), SpaceOutliner::tree, and TSE_SELECTED.
Referenced by collection_flag_poll().
|
static |
Definition at line 506 of file outliner_collections.cc.
References C, CTX_wm_space_outliner(), data, outliner_find_first_selected_layer_collection(), outliner_tree_traverse(), SpaceOutliner::tree, and TSE_SELECTED.
Referenced by collection_inside_poll().
|
static |
Definition at line 82 of file tree_element_id_armature.cc.
References blender::ed::outliner::AbstractTreeDisplay::add_element(), Bone::childbase, LISTBASE_FOREACH, outliner_add_bone(), blender::ed::outliner::TreeElement::subtree, and TSE_BONE.
Referenced by outliner_add_bone().
| BLI_INLINE void blender::ed::outliner::outliner_add_collection_init | ( | TreeElement * | te, |
| Collection * | collection ) |
Definition at line 396 of file outliner_tree.cc.
References BKE_collection_ui_name_get(), BLI_INLINE, blender::ed::outliner::TreeElement::directdata, and blender::ed::outliner::TreeElement::name.
Referenced by outliner_add_collection_recursive().
| BLI_INLINE void blender::ed::outliner::outliner_add_collection_objects | ( | SpaceOutliner * | space_outliner, |
| ListBase * | tree, | ||
| Collection * | collection, | ||
| TreeElement * | parent ) |
Definition at line 402 of file outliner_tree.cc.
References blender::ed::outliner::AbstractTreeDisplay::add_element(), BLI_INLINE, Collection::gobject, LISTBASE_FOREACH, tree, and TSE_SOME_ID.
Referenced by outliner_add_collection_recursive().
| TreeElement * blender::ed::outliner::outliner_add_collection_recursive | ( | SpaceOutliner * | space_outliner, |
| Collection * | collection, | ||
| TreeElement * | ten ) |
Definition at line 413 of file outliner_tree.cc.
References blender::ed::outliner::AbstractTreeDisplay::add_element(), Collection::children, LISTBASE_FOREACH, outliner_add_collection_init(), outliner_add_collection_objects(), SpaceOutliner::outlinevis, SO_SCENES, blender::ed::outliner::TreeElement::subtree, and TSE_SOME_ID.
Referenced by blender::ed::outliner::TreeElementCollectionBase::expand(), and blender::ed::outliner::TreeElementIDCollection::expand().
|
static |
Definition at line 3291 of file outliner_tools.cc.
References C, clear_animdata_fn(), cleardrivers_animdata_fn(), CTX_data_main(), CTX_wm_manager(), CTX_wm_space_outliner(), DEG_relations_tag_update(), ED_undo_push(), get_element_operation_type(), get_target_element(), blender::wm::InvokeRegionWin, NC_ANIMATION, ND_ANIMCHAN, ND_NLA_ACTCHANGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, OUTLINER_ANIMOP_CLEAR_ACT, OUTLINER_ANIMOP_CLEAR_ADT, OUTLINER_ANIMOP_CLEAR_DRV, OUTLINER_ANIMOP_REFRESH_DRV, OUTLINER_ANIMOP_SET_ACT, outliner_do_data_operation(), wmOperator::ptr, refreshdrivers_animdata_fn(), RNA_enum_get(), TSE_ANIM_DATA, unlinkact_animdata_fn(), WM_event_add_notifier(), and WM_operator_name_call().
Referenced by OUTLINER_OT_animdata_operation().
| bool blender::ed::outliner::outliner_animdata_test | ( | const AnimData * | adt | ) |
Definition at line 62 of file common.cc.
References AnimData::action, AnimData::drivers, ListBase::first, and AnimData::nla_tracks.
Referenced by blender::ed::outliner::TreeElementID::expand_animation_data().
|
static |
Definition at line 3955 of file outliner_draw.cc.
References View2D::cur, floor, GPU_PRIM_TRIS, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformThemeColorBlend(), immVertex2f(), immVertexFormat(), OL_Y_OFFSET, outliner_back(), pos, TH_BACK, TH_ROW_ALTERNATE, View2D::tot, UI_GetThemeColor4fv(), UI_UNIT_Y, ARegion::v2d, rctf::xmax, rctf::ymax, and rctf::ymin.
Referenced by draw_outliner(), and outliner_back().
|
static |
Create either a RNA_ObjectBase or a RNA_Object pointer.
Definition at line 366 of file outliner_draw.cc.
References BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), Object::id, Scene::id, outliner_base_or_object_pointer_create(), ptr, RNA_id_pointer_create(), and RNA_pointer_create_discrete().
Referenced by outliner_base_or_object_pointer_create(), and outliner_collection_set_flag_recursive().
|
static |
Definition at line 2442 of file outliner_tools.cc.
References BKE_id_multi_tagged_delete(), BKE_scene_collections_object_remove(), DEG_id_tag_update_ex(), ID_RECALC_BASE_FLAGS, ID_TAG_DOIT, LISTBASE_FOREACH, and Main::objects.
Referenced by outliner_delete_exec().
|
static |
Definition at line 2365 of file outliner_tools.cc.
References BKE_view_layer_object_bases_get(), BLI_assert, Object::id, ID_TAG_DOIT, Base::next, Base::object, outliner_batch_delete_object_tag(), Object::parent, and ID::tag.
Referenced by object_batch_delete_hierarchy_tag_fn().
|
static |
Definition at line 2338 of file outliner_tools.cc.
References BKE_library_ID_is_indirectly_used(), BKE_reportf(), BLI_assert, Scene::id, ID_EXTRA_USERS, ID_REAL_USERS, ID_TAG_DOIT, ID_TAG_INDIRECT, ID::name, RPT_WARNING, and ID::tag.
Referenced by outliner_batch_delete_object_hierarchy_tag().
|
static |
Definition at line 1956 of file outliner_select.cc.
References blender::ed::outliner::tree_iterator::all_open(), C, OL_ITEM_DESELECT, OL_ITEM_EXTEND, OL_ITEM_SELECT, outliner_box_select(), outliner_item_select(), select, UI_UNIT_Y, rctf::ymax, rctf::ymin, and blender::ed::outliner::TreeElement::ys.
Referenced by outliner_box_select(), and outliner_box_select_exec().
|
static |
Definition at line 1969 of file outliner_select.cc.
References C, CTX_data_scene(), CTX_wm_region(), CTX_wm_space_outliner(), DEG_id_tag_update(), ED_outliner_select_sync_from_outliner(), ED_region_tag_redraw_no_rebuild(), Scene::id, ID_RECALC_SELECT, NC_SCENE, ND_OB_SELECT, OPERATOR_FINISHED, outliner_box_select(), outliner_box_select_exec(), outliner_flag_set(), wmOperator::ptr, RNA_enum_get(), SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, select, TSE_SELECTED, UI_view2d_region_to_view_rctf(), ARegion::v2d, WM_event_add_notifier(), and WM_operator_properties_border_to_rctf().
Referenced by outliner_box_select_exec(), and OUTLINER_OT_select_box().
|
static |
Definition at line 1996 of file outliner_select.cc.
References C, CTX_wm_region(), CTX_wm_space_outliner(), OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, outliner_box_select_invoke(), outliner_find_item_at_y(), outliner_is_co_within_active_mode_column(), outliner_item_is_co_over_name_icons(), wmOperator::ptr, RNA_boolean_get(), SpaceOutliner::tree, UI_view2d_region_to_view(), ARegion::v2d, WM_event_drag_start_mval(), and WM_gesture_box_invoke().
Referenced by outliner_box_select_invoke(), and OUTLINER_OT_select_box().
| void blender::ed::outliner::outliner_build_tree | ( | Main * | mainvar, |
| WorkSpace * | workspace, | ||
| Scene * | scene, | ||
| ViewLayer * | view_layer, | ||
| SpaceOutliner * | space_outliner, | ||
| ARegion * | region ) |
Main entry point for building the tree data-structure that the outliner represents.
Definition at line 1147 of file outliner_tree.cc.
References BLI_assert, BLI_assert_msg, blender::ed::outliner::AbstractTreeDisplay::create_from_display_mode(), ED_outliner_support_searching(), SpaceOutliner::filter, SpaceOutliner::flag, outliner_clear_newid_from_main(), outliner_collections_children_sort(), outliner_filter_tree(), outliner_free_tree(), outliner_restore_scrolling_position(), outliner_sort(), outliner_storage_cleanup(), outliner_store_scrolling_position(), SpaceOutliner::outlinevis, RGN_DRAW_NO_REBUILD, ARegion::runtime, SpaceOutliner::runtime, SpaceOutliner::search_flags, SpaceOutliner::search_string, SO_DATA_API, SO_FILTER_NO_CHILDREN, SO_SEARCH_RECURSIVE, SO_SKIP_SORT_ALPHA, SO_TREESTORE_REBUILD, source_data, SpaceOutliner::storeflag, SpaceOutliner::tree, blender::ed::outliner::SpaceOutliner_Runtime::tree_display, blender::ed::outliner::SpaceOutliner_Runtime::tree_hash, and SpaceOutliner::treestore.
Referenced by collection_new_exec(), and draw_outliner().
|
static |
Definition at line 1998 of file outliner_draw.cc.
References b, outliner_but_identity_cmp_context_id_fn(), and UI_but_context_int_get().
Referenced by outliner_but_identity_cmp_context_id_fn(), and outliner_draw_overrides_restrictbuts().
|
static |
Definition at line 2165 of file outliner_draw.cc.
References BLI_assert, C, View2D::cur, Library::filepath, TreeStoreElem::flag, GS, TreeStoreElem::id, ID_LI, len, MAX_ID_NAME, blender::ed::outliner::TreeElement::name, EditBone::name, ID::name, ModifierData::name, namebutton_fn(), NC_SPACE, ND_SPACE_OUTLINER, OL_NAMEBUTTON, outliner_buttons(), Text, TREESTORE, TSE_EBONE, TSE_MODIFIER, TSE_TEXTBUT, TreeStoreElem::type, UI_but_active_only(), UI_but_flag_disable(), UI_but_func_rename_set(), UI_BUT_UNDO, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), ARegion::v2d, WM_event_add_notifier(), rctf::xmax, blender::ed::outliner::TreeElement::xs, and blender::ed::outliner::TreeElement::ys.
Referenced by draw_outliner(), and outliner_buttons().
| void blender::ed::outliner::outliner_cleanup_tree | ( | SpaceOutliner * | space_outliner | ) |
Definition at line 157 of file outliner_tree.cc.
References outliner_free_tree(), outliner_storage_cleanup(), and SpaceOutliner::tree.
Referenced by collection_new_exec(), outliner_constraint_operation_exec(), outliner_delete_exec(), outliner_modifier_operation_exec(), outliner_orphans_purge_exec(), and outliner_scene_operation_exec().
|
static |
Definition at line 1398 of file outliner_edit.cc.
References CTX_wm_area(), CTX_wm_space_outliner(), ED_area_tag_redraw(), OPERATOR_FINISHED, and SpaceOutliner::search_string.
Referenced by OUTLINER_OT_clear_filter().
|
static |
Definition at line 1132 of file outliner_tree.cc.
References FOREACH_MAIN_ID_BEGIN, FOREACH_MAIN_ID_END, and ID::newid.
Referenced by outliner_build_tree().
|
static |
Definition at line 2615 of file outliner_tools.cc.
References data, ELEM, GS, TreeStoreElem::id, ID_GR, ID_IS_OVERRIDE_LIBRARY_HIERARCHY_ROOT, ID_IS_OVERRIDE_LIBRARY_REAL, ID_OB, ID_SCE, ID::name, outliner_is_collection_tree_element(), blender::ed::outliner::TreeElement::parent, TRAVERSE_CONTINUE, TRAVERSE_SKIP_CHILDS, TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_delete_exec().
| TreeTraversalAction blender::ed::outliner::outliner_collect_selected_collections | ( | TreeElement * | te, |
| void * | customdata ) |
Definition at line 93 of file outliner_collections.cc.
References BLI_addtail(), BLI_genericNodeN(), data, GS, TreeStoreElem::id, ID_GR, ID::name, outliner_is_collection_tree_element(), TRAVERSE_CONTINUE, TRAVERSE_SKIP_CHILDS, TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by collection_objects_select_exec(), outliner_color_tag_set_exec(), and outliner_item_drag_drop_invoke().
| TreeTraversalAction blender::ed::outliner::outliner_collect_selected_objects | ( | TreeElement * | te, |
| void * | customdata ) |
Definition at line 125 of file outliner_collections.cc.
References BLI_addtail(), BLI_genericNodeN(), data, GS, TreeStoreElem::id, ID_OB, ID::name, outliner_is_collection_tree_element(), TRAVERSE_CONTINUE, TRAVERSE_SKIP_CHILDS, TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by ED_outliner_selected_objects_get(), and outliner_item_drag_drop_invoke().
|
static |
Definition at line 110 of file outliner_collections.cc.
References BLI_addtail(), BLI_genericNodeN(), data, ELEM, outliner_is_collection_tree_element(), blender::ed::outliner::TreeElement::store_elem, TRAVERSE_CONTINUE, TRAVERSE_SKIP_CHILDS, TSE_SCENE_COLLECTION_BASE, TSE_VIEW_COLLECTION_BASE, and TreeStoreElem::type.
Referenced by collection_duplicate_exec().
| void blender::ed::outliner::outliner_collection_delete | ( | bContext * | C, |
| Main * | bmain, | ||
| Scene * | scene, | ||
| ReportList * | reports, | ||
| bool | do_hierarchy ) |
Definition at line 367 of file outliner_collections.cc.
References BKE_collection_delete(), BKE_id_owner_get(), BKE_reportf(), BLI_assert, BLI_findindex(), C, collection_collect_data_to_edit(), COLLECTION_IS_MASTER, Main::collections, CTX_wm_space_outliner(), data, Collection::flag, ID::flag, GS, Collection::id, ID_FLAG_EMBEDDED_DATA, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, ID_SCE, ID_TAG_INDIRECT, LISTBASE_FOREACH, ID::name, outliner_tree_traverse(), RPT_WARNING, Collection::runtime, ID::tag, SpaceOutliner::tree, and TSE_SELECTED.
Referenced by collection_hierarchy_delete_exec(), and outliner_delete_exec().
| Collection * blender::ed::outliner::outliner_collection_from_tree_element | ( | const TreeElement * | te | ) |
Definition at line 70 of file outliner_collections.cc.
References LayerCollection::collection, blender::ed::outliner::TreeElement::directdata, ELEM, TreeStoreElem::id, ID_GR, blender::ed::outliner::TreeElement::idcode, Scene::master_collection, TREESTORE, TSE_LAYER_COLLECTION, TSE_SCENE_COLLECTION_BASE, TSE_SOME_ID, TSE_VIEW_COLLECTION_BASE, and TreeStoreElem::type.
Referenced by collection_collect_data_to_edit(), collection_drop_init(), collection_drop_invoke(), collection_duplicate_exec(), collection_find_selected_to_add(), collection_flag_poll(), do_item_rename(), outliner_color_tag_set_exec(), outliner_draw_hierarchy_lines_recursive(), outliner_draw_restrictbuts(), outliner_drop_insert_collection_find(), outliner_item_drag_drop_invoke(), outliner_restrict_properties_collection_set(), tree_element_get_icon(), and tselem_draw_icon().
|
static |
Definition at line 1591 of file outliner_select.cc.
References BKE_collection_object_find(), C, CTX_data_main(), CTX_data_scene(), blender::ed::outliner::TreeElement::directdata, TreeStoreElem::id, ID_OB, blender::ed::outliner::TreeElement::idcode, outliner_collection_get_for_recursive(), blender::ed::outliner::TreeElement::store_elem, TSE_LAYER_COLLECTION, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by do_outliner_range_select(), outliner_collection_get_for_recursive(), and outliner_item_do_activate_from_cursor().
|
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 451 of file outliner_draw.cc.
References BKE_collection_has_collection(), Collection::children, LayerCollection::collection, COLLECTION_IS_MASTER, Collection::flag, LayerCollection::flag, LAYER_COLLECTION_EXCLUDE, LayerCollection::layer_collections, LISTBASE_FOREACH, outliner_collection_is_isolated(), outliner_layer_or_collection_pointer_create(), ptr, RNA_property_boolean_get(), and RNA_property_editable().
Referenced by outliner_collection_is_isolated(), and outliner_collection_isolate_flag().
| void blender::ed::outliner::outliner_collection_isolate_flag | ( | Scene * | scene, |
| ViewLayer * | view_layer, | ||
| LayerCollection * | layer_collection, | ||
| Collection * | collection, | ||
| PropertyRNA * | layer_or_collection_prop, | ||
| const char * | propname, | ||
| const bool | value ) |
Definition at line 518 of file outliner_draw.cc.
References BKE_layer_collection_has_layer_collection(), CollectionParent::collection, LayerCollection::collection, COLLECTION_IS_MASTER, ListBase::first, Collection::flag, Collection::id, LayerCollection::layer_collections, ViewLayer::layer_collections, LISTBASE_FOREACH, Scene::master_collection, outliner_collection_is_isolated(), outliner_collection_isolate_flag(), outliner_collection_set_flag_recursive(), outliner_layer_or_collection_pointer_create(), ptr, RNA_id_pointer_create(), RNA_property_boolean_get_default(), RNA_property_boolean_set(), Collection::runtime, and STREQ.
Referenced by collection_isolate_exec(), outliner_collection_isolate_flag(), and outliner_collection_set_flag_recursive_fn().
|
static |
Definition at line 381 of file outliner_draw.cc.
References Collection::children, LayerCollection::collection, DEG_id_tag_update(), LayerCollection::flag, Collection::gobject, Collection::id, ID_RECALC_SYNC_TO_EVAL, LAYER_COLLECTION_EXCLUDE, LayerCollection::layer_collections, LISTBASE_FOREACH, outliner_base_or_object_pointer_create(), outliner_collection_set_flag_recursive(), outliner_layer_or_collection_pointer_create(), ptr, RNA_property_boolean_set(), and RNA_property_editable().
Referenced by outliner_collection_isolate_flag(), outliner_collection_set_flag_recursive(), and outliner_collection_set_flag_recursive_fn().
|
static |
Definition at line 612 of file outliner_draw.cc.
References BKE_main_collection_sync_remap(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_window(), data, DEG_relations_tag_update(), ELEM, wmWindow::eventstate, Collection::id, Scene::id, KM_CTRL, KM_SHIFT, wmEvent::modifier, outliner_collection_isolate_flag(), outliner_collection_set_flag_recursive(), outliner_collection_set_flag_recursive_fn(), outliner_layer_or_collection_pointer_create(), ptr, RNA_pointer_create_discrete(), RNA_property_boolean_get(), and RNA_struct_type_find_property().
Referenced by outliner_collection_set_flag_recursive_fn(), scenes__collection_set_flag_recursive_fn(), view_layer__collection_set_flag_recursive_fn(), and view_layer__layer_collection_set_flag_recursive_fn().
|
static |
Definition at line 627 of file outliner_tree.cc.
References BLI_addtail(), BLI_listbase_clear(), BLI_listbase_count(), blender::ed::outliner::tTreeSort::id, TreeStoreElem::id, ID_OB, blender::ed::outliner::TreeElement::idcode, blender::ed::outliner::tTreeSort::idcode, ListBase::last, LISTBASE_FOREACH, MEM_freeN(), MEM_malloc_arrayN(), blender::ed::outliner::tTreeSort::name, outliner_collections_children_sort(), blender::ed::outliner::tTreeSort::te, treesort_child_not_in_collection(), TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_build_tree(), and outliner_collections_children_sort().
|
static |
Definition at line 1609 of file outliner_collections.cc.
References BKE_id_is_editable(), BKE_report(), BLI_freelistN(), C, Collection::color_tag, CTX_data_main(), CTX_data_scene(), CTX_wm_space_outliner(), Collection::id, LISTBASE_FOREACH, Scene::master_collection, NC_SCENE, ND_LAYER_CONTENT, OPERATOR_FINISHED, outliner_collect_selected_collections(), outliner_collection_from_tree_element(), outliner_tree_traverse(), wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_WARNING, blender::ed::outliner::IDsSelectedData::selected_array, SpaceOutliner::tree, TSE_SELECTED, and WM_event_add_notifier().
Referenced by OUTLINER_OT_collection_color_tag_set().
|
static |
Definition at line 3386 of file outliner_tools.cc.
References C, constraint_fn(), CTX_wm_space_outliner(), ED_undo_push(), OL_CONSTRAINTOP_DELETE, OPERATOR_FINISHED, outliner_cleanup_tree(), outliner_do_data_operation(), wmOperator::ptr, RNA_enum_get(), and TSE_CONSTRAINT.
Referenced by OUTLINER_OT_constraint_operation().
|
static |
Definition at line 18 of file outliner_context.cc.
References blender::ed::outliner::tree_iterator::all(), Collection, CTX_data_id_list_add(), CTX_data_type_set(), ELEM, TreeStoreElem::flag, TreeStoreElem::id, result, TREESTORE, TSE_LAYER_COLLECTION, TSE_SELECTED, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_main_region_context().
|
static |
Definition at line 93 of file outliner_edit.cc.
References BKE_tempdir_base(), BLI_path_join, and FILE_MAX.
Referenced by outliner_id_copy_exec(), and outliner_id_paste_exec().
|
static |
Definition at line 1207 of file outliner_edit.cc.
References LISTBASE_FOREACH, and outliner_count_levels().
Referenced by outliner_count_levels(), and outliner_one_level_exec().
Definition at line 382 of file space_outliner.cc.
References ARegion::alignment, BKE_area_region_new(), BLI_addtail(), SpaceOutliner::filter, SpaceOutliner::filter_id_type, SpaceOutliner::flag, ID_GR, MEM_callocN(), SpaceOutliner::outlinevis, SpaceOutliner::regionbase, ARegion::regiontype, RGN_ALIGN_BOTTOM, RGN_ALIGN_TOP, RGN_TYPE_HEADER, RGN_TYPE_WINDOW, SpaceOutliner::show_restrict_flags, SO_FILTER_NO_VIEW_LAYERS, SO_MODE_COLUMN, SO_RESTRICT_ENABLE, SO_RESTRICT_HIDE, SO_RESTRICT_RENDER, SO_SYNC_SELECT, SO_VIEW_LAYER, SPACE_OUTLINER, SpaceOutliner::spacetype, SpaceOutliner::sync_select_dirty, U, USER_HEADER_BOTTOM, and WM_OUTLINER_SYNC_SELECT_FROM_ALL.
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 3993 of file outliner_draw.cc.
References max_ii(), OL_RNA_COL_SPACEX, OL_RNA_COLX, and outliner_data_api_buttons_start_x().
Referenced by draw_outliner(), outliner_data_api_buttons_start_x(), and outliner_width().
|
static |
Definition at line 184 of file outliner_dragdrop.cc.
References blender::ed::outliner::TreeElement::parent.
Referenced by datastack_drop_init(), and outliner_drop_insert_collection_find().
|
static |
Definition at line 3561 of file outliner_tools.cc.
References C, CTX_wm_space_outliner(), get_target_element(), OL_DOP_DESELECT, OL_DOP_HIDE, OL_DOP_SELECT, OL_DOP_SELECT_LINKED, OL_DOP_UNHIDE, rna_enum_dummy_DEFAULT_items, rna_enum_dummy_NULL_items, TREESTORE, TSE_RNA_STRUCT, and TreeStoreElem::type.
Referenced by OUTLINER_OT_data_operation().
|
static |
Definition at line 3494 of file outliner_tools.cc.
References BKE_report(), bone_fn(), C, CTX_data_sequencer_scene(), CTX_wm_space_outliner(), data_select_linked_fn(), ebone_fn(), ED_undo_push(), get_element_operation_type(), get_target_element(), gpencil_layer_fn(), grease_pencil_node_fn(), NA_SELECTED, NC_GPENCIL, NC_OBJECT, NC_SCENE, ND_DATA, ND_POSE, ND_SEQUENCER, OL_DOP_SELECT_LINKED, OPERATOR_FINISHED, outliner_do_data_operation(), pchan_fn(), wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_WARNING, sequence_fn(), TSE_BONE, TSE_EBONE, TSE_GP_LAYER, TSE_GREASE_PENCIL_NODE, TSE_POSE_CHANNEL, TSE_RNA_STRUCT, TSE_STRIP, and WM_event_add_notifier().
Referenced by OUTLINER_OT_data_operation().
|
static |
Definition at line 3476 of file outliner_tools.cc.
References C, CTX_wm_space_outliner(), ED_operator_outliner_active(), ELEM, get_element_operation_type(), get_target_element(), TSE_BONE, TSE_EBONE, TSE_GP_LAYER, TSE_POSE_CHANNEL, TSE_RNA_STRUCT, and TSE_STRIP.
Referenced by OUTLINER_OT_data_operation().
|
static |
Definition at line 536 of file space_outliner.cc.
References BKE_area_find_region_type(), ED_region_tag_redraw_no_rebuild(), ListBase::first, outliner_flag_set(), RGN_TYPE_WINDOW, ScrArea::spacedata, and TSE_HIGHLIGHTED_ANY.
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 2663 of file outliner_tools.cc.
References active, BKE_main_ensure_invariants(), BKE_main_id_tag_all(), BKE_view_layer_active_base_get(), BKE_view_layer_synced_ensure(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_message_bus(), CTX_wm_space_outliner(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_outliner_select_sync_from_object_tag(), Scene::id, ID_RECALC_HIERARCHY, ID_RECALC_SELECT, ID_RECALC_SYNC_TO_EVAL, 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, OPERATOR_FINISHED, outliner_batch_delete_object_hierarchy(), outliner_cleanup_tree(), outliner_collect_objects_to_delete(), outliner_collection_delete(), outliner_do_object_delete(), outliner_object_delete_fn(), outliner_tree_traverse(), wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), SpaceOutliner::tree, TSE_SELECTED, WM_event_add_notifier(), and WM_msg_publish_rna_prop.
Referenced by OUTLINER_OT_delete().
|
static |
Definition at line 2321 of file outliner_tools.cc.
References blender::ed::outliner::tree_iterator::all_open(), TreeStoreElem::flag, TREESTORE, TSE_SELECTED, and TreeStoreElem::type.
Referenced by outliner_animdata_operation_exec(), outliner_constraint_operation_exec(), outliner_data_operation_exec(), and outliner_modifier_operation_exec().
|
static |
Definition at line 3149 of file outliner_tools.cc.
References blender::ed::outliner::tree_iterator::all_open(), TreeStoreElem::flag, blender::ed::outliner::TreeElement::parent, TREESTORE, TSE_SELECTED, and TreeStoreElem::type.
Referenced by outliner_action_set_exec().
|
static |
Definition at line 544 of file outliner_tools.cc.
References blender::ed::outliner::tree_iterator::all_open(), C, TreeStoreElem::flag, blender::ed::outliner::TreeElement::idcode, blender::ed::outliner::TreeElement::parent, TREESTORE, TSE_LAYER_COLLECTION, TSE_SELECTED, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_id_operation_exec(), outliner_lib_operation_exec(), and outliner_object_operation_exec().
|
static |
Definition at line 621 of file outliner_tools.cc.
References C, element, LISTBASE_FOREACH_MUTABLE, outliner_do_libdata_operation_selection_set(), outliner_do_libdata_operation_selection_set_element(), and TREESTORE.
Referenced by outliner_do_libdata_operation_selection_set(), outliner_do_libdata_operation_selection_set(), and outliner_liboverride_operation_exec().
|
static |
Definition at line 651 of file outliner_tools.cc.
References C, outliner_do_libdata_operation_selection_set(), outliner_do_libdata_operation_selection_set_element(), outliner_find_element_with_flag(), blender::ed::outliner::TreeElement::subtree, SpaceOutliner::tree, TREESTORE, and TSE_ACTIVE.
|
static |
Definition at line 592 of file outliner_tools.cc.
References C, ELEM, element, TreeStoreElem::flag, OUTLINER_LIB_LIB_SELECTIONSET_CONTENT, OUTLINER_LIB_LIB_SELECTIONSET_SELECTED_AND_CONTENT, OUTLINER_LIB_SELECTIONSET_SELECTED, TREESTORE, TSE_LAYER_COLLECTION, TSE_SELECTED, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_do_libdata_operation_selection_set(), and outliner_do_libdata_operation_selection_set().
|
static |
Definition at line 2604 of file outliner_tools.cc.
References C.
Referenced by outliner_delete_exec().
| void blender::ed::outliner::outliner_do_object_operation | ( | bContext * | C, |
| ReportList * | reports, | ||
| Scene * | scene, | ||
| SpaceOutliner * | space_outliner, | ||
| ListBase * | lb, | ||
| outliner_operation_fn | operation_fn ) |
Definition at line 1711 of file outliner_tools.cc.
References C, and outliner_do_object_operation_ex().
Referenced by outliner_object_operation_exec().
| void blender::ed::outliner::outliner_do_object_operation_ex | ( | bContext * | C, |
| ReportList * | reports, | ||
| Scene * | scene, | ||
| SpaceOutliner * | space_outliner, | ||
| ListBase * | lb, | ||
| outliner_operation_fn | operation_fn, | ||
| bool | recurse_selected ) |
| recurse_selected | Set to false for operations which are already recursively operating on their children. |
Definition at line 1677 of file outliner_tools.cc.
References C, CTX_data_main(), CTX_wm_window(), TreeStoreElem::flag, ID_OB, ID_SCE, LISTBASE_FOREACH, outliner_do_object_operation_ex(), outliner_search_back(), TREESTORE, TSE_SELECTED, TSE_SOME_ID, TSELEM_OPEN, TreeStoreElem::type, and WM_window_set_active_scene().
Referenced by outliner_do_object_operation(), outliner_do_object_operation_ex(), and outliner_object_operation_exec().
|
static |
Definition at line 695 of file outliner_tools.cc.
References blender::ed::outliner::tree_iterator::all_open(), C, TreeStoreElem::flag, ID_SCE, blender::ed::outliner::TreeElement::idcode, TREESTORE, TSE_SELECTED, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_scene_operation_exec().
|
static |
Definition at line 3057 of file outliner_draw.cc.
References BLI_rctf_init(), GPU_blend(), GPU_BLEND_ALPHA, outliner_draw_active_indicator(), UI_CNR_ALL, UI_draw_roundbox_aa(), UI_draw_roundbox_corner_set(), UI_UNIT_X, and UI_UNIT_Y.
Referenced by outliner_draw_active_indicator(), outliner_draw_iconrow_doit(), and outliner_draw_tree_element().
|
static |
Definition at line 2373 of file outliner_draw.cc.
References blender::ed::outliner::AbstractTreeElement::get_warning(), blender::StringRefBase::is_empty(), outliner_draw_get_warning_tree_element(), outliner_draw_get_warning_tree_element_subtree(), blender::ed::outliner::TreeElement::store_elem, tree_element_cast(), and TSELEM_OPEN.
Referenced by outliner_draw_get_warning_tree_element(), and outliner_draw_warning_column().
|
static |
Definition at line 2354 of file outliner_draw.cc.
References blender::ed::outliner::AbstractTreeElement::get_warning(), blender::StringRefBase::is_empty(), LISTBASE_FOREACH, outliner_draw_get_warning_tree_element_subtree(), blender::ed::outliner::TreeElement::subtree, and tree_element_cast().
Referenced by outliner_draw_get_warning_tree_element(), and outliner_draw_get_warning_tree_element_subtree().
|
static |
Definition at line 3603 of file outliner_draw.cc.
References GPU_PRIM_LINES, immBegin(), immEnd(), immUniform1f(), immVertex2f(), outliner_draw_hierarchy_line(), pos, UI_UNIT_Y, and x.
Referenced by outliner_draw_hierarchy_line(), and outliner_draw_hierarchy_lines_recursive().
|
static |
Definition at line 3695 of file outliner_draw.cc.
References col, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_line_width(), GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR, GPU_vertformat_attr_add(), GPU_viewport_size_get_f(), immBindBuiltinProgram(), immUnbindProgram(), immUniform1f(), immUniform1i(), immUniform2f(), immVertexFormat(), outliner_draw_hierarchy_lines(), outliner_draw_hierarchy_lines_recursive(), pos, TH_BACK, TH_TEXT, UI_GetThemeColorBlend3ubv(), and UI_SCALE_FAC.
Referenced by outliner_draw_hierarchy_lines(), and outliner_draw_tree().
|
static |
Definition at line 3620 of file outliner_draw.cc.
References blender::bke::greasepencil::TreeNode::as_group(), BLI_listbase_is_empty(), col, bTheme::collection_color, COLLECTION_COLOR_NONE, ThemeCollectionColor::color, Collection::color_tag, copy_v4_v4_uchar(), element_should_draw_faded(), ID_OB, immUniformColor4ubv(), blender::bke::greasepencil::TreeNode::is_group(), LISTBASE_FOREACH, blender::bke::greasepencil::LayerGroup::num_direct_nodes(), outliner_collection_from_tree_element(), outliner_draw_hierarchy_line(), outliner_draw_hierarchy_lines_recursive(), pos, subtree_contains_object(), tree_element_cast(), TREESTORE, TSE_GREASE_PENCIL_NODE, TSE_LAYER_COLLECTION, TSE_SOME_ID, TSELEM_OPEN, TreeStoreElem::type, UI_GetTheme(), UI_UNIT_X, UI_UNIT_Y, and y.
Referenced by outliner_draw_hierarchy_lines(), and outliner_draw_hierarchy_lines_recursive().
|
static |
Definition at line 3846 of file outliner_draw.cc.
References GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, outliner_draw_highlights(), TH_MATCH, TH_SELECT_ACTIVE, TH_SELECT_HIGHLIGHT, UI_GetThemeColor3fv(), and UI_GetThemeColor4fv().
|
static |
Definition at line 3766 of file outliner_draw.cc.
References blender::ed::outliner::tree_iterator::all_open(), BLI_rctf_init(), View2D::cur, TreeStoreElem::flag, outliner_draw_highlights(), SpaceOutliner::outlinevis, SpaceOutliner::search_string, SEARCHING_OUTLINER, SO_DATA_API, TH_BACK, TH_SELECT_ACTIVE, TH_TEXT, TREESTORE, TSE_ACTIVE, TSE_DRAG_AFTER, TSE_DRAG_ANY, TSE_DRAG_BEFORE, TSE_HIGHLIGHTED, TSE_SEARCHMATCH, TSE_SELECTED, U, UI_CNR_ALL, UI_draw_roundbox_4fv(), UI_draw_roundbox_4fv_ex(), UI_draw_roundbox_corner_set(), UI_GetThemeColorBlend4f(), UI_GetThemeColorShade4fv(), UI_SCALE_FAC, UI_UNIT_X, UI_UNIT_Y, ARegion::v2d, rctf::xmax, rctf::ymax, and rctf::ymin.
Referenced by outliner_draw_highlights(), outliner_draw_highlights(), and outliner_draw_tree().
|
static |
Definition at line 3154 of file outliner_draw.cc.
References active, blender::ed::outliner::MergedIconRow::active, ELEM, i, TreeStoreElem::id, ID_OB, INDEX_ID_MAX, INDEX_ID_OB, is_object_data_in_editmode(), LISTBASE_FOREACH, blender::ed::outliner::MergedIconRow::num_elements, OB_TYPE_MAX, blender::ed::outliner::TreeViewContext::obact, OL_DRAWSEL_ACTIVE, OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, outliner_draw_iconrow(), outliner_draw_iconrow_doit(), TE_ICONROW, TE_ICONROW_MERGED, blender::ed::outliner::MergedIconRow::tree_element, tree_element_active_state_get(), tree_element_cast(), tree_element_id_type_to_index(), tree_element_type_active_state_get(), TREESTORE, TSE_ACTION_SLOT, TSE_BONE, TSE_BONE_COLLECTION, TSE_DEFGROUP, TSE_EBONE, TSE_GP_LAYER, TSE_GREASE_PENCIL_NODE, TSE_ID_BASE, TSE_LAYER_COLLECTION, TSE_LIBRARY_OVERRIDE, TSE_LIBRARY_OVERRIDE_BASE, TSE_LIBRARY_OVERRIDE_OPERATION, TSE_NLA_TRACK, TSE_POSE_CHANNEL, TSE_R_LAYER, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_draw_iconrow(), and outliner_draw_tree_element().
|
static |
Definition at line 3075 of file outliner_draw.cc.
References active, blender::ed::outliner::TreeElement::flag, TreeStoreElem::flag, OL_DRAWSEL_ACTIVE, OL_DRAWSEL_NONE, outliner_draw_active_indicator(), outliner_draw_iconrow_doit(), outliner_icon_background_colors(), TE_ICONROW, TE_ICONROW_MERGED, TH_EDITED_OBJECT, TREESTORE, TSE_HIGHLIGHTED_ICON, tselem_draw_icon(), UI_GetThemeColor4fv(), UI_UNIT_X, UI_UNIT_Y, blender::ed::outliner::TreeElement::xend, blender::ed::outliner::TreeElement::xs, and blender::ed::outliner::TreeElement::ys.
Referenced by outliner_draw_iconrow(), and outliner_draw_iconrow_doit().
|
static |
Definition at line 2341 of file outliner_draw.cc.
References blender::ed::outliner::tree_iterator::all_open(), Object::mode, OB_MODE_OBJECT, blender::ed::outliner::TreeViewContext::obact, ToolSettings::object_flag, outliner_draw_mode_column(), outliner_draw_mode_column_toggle(), SCE_OBJECT_MODE_LOCK, blender::ed::outliner::TreeViewContext::scene, and Scene::toolsettings.
Referenced by draw_outliner(), and outliner_draw_mode_column().
|
static |
Definition at line 2247 of file outliner_draw.cc.
References BKE_object_is_in_editmode(), But, Object::data, IDOverrideLibrary::flag, IconToggle, Object::id, TreeStoreElem::id, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY_REAL, ID_OB, blender::ed::outliner::TreeElement::idcode, LIBOVERRIDE_FLAG_SYSTEM_DEFINED, Object::mode, blender::ui::NoneOrStatus, blender::ed::outliner::TreeViewContext::ob_edit, OB_MODE_OBJECT, OB_MODE_PARTICLE_EDIT, blender::ed::outliner::TreeViewContext::ob_pose, blender::ed::outliner::TreeViewContext::obact, outliner_draw_mode_column_toggle(), outliner_mode_toggle_fn(), ID::override_library, psys_get_current(), TIP_, TREESTORE, TSE_SOME_ID, Object::type, TreeStoreElem::type, UI_block_emboss_set(), UI_but_disable(), UI_BUT_DISABLED, UI_BUT_DRAG_LOCK, UI_but_flag_disable(), UI_but_flag_enable(), UI_but_func_set(), UI_BUT_UNDO, UI_icon_from_object_mode(), UI_SCALE_FAC, UI_UNIT_X, UI_UNIT_Y, uiDefIconBut(), and blender::ed::outliner::TreeElement::ys.
Referenced by outliner_draw_mode_column(), and outliner_draw_mode_column_toggle().
|
static |
Definition at line 2009 of file outliner_draw.cc.
References BKE_lib_override_library_is_system_defined(), But, blender::wm::ExecDefault, blender::ed::outliner::TreeElementID::get_ID(), ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, LISTBASE_FOREACH, outliner_but_identity_cmp_context_id_fn(), outliner_draw_overrides_restrictbuts(), outliner_is_element_in_view(), RNA_id_pointer_create(), tree_element_cast(), TREESTORE, TSELEM_OPEN, UI_but_context_int_set(), UI_but_context_ptr_set(), UI_BUT_DRAG_LOCK, UI_but_flag_enable(), UI_but_func_identity_compare_set(), UI_UNIT_X, UI_UNIT_Y, uiDefIconButO(), ARegion::v2d, and x.
Referenced by draw_outliner(), and outliner_draw_overrides_restrictbuts().
|
static |
Definition at line 1905 of file outliner_draw.cc.
References blender::StringRefBase::is_empty(), blender::ed::outliner::TreeElementOverridesProperty::is_rna_path_valid, Label, LISTBASE_FOREACH, OL_RNA_COL_SIZEX, outliner_draw_overrides_rna_buts(), outliner_is_element_in_view(), blender::ed::outliner::TreeElementOverridesProperty::override_rna_prop, blender::ed::outliner::TreeElementOverridesProperty::override_rna_ptr, PROP_ENUM, ptr, blender::ed::outliner::TreeElementOverridesProperty::rna_path, RNA_property_type(), round_fl_to_int(), tree_element_cast(), TREESTORE, TSELEM_OPEN, U, UI_but_flag_enable(), UI_BUT_REDALERT, UI_SCALE_FAC, UI_UNIT_Y, uiDefAutoButR(), uiDefAutoButsArrayR(), uiDefBut(), ARegion::v2d, and x.
Referenced by draw_outliner(), and outliner_draw_overrides_rna_buts().
|
static |
Definition at line 1115 of file outliner_draw.cc.
References blender::ed::outliner::RestrictProperties::base_hide_viewport, blender::ed::outliner::RestrictPropertiesActive::base_hide_viewport, BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), BLI_assert, bPoseChannel::bone, BONE_HIDDEN_A, blender::ed::outliner::RestrictProperties::bone_hide_viewport, BONE_UNSELECTABLE, 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, View2D::cur, Object::data, ELEM, bGPDlayer::flag, Bone::flag, EditBone::flag, ViewLayer::flag, GP_LAYER_HIDE, GP_LAYER_LOCKED, IconToggle, IconToggleN, bArmature::id, Object::id, Scene::id, TreeStoreElem::id, ID_OB, blender::ed::outliner::RestrictProperties::initialized, blender::bke::greasepencil::TreeNode::is_group(), blender::bke::greasepencil::TreeNode::is_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, LISTBASE_FOREACH, 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, 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, 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(), SpaceOutliner::outlinevis, blender::bke::greasepencil::TreeNode::parent_group(), ptr, 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(), RNA_id_pointer_create(), RNA_pointer_create_discrete(), RNA_struct_type_find_property(), scenes__collection_set_flag_recursive_fn(), select, SpaceOutliner::show_restrict_flags, SO_RESTRICT_ENABLE, SO_RESTRICT_HIDE, SO_RESTRICT_HOLDOUT, SO_RESTRICT_INDIRECT_ONLY, SO_RESTRICT_RENDER, SO_RESTRICT_SELECT, SO_RESTRICT_VIEWPORT, SO_SCENES, SO_VIEW_LAYER, TE_CHILD_NOT_IN_COLLECTION, TIP_, tree_element_cast(), TREESTORE, TSE_CONSTRAINT, TSE_EBONE, TSE_GP_LAYER, TSE_GREASE_PENCIL_NODE, TSE_LAYER_COLLECTION, TSE_MODIFIER, TSE_POSE_CHANNEL, TSE_R_LAYER, TSE_SOME_ID, TSELEM_OPEN, TreeStoreElem::type, UI_BUT_DRAG_LOCK, UI_but_drawflag_enable(), UI_but_flag_enable(), UI_but_func_set(), UI_BUT_ICON_REVERSE, UI_BUT_INACTIVE, UI_UNIT_X, UI_UNIT_Y, uiDefIconButBitI(), uiDefIconButBitS(), uiDefIconButR_prop(), ARegion::v2d, V2D_SCROLL_WIDTH, view_layer__collection_set_flag_recursive_fn(), view_layer__layer_collection_set_flag_recursive_fn(), VIEW_LAYER_RENDER, rctf::xmax, rctf::ymax, and rctf::ymin.
Referenced by draw_outliner(), and outliner_draw_restrictbuts().
|
static |
Definition at line 2086 of file outliner_draw.cc.
References blender::ed::outliner::tree_iterator::all_open(), blender::ed::outliner::TreeElement::index, OL_RNA_COL_SIZEX, outliner_draw_rnabuts(), outliner_is_element_in_view(), PROP_ENUM, PROP_POINTER, ptr, RNA_property_type(), tree_element_cast(), TREESTORE, TSELEM_OPEN, UI_BUT_DISABLED, UI_but_flag_enable(), UI_UNIT_Y, uiDefAutoButR(), ARegion::v2d, and blender::ed::outliner::TreeElement::ys.
Referenced by draw_outliner(), and outliner_draw_rnabuts().
|
static |
Definition at line 2065 of file outliner_draw.cc.
References View2D::cur, GPU_line_width(), GPU_PRIM_LINES, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformThemeColorShadeAlpha(), immVertex2f(), immVertexFormat(), outliner_draw_separator(), pos, TH_BACK, ARegion::v2d, x, rctf::ymax, and rctf::ymin.
Referenced by draw_outliner(), and outliner_draw_separator().
|
static |
Definition at line 3724 of file outliner_draw.cc.
References View2D::cur, GPU_PRIM_LINES, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immThemeColorShadeAlpha(), immUnbindProgram(), immVertex2f(), immVertexFormat(), LISTBASE_FOREACH, outliner_draw_struct_marks(), pos, TH_BACK, TREESTORE, TSE_RNA_STRUCT, TSELEM_OPEN, TreeStoreElem::type, UI_UNIT_Y, ARegion::v2d, and rctf::xmax.
Referenced by outliner_draw_struct_marks(), and outliner_draw_tree().
|
static |
Definition at line 3873 of file outliner_draw.cc.
References BLI_rcti_size_x(), CLAMP_MIN, SpaceOutliner::filter, GPU_blend(), GPU_BLEND_ALPHA, GPU_scissor(), GPU_scissor_get(), LISTBASE_FOREACH, View2D::mask, OL_Y_OFFSET, outliner_draw_hierarchy_lines(), outliner_draw_highlights(), outliner_draw_struct_marks(), outliner_draw_tree(), outliner_draw_tree_element(), SpaceOutliner::outlinevis, SO_DATA_API, SO_FILTER_NO_COLLECTION, SO_FILTER_NO_VIEW_LAYERS, SO_VIEW_LAYER, TE_DRAGGING, View2D::tot, SpaceOutliner::tree, U, UI_FSTYLE_WIDGET, UI_UNIT_X, UI_UNIT_Y, UNPACK4, ARegion::v2d, ARegion::winy, and rctf::ymax.
Referenced by draw_outliner(), and outliner_draw_tree().
|
static |
Definition at line 3358 of file outliner_draw.cc.
References active, BASE_SELECTED, BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), BLI_listbase_is_empty(), View2D::cur, blender::ed::outliner::TreeElement::directdata, ELEM, element_should_draw_faded(), Collection::exporters, ListBase::first, Base::flag, blender::ed::outliner::TreeElement::flag, TreeStoreElem::flag, blender::ed::outliner::TreeElementRNACommon::get_pointer_rna(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, TreeStoreElem::id, ID_OB, ID_SCE, blender::ed::outliner::TreeElement::idcode, is_object_data_in_editmode(), LISTBASE_FOREACH, blender::ed::outliner::TreeElement::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(), RNA_struct_is_ID(), blender::ed::outliner::TreeViewContext::scene, blender::ed::outliner::TreeElement::subtree, TE_ACTIVE, TE_DRAGGING, TE_PRETEND_HAS_CHILDREN, TH_ACTIVE_OBJECT, TH_BACK, TH_EDITED_OBJECT, TH_SELECTED_OBJECT, TH_TEXT, TH_TEXT_HI, tree_element_active_state_get(), tree_element_cast(), tree_element_type_active_state_get(), TREESTORE, TSE_HIGHLIGHTED_ICON, TSE_ID_BASE, TSE_LAYER_COLLECTION, TSE_LINKED_NODE_TREE, TSE_R_LAYER, TSE_RNA_ARRAY_ELEM, TSE_RNA_PROPERTY, TSE_SOME_ID, TSE_TEXTBUT, TSE_VIEW_COLLECTION_BASE, tselem_draw_icon(), TSELEM_OPEN, PointerRNA::type, TreeStoreElem::type, UI_fontstyle_draw_simple(), UI_fontstyle_string_width(), UI_GetThemeColor3ubv(), UI_GetThemeColor4fv(), UI_GetThemeColor4ubv(), UI_GetThemeColorBlend3ubv(), UI_icon_draw_alpha(), UI_icon_from_library(), UI_UNIT_X, UI_UNIT_Y, ARegion::v2d, blender::ed::outliner::TreeViewContext::view_layer, blender::ed::outliner::TreeElement::xend, rctf::xmax, blender::ed::outliner::TreeElement::xs, rctf::ymin, and blender::ed::outliner::TreeElement::ys.
Referenced by outliner_draw_tree(), and outliner_draw_tree_element().
|
static |
Definition at line 1815 of file outliner_draw.cc.
References blender::ed::outliner::tree_iterator::all_open(), BLI_str_format_integer_unit(), But, View2D::cur, ID::flag, GS, IconToggle, TreeStoreElem::id, ID_FAKE_USERS, ID_FLAG_FAKEUSER, ID_IS_LINKED, ID_OB, ID_TAG_EXTRAUSER, ID::name, OL_TOG_USER_BUTS_USERS, outliner_draw_userbuts(), outliner_is_element_in_view(), restrictbutton_id_user_toggle(), ID::tag, TH_REDALERT, TIP_, TREESTORE, TSE_SOME_ID, TreeStoreElem::type, UI_BUT_DISABLED, UI_BUT_DRAG_LOCK, UI_but_flag_enable(), UI_but_func_set(), UI_but_icon_indicator_color_set(), UI_but_icon_indicator_set(), UI_GetThemeColor4ubv(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconButBitS(), ID::us, ARegion::v2d, rctf::xmax, and blender::ed::outliner::TreeElement::ys.
Referenced by draw_outliner(), and outliner_draw_userbuts().
|
static |
Definition at line 2420 of file outliner_draw.cc.
References blender::ed::outliner::tree_iterator::all_open(), blender::StringRefBase::is_empty(), outliner_draw_get_warning_tree_element(), outliner_draw_warning_column(), outliner_draw_warning_tree_element(), and blender::ed::outliner::TreeElement::ys.
Referenced by draw_outliner(), and outliner_draw_warning_column().
|
static |
Definition at line 2392 of file outliner_draw.cc.
References IconToggle, blender::ui::NoneOrStatus, outliner_draw_warning_tree_element(), SpaceOutliner::outlinevis, SO_SCENES, UI_block_emboss_set(), UI_but_flag_disable(), UI_BUT_UNDO, UI_UNIT_X, UI_UNIT_Y, and uiDefIconBut().
Referenced by outliner_draw_warning_column(), and outliner_draw_warning_tree_element().
|
static |
Definition at line 2027 of file outliner_edit.cc.
References CTX_wm_space_outliner(), do_outliner_drivers_editop(), DRIVERS_EDITMODE_ADD, NC_ANIMATION, ND_FCURVES_ORDER, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and WM_event_add_notifier().
Referenced by OUTLINER_OT_drivers_add_selected().
|
static |
Definition at line 2066 of file outliner_edit.cc.
References CTX_wm_space_outliner(), do_outliner_drivers_editop(), DRIVERS_EDITMODE_REMOVE, ND_KEYS, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and WM_event_add_notifier().
Referenced by OUTLINER_OT_drivers_delete_selected().
|
static |
Definition at line 93 of file outliner_dragdrop.cc.
References C, CTX_wm_region(), CTX_wm_space_outliner(), wmEvent::mval, outliner_dropzone_find(), UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by outliner_ID_drop_find(), parent_clear_poll(), parent_drop_invoke(), and parent_drop_poll().
|
static |
Definition at line 213 of file outliner_dragdrop.cc.
References C, COLLECTION_IS_MASTER, Collection::flag, is_collection_element(), outliner_collection_from_tree_element(), outliner_data_from_tree_element_and_parents(), outliner_drop_insert_find(), TE_INSERT_INTO, and xy.
Referenced by collection_drop_init().
|
static |
Definition at line 115 of file outliner_dragdrop.cc.
References BLI_assert_unreachable, BLI_listbase_is_empty(), C, CTX_wm_region(), CTX_wm_space_outliner(), ListBase::first, ListBase::last, outliner_find_item_at_y(), blender::ed::outliner::TreeElement::subtree, TE_INSERT_AFTER, TE_INSERT_BEFORE, TE_INSERT_INTO, SpaceOutliner::tree, TREESTORE, TSELEM_OPEN, UI_UNIT_Y, UI_view2d_region_to_view(), ARegion::v2d, ARegion::winrct, rcti::xmin, xy, rcti::ymin, and blender::ed::outliner::TreeElement::ys.
Referenced by datastack_drop_init(), and outliner_drop_insert_collection_find().
| void blender::ed::outliner::outliner_dropboxes | ( | ) |
Region drop-box definition.
Definition at line 1576 of file outliner_dragdrop.cc.
References collection_drop_poll(), collection_drop_tooltip(), datastack_drop_poll(), datastack_drop_tooltip(), material_drop_poll(), parent_clear_poll(), parent_drop_poll(), RGN_TYPE_WINDOW, scene_drop_poll(), SPACE_OUTLINER, WM_dropbox_add(), and WM_dropboxmap_find().
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 57 of file outliner_dragdrop.cc.
References ListBase::first, flag, LISTBASE_FOREACH, outliner_dropzone_element(), blender::ed::outliner::TreeElement::subtree, TREESTORE, TSE_CLOSED, UI_UNIT_X, UI_UNIT_Y, blender::ed::outliner::TreeElement::xend, blender::ed::outliner::TreeElement::xs, and blender::ed::outliner::TreeElement::ys.
Referenced by outliner_dropzone_element(), and outliner_dropzone_find().
|
static |
Definition at line 80 of file outliner_dragdrop.cc.
References LISTBASE_FOREACH, outliner_dropzone_element(), and SpaceOutliner::tree.
Referenced by outliner_drop_find().
Definition at line 435 of file space_outliner.cc.
References BLI_listbase_clear(), MEM_dupallocN(), SpaceOutliner::runtime, SpaceOutliner::sync_select_dirty, SpaceOutliner::tree, SpaceOutliner::treestore, and WM_OUTLINER_SYNC_SELECT_FROM_ALL.
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 2089 of file outliner_select.cc.
References blender::ed::outliner::TreeElement::next, outliner_element_find_successor_in_parents(), and blender::ed::outliner::TreeElement::parent.
Referenced by outliner_element_find_successor_in_parents(), and outliner_find_next_element().
|
static |
Definition at line 1003 of file outliner_tree.cc.
References ID_OB, blender::ed::outliner::TreeElement::idcode, outliner_is_collection_tree_element(), blender::ed::outliner::TreeElement::parent, TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_extract_children_from_subtree().
|
static |
Definition at line 868 of file outliner_tree.cc.
References BASE_ENABLED_AND_VISIBLE_IN_DEFAULT_VIEWPORT, BASE_SELECTABLE, BASE_SELECTED, BKE_view_layer_active_base_get(), BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), BLI_assert, blender::ed::outliner::TreeElement::directdata, Base::flag, TreeStoreElem::id, ID_OB, blender::ed::outliner::TreeElement::idcode, OB_ARMATURE, OB_CAMERA, OB_EMPTY, OB_GREASE_PENCIL, OB_LAMP, OB_MESH, Base::object, blender::ed::outliner::TreeElement::parent, SO_FILTER_ANY, SO_FILTER_NO_CHILDREN, SO_FILTER_NO_OB_ARMATURE, SO_FILTER_NO_OB_CAMERA, SO_FILTER_NO_OB_CONTENT, SO_FILTER_NO_OB_EMPTY, SO_FILTER_NO_OB_GREASE_PENCIL, SO_FILTER_NO_OB_LAMP, SO_FILTER_NO_OB_MESH, SO_FILTER_NO_OB_OTHERS, SO_FILTER_OB_STATE, SO_FILTER_OB_STATE_ACTIVE, SO_FILTER_OB_STATE_INVERSE, SO_FILTER_OB_STATE_SELECTABLE, SO_FILTER_OB_STATE_SELECTED, SO_FILTER_OB_STATE_VISIBLE, SO_FILTER_OB_TYPE, TREESTORE, TSE_SOME_ID, Object::type, and TreeStoreElem::type.
Referenced by outliner_filter_subtree().
|
static |
Definition at line 830 of file outliner_tree.cc.
References ED_outliner_support_searching(), SpaceOutliner::filter, SpaceOutliner::filter_state, SpaceOutliner::search_string, SO_FILTER_NO_OBJECT, SO_FILTER_OB_ACTIVE, SO_FILTER_OB_SELECTABLE, SO_FILTER_OB_SELECTED, SO_FILTER_OB_STATE, SO_FILTER_OB_STATE_ACTIVE, SO_FILTER_OB_STATE_SELECTABLE, SO_FILTER_OB_STATE_SELECTED, SO_FILTER_OB_STATE_VISIBLE, SO_FILTER_OB_TYPE, SO_FILTER_OB_VISIBLE, SO_FILTER_SEARCH, and SUPPORT_FILTER_OUTLINER.
Referenced by outliner_filter_tree(), and outliner_requires_rebuild_on_select_or_active_change().
|
static |
Definition at line 1019 of file outliner_tree.cc.
References BLI_insertlinkafter(), BLI_remlink(), element, outliner_element_is_collection_or_object(), outliner_free_tree_element(), blender::ed::outliner::TreeElement::parent, and blender::ed::outliner::TreeElement::prev.
Referenced by outliner_filter_subtree().
|
static |
Definition at line 987 of file outliner_tree.cc.
References blender::ed::outliner::TreeElement::name, name, and SO_FIND_CASE_SENSITIVE.
Referenced by outliner_filter_subtree().
|
static |
Definition at line 1044 of file outliner_tree.cc.
References BLI_listbase_is_empty(), ListBase::first, TreeStoreElem::flag, blender::ed::outliner::TreeElement::next, outliner_element_visible_get(), outliner_extract_children_from_subtree(), outliner_filter_has_name(), outliner_filter_subtree(), outliner_free_tree_element(), SpaceOutliner::search_flags, SO_FILTER_SEARCH, blender::ed::outliner::TreeElement::subtree, TREESTORE, TSE_SEARCHMATCH, and TSELEM_OPEN.
Referenced by outliner_filter_subtree(), and outliner_filter_tree().
|
static |
Definition at line 1106 of file outliner_tree.cc.
References BLI_strncpy_ensure_pad(), outliner_exclude_filter_get(), outliner_filter_subtree(), SpaceOutliner::search_flags, SpaceOutliner::search_string, SO_FIND_COMPLETE, and SpaceOutliner::tree.
Referenced by outliner_build_tree().
| TreeElement * blender::ed::outliner::outliner_find_editbone | ( | ListBase * | lb, |
| const EditBone * | ebone ) |
Definition at line 239 of file outliner_utils.cc.
References ELEM, LISTBASE_FOREACH, outliner_find_editbone(), TREESTORE, TSE_EBONE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_find_editbone(), and outliner_show_active_get_element().
| TreeElement * blender::ed::outliner::outliner_find_element_with_flag | ( | const ListBase * | lb, |
| short | flag ) |
Find first tree element in tree with matching tree-store flag.
Definition at line 378 of file outliner_utils.cc.
References flag, LISTBASE_FOREACH, outliner_find_element_with_flag(), and TREESTORE.
Referenced by do_outliner_range_select(), find_walk_select_start_element(), get_target_element(), outliner_do_libdata_operation_selection_set(), outliner_find_element_with_flag(), outliner_item_rename_find_active(), and outliner_main_region_context().
|
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 755 of file outliner_tree.cc.
References SpaceOutliner::filter, blender::ed::outliner::TreeElement::next, outliner_find_first_desired_element_at_y_recursive(), outliner_find_item_at_y(), SpaceOutliner::outlinevis, blender::ed::outliner::TreeElement::parent, SO_FILTER_NO_COLLECTION, SO_VIEW_LAYER, test_collection_callback(), test_object_callback(), SpaceOutliner::tree, UI_UNIT_Y, and blender::ed::outliner::TreeElement::ys.
Referenced by outliner_store_scrolling_position().
|
static |
See if TreeElement or any of its children pass the callback_test.
Definition at line 722 of file outliner_tree.cc.
References LISTBASE_FOREACH, outliner_find_first_desired_element_at_y_recursive(), blender::ed::outliner::TreeElement::store_elem, blender::ed::outliner::TreeElement::subtree, and TSELEM_OPEN.
Referenced by outliner_find_first_desired_element_at_y(), and outliner_find_first_desired_element_at_y_recursive().
|
static |
Definition at line 596 of file outliner_collections.cc.
References data, TRAVERSE_BREAK, TRAVERSE_CONTINUE, TREESTORE, TSE_LAYER_COLLECTION, TSE_R_LAYER, TSE_SCENE_COLLECTION_BASE, TSE_VIEW_COLLECTION_BASE, and TreeStoreElem::type.
Referenced by outliner_active_collection().
|
static |
Definition at line 487 of file outliner_collections.cc.
References data, blender::ed::outliner::TreeElement::directdata, TRAVERSE_BREAK, TRAVERSE_CONTINUE, TRAVERSE_SKIP_CHILDS, TREESTORE, TSE_LAYER_COLLECTION, TSE_R_LAYER, TSE_SCENE_COLLECTION_BASE, TSE_VIEW_COLLECTION_BASE, and TreeStoreElem::type.
Referenced by outliner_active_layer_collection().
| TreeElement * blender::ed::outliner::outliner_find_id | ( | SpaceOutliner * | space_outliner, |
| ListBase * | lb, | ||
| const ID * | id ) |
Find tree-store that refers to given ID.
Definition at line 190 of file outliner_utils.cc.
References blender::ed::outliner::TreeElementRNACommon::get_pointer_rna(), TreeStoreElem::id, LISTBASE_FOREACH, outliner_find_id(), ptr, RNA_struct_is_ID(), tree_element_cast(), TREESTORE, TSE_RNA_STRUCT, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_find_id(), outliner_show_active_get_element(), and parent_drop_set_parents().
| 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).
Definition at line 138 of file outliner_utils.cc.
References outliner_find_item_at_x_in_row_recursive(), outliner_item_is_co_over_icon(), TREESTORE, TSE_R_LAYER, TSELEM_OPEN, and TreeStoreElem::type.
Referenced by outliner_highlight_update_invoke(), and outliner_item_do_activate_from_cursor().
|
static |
Definition at line 107 of file outliner_utils.cc.
References ListBase::first, blender::ed::outliner::TreeElement::flag, blender::ed::outliner::TreeElement::next, outliner_find_item_at_x_in_row_recursive(), blender::ed::outliner::TreeElement::subtree, TE_ICONROW, TE_ICONROW_MERGED, and blender::ed::outliner::TreeElement::xs.
Referenced by outliner_find_item_at_x_in_row(), and outliner_find_item_at_x_in_row_recursive().
| TreeElement * blender::ed::outliner::outliner_find_item_at_y | ( | const SpaceOutliner * | space_outliner, |
| const ListBase * | tree, | ||
| float | view_co_y ) |
Try to find an item under y-coordinate view_co_y (view-space).
Definition at line 70 of file outliner_utils.cc.
References BLI_listbase_is_empty(), LISTBASE_FOREACH, blender::ed::outliner::TreeElement::next, outliner_find_item_at_y(), tree, TREESTORE, TSELEM_OPEN, UI_UNIT_Y, and blender::ed::outliner::TreeElement::ys.
Referenced by ED_outliner_give_base_under_cursor(), ED_outliner_give_rna_under_cursor(), outliner_box_select_invoke(), outliner_drop_insert_find(), outliner_find_first_desired_element_at_y(), outliner_find_item_at_y(), outliner_highlight_update_invoke(), outliner_item_do_activate_from_cursor(), outliner_item_drag_element_find(), outliner_item_openclose_invoke(), outliner_item_openclose_modal(), outliner_item_rename_find_hovered(), and outliner_operation_invoke().
|
static |
Definition at line 2104 of file outliner_select.cc.
References ListBase::first, blender::ed::outliner::TreeElement::next, outliner_element_find_successor_in_parents(), outliner_find_next_element(), blender::ed::outliner::TreeElement::subtree, TREESTORE, and TSELEM_OPEN.
Referenced by do_outliner_select_walk(), and outliner_find_next_element().
| bPoseChannel * blender::ed::outliner::outliner_find_parent_bone | ( | TreeElement * | te, |
| TreeElement ** | r_bone_te ) |
Definition at line 1221 of file outliner_select.cc.
References blender::ed::outliner::TreeElement::directdata, blender::ed::outliner::TreeElement::parent, TREESTORE, TSE_POSE_CHANNEL, and TreeStoreElem::type.
Referenced by outliner_item_drag_drop_invoke(), and outliner_set_properties_tab().
| TreeElement * blender::ed::outliner::outliner_find_parent_element | ( | ListBase * | lb, |
| TreeElement * | parent_te, | ||
| const TreeElement * | child_te ) |
Find parent element of te.
Definition at line 173 of file outliner_utils.cc.
References LISTBASE_FOREACH, and outliner_find_parent_element().
Referenced by collection_drop_invoke(), and outliner_find_parent_element().
| TreeElement * blender::ed::outliner::outliner_find_posechannel | ( | ListBase * | lb, |
| const bPoseChannel * | pchan ) |
Definition at line 221 of file outliner_utils.cc.
References ELEM, LISTBASE_FOREACH, outliner_find_posechannel(), TREESTORE, TSE_POSE_BASE, TSE_POSE_CHANNEL, and TreeStoreElem::type.
Referenced by outliner_find_posechannel(), and outliner_show_active_get_element().
|
static |
Definition at line 2075 of file outliner_select.cc.
References outliner_find_previous_element(), outliner_find_rightmost_visible_child(), blender::ed::outliner::TreeElement::parent, and blender::ed::outliner::TreeElement::prev.
Referenced by do_outliner_select_walk(), and outliner_find_previous_element().
|
static |
Definition at line 2060 of file outliner_select.cc.
References ListBase::last, outliner_find_rightmost_visible_child(), blender::ed::outliner::TreeElement::subtree, TREESTORE, and TSELEM_OPEN.
Referenced by outliner_find_previous_element(), and outliner_find_rightmost_visible_child().
| TreeElement * blender::ed::outliner::outliner_find_tree_element | ( | ListBase * | lb, |
| const TreeStoreElem * | store_elem ) |
Find specific item from the trees-tore.
Definition at line 159 of file outliner_utils.cc.
References LISTBASE_FOREACH, and outliner_find_tree_element().
Referenced by datastack_drop_reorder(), namebutton_fn(), outliner_find_tree_element(), outliner_mode_toggle_fn(), and outliner_restore_scrolling_position().
| bool blender::ed::outliner::outliner_flag_flip | ( | const ListBase & | lb, |
| const short | flag ) |
Definition at line 1266 of file outliner_edit.cc.
References blender::ed::outliner::tree_iterator::all(), flag, TreeStoreElem::flag, and TREESTORE.
| bool blender::ed::outliner::outliner_flag_flip | ( | const SpaceOutliner & | space_outliner, |
| const short | flag ) |
Definition at line 1261 of file outliner_edit.cc.
References flag, outliner_flag_flip(), and SpaceOutliner::tree.
Referenced by outliner_flag_flip(), and outliner_select_all_exec().
| int blender::ed::outliner::outliner_flag_is_any_test | ( | ListBase * | lb, |
| short | flag, | ||
| const int | curlevel ) |
Definition at line 1218 of file outliner_edit.cc.
References flag, TreeStoreElem::flag, LISTBASE_FOREACH, outliner_flag_is_any_test(), and TREESTORE.
Referenced by outliner_flag_is_any_test(), outliner_item_openclose_invoke(), outliner_one_level_exec(), outliner_select_all_exec(), and outliner_toggle_expanded_exec().
| bool blender::ed::outliner::outliner_flag_set | ( | const ListBase & | lb, |
| const short | flag, | ||
| const short | set ) |
Definition at line 1239 of file outliner_edit.cc.
References blender::ed::outliner::tree_iterator::all(), flag, TreeStoreElem::flag, and TREESTORE.
| bool blender::ed::outliner::outliner_flag_set | ( | const SpaceOutliner & | space_outliner, |
| short | flag, | ||
| short | set ) |
Set or unset flag for all outliner elements in lb and sub-trees.
Definition at line 1234 of file outliner_edit.cc.
References flag, outliner_flag_set(), and SpaceOutliner::tree.
Referenced by collection_drop_poll(), datastack_drop_poll(), do_outliner_range_select(), outliner_box_select_exec(), outliner_deactivate(), outliner_flag_set(), outliner_highlight_update_invoke(), outliner_item_do_activate_from_cursor(), outliner_item_drag_drop_invoke(), outliner_item_openclose(), outliner_item_select(), outliner_select_all_exec(), outliner_toggle_expanded_exec(), and parent_drop_poll().
|
static |
Definition at line 501 of file space_outliner.cc.
References BKE_LIB_FOREACHID_PROCESS_ID, BKE_lib_query_foreachid_process_flags_get(), BLI_mempool_iternew(), BLI_mempool_iterstep(), data, ID_FLAG_EMBEDDED_DATA, IDWALK_CB_EMBEDDED_NOT_OWNING, IDWALK_CB_NOP, IDWALK_CB_WRITEFILE_IGNORE, IDWALK_NO_ORIG_POINTERS_ACCESS, IDWALK_READONLY, SO_TREESTORE_REBUILD, SpaceOutliner::storeflag, SpaceOutliner::treestore, and TSE_IS_REAL_ID.
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 413 of file space_outliner.cc.
References BLI_mempool_destroy(), outliner_free_tree(), SpaceOutliner::runtime, SpaceOutliner::tree, and SpaceOutliner::treestore.
Referenced by ED_spacetype_outliner().
| void blender::ed::outliner::outliner_free_tree | ( | ListBase * | tree | ) |
Definition at line 150 of file outliner_tree.cc.
References element, LISTBASE_FOREACH_MUTABLE, outliner_free_tree_element(), and tree.
Referenced by outliner_build_tree(), outliner_cleanup_tree(), outliner_free(), and outliner_free_tree_element().
| void blender::ed::outliner::outliner_free_tree_element | ( | TreeElement * | element, |
| ListBase * | parent_subtree ) |
Free element and its sub-tree and remove its link in parent_subtree.
| parent_subtree | Sub-tree of the parent element, so the list containing element. |
Definition at line 163 of file outliner_tree.cc.
References BLI_assert, BLI_findindex(), BLI_remlink(), element, MEM_freeN(), outliner_free_tree(), and TE_FREE_NAME.
Referenced by blender::ed::outliner::TreeDisplayOverrideLibraryHierarchies::build_tree(), outliner_extract_children_from_subtree(), outliner_filter_subtree(), and outliner_free_tree().
|
static |
Definition at line 241 of file outliner_dragdrop.cc.
References BLI_findindex(), blender::ed::outliner::TreeElement::directdata, blender::ed::outliner::TreeElement::index, blender::ed::outliner::TreeElement::next, blender::ed::outliner::TreeElement::prev, TE_INSERT_AFTER, and TE_INSERT_BEFORE.
Referenced by datastack_drop_reorder().
| bool blender::ed::outliner::outliner_has_element_warnings | ( | const SpaceOutliner & | space_outliner | ) |
Definition at line 27 of file outliner_query.cc.
References LISTBASE_FOREACH, and SpaceOutliner::tree.
Referenced by draw_outliner().
|
static |
Definition at line 345 of file space_outliner.cc.
References C, and ED_region_header().
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 350 of file space_outliner.cc.
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 340 of file space_outliner.cc.
References ED_region_header_init().
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 352 of file space_outliner.cc.
References wmNotifier::action, wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), NA_ACTIVATED, NC_SCENE, NC_SPACE, ND_KEYINGSET, ND_LAYER, ND_SPACE_OUTLINER, NS_LAYER_COLLECTION, params, and wmNotifier::subtype.
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 1485 of file outliner_collections.cc.
References BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), LayerCollection::collection, COLLECTION_IS_MASTER, data, blender::ed::outliner::TreeElement::directdata, Collection::flag, TreeStoreElem::id, ID_OB, blender::ed::outliner::TreeElement::idcode, TRAVERSE_CONTINUE, TREESTORE, TSE_LAYER_COLLECTION, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_hide_exec().
|
static |
Definition at line 1517 of file outliner_collections.cc.
References BASE_HIDDEN, BKE_layer_collection_set_visible(), BKE_view_layer_need_resync_tag(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_outliner(), data, DEG_id_tag_update(), Base::flag, Scene::id, ID_RECALC_BASE_FLAGS, NC_SCENE, ND_LAYER_CONTENT, OPERATOR_FINISHED, outliner_hide_collect_data_to_edit(), outliner_tree_traverse(), SpaceOutliner::tree, TSE_SELECTED, and WM_main_add_notifier().
Referenced by OUTLINER_OT_hide().
|
static |
Definition at line 105 of file outliner_edit.cc.
References CTX_wm_manager(), CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw_no_rebuild(), ED_screen_area_active(), TreeStoreElem::flag, wmEvent::mval, OPERATOR_PASS_THROUGH, outliner_find_item_at_x_in_row(), outliner_find_item_at_y(), outliner_flag_set(), blender::ed::outliner::TreeElement::store_elem, SpaceOutliner::tree, TSE_DRAG_ANY, TSE_HIGHLIGHTED, TSE_HIGHLIGHTED_ANY, TSE_HIGHLIGHTED_ICON, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by OUTLINER_OT_highlight_update().
|
static |
Definition at line 3045 of file outliner_draw.cc.
References copy_v3_v3(), outliner_icon_background_colors(), TH_TEXT, and UI_GetThemeColor4fv().
Referenced by outliner_draw_iconrow_doit(), outliner_draw_tree_element(), and outliner_icon_background_colors().
|
static |
Definition at line 873 of file outliner_edit.cc.
References BKE_report(), BKE_reportf(), CTX_data_main(), CTX_wm_space_outliner(), FILE_MAX, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_copybuffer_filepath_get(), outliner_id_copy_tag(), wmOperator::reports, RPT_INFO, SpaceOutliner::tree, and blender::bke::blendfile::PartialWriteContext::write().
Referenced by OUTLINER_OT_id_copy().
|
static |
Definition at line 828 of file outliner_edit.cc.
References BKE_idtype_get_info_from_id(), BKE_reportf(), ELEM, TreeStoreElem::flag, IDTypeInfo::flags, TreeStoreElem::id, blender::bke::blendfile::PartialWriteContext::id_add(), ID_IS_PACKED, IDTYPE_FLAGS_NO_COPY, IDTYPE_FLAGS_NO_LIBLINKING, LISTBASE_FOREACH, ID::name, IDTypeInfo::name, outliner_id_copy_tag(), RPT_INFO, tree, TREESTORE, TSE_LAYER_COLLECTION, TSE_SELECTED, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_id_copy_exec(), and outliner_id_copy_tag().
|
static |
Definition at line 597 of file outliner_edit.cc.
References BKE_id_multi_tagged_delete(), BKE_main_id_tag_all(), BLI_assert, CTX_data_main(), CTX_wm_region(), CTX_wm_space_outliner(), ID_TAG_DOIT, LISTBASE_FOREACH, wmEvent::mval, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_id_delete_tag(), wmOperator::reports, SpaceOutliner::tree, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by OUTLINER_OT_id_delete().
|
static |
Definition at line 563 of file outliner_edit.cc.
References BKE_reportf(), TreeStoreElem::id, id_delete_tag(), ID_LI, blender::ed::outliner::TreeElement::idcode, LISTBASE_FOREACH, outliner_id_delete_tag(), RPT_ERROR_INVALID_INPUT, blender::ed::outliner::TreeElement::subtree, TREESTORE, UI_UNIT_Y, and blender::ed::outliner::TreeElement::ys.
Referenced by outliner_id_delete_invoke(), and outliner_id_delete_tag().
|
static |
Definition at line 103 of file outliner_dragdrop.cc.
References C, TreeStoreElem::id, blender::ed::outliner::TreeElement::idcode, outliner_drop_find(), TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by material_drop_invoke(), material_drop_poll(), scene_drop_invoke(), and scene_drop_poll().
|
static |
Definition at line 734 of file outliner_edit.cc.
References CTX_data_main(), ListBase::first, i, EnumPropertyItem::identifier, EnumPropertyItem::name, ptr, rna_enum_dummy_NULL_items, RNA_enum_get(), RNA_enum_item_add(), RNA_enum_item_end(), EnumPropertyItem::value, and which_libbase().
Referenced by OUTLINER_OT_id_remap().
|
static |
Definition at line 2859 of file outliner_tools.cc.
References BKE_id_multi_tagged_delete(), BKE_main_ensure_invariants(), BKE_main_id_tag_all(), BKE_report(), C, CTX_data_main(), CTX_data_scene(), CTX_wm_manager(), CTX_wm_space_outliner(), ED_outliner_select_sync_from_all_tag(), ED_undo_push(), get_element_operation_type(), get_target_element(), ID_AC, id_delete_tag_fn(), id_fake_user_clear_fn(), id_fake_user_set_fn(), ID_GR, id_local_fn(), ID_MA, id_remap_fn(), id_select_linked_fn(), ID_TAG_DOIT, ID_TE, 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, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_do_libdata_operation(), OUTLINER_IDOP_COPY, OUTLINER_IDOP_DELETE, OUTLINER_IDOP_FAKE_ADD, OUTLINER_IDOP_FAKE_CLEAR, OUTLINER_IDOP_LOCAL, OUTLINER_IDOP_PASTE, OUTLINER_IDOP_REMAP, OUTLINER_IDOP_RENAME, OUTLINER_IDOP_SELECT_LINKED, OUTLINER_IDOP_SINGLE, OUTLINER_IDOP_UNLINK, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_WARNING, singleuser_action_fn(), singleuser_world_fn(), unlink_action_fn(), unlink_collection_fn(), unlink_material_fn(), unlink_object_fn(), unlink_texture_fn(), unlink_world_fn(), WM_event_add_notifier(), and WM_operator_name_call().
Referenced by OUTLINER_OT_id_operation().
|
static |
Definition at line 2807 of file outliner_tools.cc.
References C, CTX_wm_space_outliner(), ELEM, get_target_element(), OUTLINER_IDOP_SINGLE, outliner_operation_tree_element_poll(), SpaceOutliner::outlinevis, SO_SCENES, SO_VIEW_LAYER, TREESTORE, and TSE_IS_REAL_ID.
Referenced by outliner_id_operation_itemf().
|
static |
Definition at line 2836 of file outliner_tools.cc.
References C, ED_operator_outliner_active(), outliner_id_operation_item_poll(), prop_id_op_types, ptr, RNA_enum_item_add(), and RNA_enum_item_end().
Referenced by OUTLINER_OT_id_operation().
|
static |
Definition at line 918 of file outliner_edit.cc.
References BKE_copybuffer_paste(), BKE_report(), BKE_reportf(), FILE_ACTIVE_COLLECTION, FILE_AUTOSELECT, FILE_MAX, flag, NC_WINDOW, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_copybuffer_filepath_get(), wmOperator::reports, RPT_INFO, and WM_event_add_notifier().
Referenced by OUTLINER_OT_id_paste().
|
static |
Definition at line 959 of file outliner_edit.cc.
References BKE_id_name(), BKE_idtype_idcode_is_linkable(), BKE_library_ID_is_indirectly_used(), BKE_report(), BKE_reportf(), CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, GS, ID_IS_LINKED, blender::wm::InvokeDefault, ID::name, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, ot, wmOperator::reports, ret, RNA_int_set(), RPT_ERROR_INVALID_INPUT, ID::session_uid, WM_operator_name_call_ptr(), WM_operator_properties_create_ptr(), WM_operator_properties_free(), and WM_operatortype_find().
Referenced by OUTLINER_OT_id_linked_relocate().
|
static |
Definition at line 454 of file space_outliner.cc.
References blender::bke::id::IDRemapper::apply(), BLI_mempool_iternew(), BLI_mempool_iterstep(), ED_area_tag_redraw(), TreeStoreElem::id, ID_REMAP_APPLY_DEFAULT, ID_REMAP_RESULT_SOURCE_NOT_MAPPABLE, ID_REMAP_RESULT_SOURCE_REMAPPED, ID_REMAP_RESULT_SOURCE_UNASSIGNED, ID_REMAP_RESULT_SOURCE_UNAVAILABLE, SpaceOutliner::runtime, SO_TREESTORE_REBUILD, SpaceOutliner::storeflag, blender::ed::outliner::SpaceOutliner_Runtime::tree_hash, and SpaceOutliner::treestore.
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 646 of file outliner_edit.cc.
References BKE_libblock_remap(), BKE_main_lib_objects_recalc_all(), BKE_reportf(), BLI_findlink(), CTX_data_main(), CTX_wm_space_outliner(), DEG_relations_tag_update(), GPU_materials_free(), GS, ID_IS_EDITABLE, ID_REMAP_SKIP_INDIRECT_USAGE, ID_REMAP_SKIP_NEVER_NULL_USAGE, ID::name, NC_WINDOW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR_INVALID_INPUT, RPT_WARNING, which_libbase(), and WM_event_add_notifier().
Referenced by OUTLINER_OT_id_remap().
|
static |
Definition at line 696 of file outliner_edit.cc.
References GS, TreeStoreElem::id, LISTBASE_FOREACH, ID::name, outliner_id_remap_find_tree_element(), wmOperator::ptr, RNA_enum_set(), RNA_enum_set_identifier(), tree, TREESTORE, TSE_SOME_ID, TreeStoreElem::type, UI_UNIT_Y, and y.
Referenced by outliner_id_remap_find_tree_element(), and outliner_id_remap_invoke().
|
static |
Definition at line 719 of file outliner_edit.cc.
References CTX_wm_region(), CTX_wm_space_outliner(), IFACE_, wmEvent::mval, outliner_id_remap_find_tree_element(), wmOperator::ptr, RNA_property_is_set(), RNA_struct_find_property(), SpaceOutliner::tree, UI_view2d_region_to_view(), ARegion::v2d, and WM_operator_props_dialog_popup().
Referenced by OUTLINER_OT_id_remap().
| const char * blender::ed::outliner::outliner_idcode_to_plural | ( | short | idcode | ) |
Definition at line 31 of file common.cc.
References BKE_idtype_idcode_to_name_plural(), RNA_property_ui_name(), and RNA_struct_type_find_property().
Referenced by blender::ed::outliner::TreeDisplayIDOrphans::build_tree().
|
static |
Definition at line 426 of file space_outliner.cc.
References ListBase::first, SpaceOutliner::runtime, and ScrArea::spacedata.
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 1760 of file outliner_select.cc.
References BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), C, CTX_data_scene(), CTX_data_view_layer(), Object::mode, OB_MODE_OBJECT, outliner_is_co_within_active_mode_column(), and outliner_is_co_within_mode_column().
Referenced by outliner_box_select_invoke(), outliner_is_co_within_active_mode_column(), and outliner_item_do_activate_from_cursor().
| bool blender::ed::outliner::outliner_is_co_within_mode_column | ( | SpaceOutliner * | space_outliner, |
| const float | view_mval[2] ) |
Definition at line 1751 of file outliner_select.cc.
References outliner_is_co_within_mode_column(), outliner_shows_mode_column(), and UI_UNIT_X.
Referenced by outliner_is_co_within_active_mode_column(), outliner_is_co_within_mode_column(), and outliner_item_drag_drop_invoke().
|
static |
Definition at line 1744 of file outliner_select.cc.
References View2D::cur, outliner_is_co_within_restrict_columns(), outliner_right_columns_width(), ARegion::v2d, and rctf::xmax.
Referenced by outliner_is_co_within_restrict_columns(), and outliner_item_do_activate_from_cursor().
| bool blender::ed::outliner::outliner_is_collection_tree_element | ( | const TreeElement * | te | ) |
Definition at line 50 of file outliner_collections.cc.
References ELEM, ID_GR, blender::ed::outliner::TreeElement::idcode, TREESTORE, TSE_LAYER_COLLECTION, TSE_SCENE_COLLECTION_BASE, TSE_SOME_ID, TSE_VIEW_COLLECTION_BASE, and TreeStoreElem::type.
Referenced by collection_drop_tooltip(), do_item_rename(), is_collection_element(), outliner_collect_objects_to_delete(), outliner_collect_selected_collections(), outliner_collect_selected_objects(), outliner_collect_selected_parent_collections(), outliner_draw_restrictbuts(), outliner_element_is_collection_or_object(), outliner_item_drag_drop_invoke(), test_collection_callback(), and tselem_draw_icon().
| bool blender::ed::outliner::outliner_is_element_in_view | ( | const TreeElement * | te, |
| const View2D * | v2d ) |
Check if the element is displayed within the view bounds. Doesn't check if all parents are open/uncollapsed.
Definition at line 408 of file outliner_utils.cc.
References View2D::cur, UI_UNIT_Y, rctf::ymax, rctf::ymin, and blender::ed::outliner::TreeElement::ys.
Referenced by outliner_draw_overrides_restrictbuts(), outliner_draw_overrides_rna_buts(), outliner_draw_rnabuts(), and outliner_draw_userbuts().
| 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 392 of file outliner_utils.cc.
References TreeStoreElem::flag, blender::ed::outliner::TreeElement::parent, TREESTORE, and TSE_CLOSED.
Referenced by do_outliner_range_select(), and find_walk_select_start_element().
|
static |
Definition at line 1903 of file outliner_select.cc.
References C, CTX_wm_region(), outliner_item_activate_invoke(), outliner_item_do_activate_from_cursor(), wmOperator::ptr, RNA_boolean_get(), and WM_event_drag_start_mval().
Referenced by outliner_item_activate_invoke(), and OUTLINER_OT_item_activate().
|
static |
Action to run when clicking in the outliner,
May expend/collapse branches or activate items.
Definition at line 1778 of file outliner_select.cc.
References C, CTX_wm_region(), CTX_wm_space_outliner(), do_outliner_range_select(), do_outliner_select_recursive(), ED_outliner_select_sync_from_outliner(), ED_region_tag_redraw(), ED_region_tag_redraw_no_rebuild(), TreeStoreElem::flag, merged_element_search_menu_invoke(), OL_ITEM_ACTIVATE, OL_ITEM_DESELECT, OL_ITEM_EXTEND, OL_ITEM_SELECT, OL_ITEM_SELECT_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, outliner_collection_get_for_recursive(), outliner_find_item_at_x_in_row(), outliner_find_item_at_y(), outliner_flag_set(), outliner_is_co_within_active_mode_column(), outliner_is_co_within_restrict_columns(), outliner_item_do_activate_from_cursor(), outliner_item_is_co_over_name_icons(), outliner_item_is_co_within_close_toggle(), outliner_item_select(), outliner_set_properties_tab(), select, blender::ed::outliner::TreeElement::subtree, SpaceOutliner::tree, TREESTORE, TSE_ACTIVE, TSE_SELECTED, TSE_VIEW_COLLECTION_BASE, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by outliner_item_activate_invoke(), and outliner_item_do_activate_from_cursor().
|
static |
Definition at line 1405 of file outliner_dragdrop.cc.
References BLI_freelistN(), C, CTX_data_scene(), CTX_wm_region(), CTX_wm_space_outliner(), data, datastack_drop_data_init(), blender::ed::outliner::TreeElement::directdata, ED_outliner_select_sync_from_outliner(), ELEM, flag, TreeStoreElem::flag, GS, Collection::id, TreeStoreElem::id, ID_GR, ID_OB, blender::wm::InvokeDefault, LISTBASE_FOREACH, Scene::master_collection, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, ot, outliner_collect_selected_collections(), outliner_collect_selected_objects(), 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_element_find(), outliner_item_is_co_within_close_toggle(), outliner_tree_traverse(), blender::ed::outliner::TreeElement::parent, RNA_float_set(), blender::ed::outliner::IDsSelectedData::selected_array, SpaceOutliner::tree, tree_element_get_icon(), TREESTORE, TSE_CONSTRAINT, TSE_CONSTRAINT_BASE, TSE_GPENCIL_EFFECT, TSE_GPENCIL_EFFECT_BASE, TSE_MODIFIER, TSE_MODIFIER_BASE, TSE_SELECTED, TreeStoreElem::type, UI_view2d_region_to_view(), ARegion::v2d, WM_drag_add_local_ID(), WM_drag_data_create(), WM_DRAG_DATASTACK, WM_DRAG_ID, WM_DRAG_NOP, WM_event_drag_start_mval(), WM_event_start_prepared_drag(), WM_operator_name_call_ptr(), WM_operator_properties_create_ptr(), WM_operator_properties_free(), and WM_operatortype_find().
Referenced by OUTLINER_OT_item_drag_drop().
|
static |
Definition at line 1392 of file outliner_dragdrop.cc.
References outliner_find_item_at_y(), SpaceOutliner::tree, UI_view2d_region_to_view_y(), ARegion::v2d, and WM_event_drag_start_mval().
Referenced by outliner_item_drag_drop_invoke().
| bool blender::ed::outliner::outliner_item_is_co_over_icon | ( | const TreeElement * | te, |
| float | view_co_x ) |
Definition at line 423 of file outliner_utils.cc.
References UI_UNIT_X, and blender::ed::outliner::TreeElement::xs.
Referenced by outliner_find_item_at_x_in_row().
| bool blender::ed::outliner::outliner_item_is_co_over_name | ( | const TreeElement * | te, |
| float | view_co_x ) |
Find if x coordinate is over element name.
Definition at line 428 of file outliner_utils.cc.
References UI_UNIT_X, blender::ed::outliner::TreeElement::xend, and blender::ed::outliner::TreeElement::xs.
Referenced by outliner_item_rename_find_hovered().
| bool blender::ed::outliner::outliner_item_is_co_over_name_icons | ( | const TreeElement * | te, |
| float | view_co_x ) |
Find if x coordinate is over an icon or name.
Definition at line 413 of file outliner_utils.cc.
References TREESTORE, TSE_VIEW_COLLECTION_BASE, UI_UNIT_X, blender::ed::outliner::TreeElement::xend, and blender::ed::outliner::TreeElement::xs.
Referenced by outliner_box_select_invoke(), and outliner_item_do_activate_from_cursor().
| bool blender::ed::outliner::outliner_item_is_co_within_close_toggle | ( | const TreeElement * | te, |
| float | view_co_x ) |
Find if x coordinate is over element disclosure toggle.
Definition at line 433 of file outliner_utils.cc.
References UI_UNIT_X, and blender::ed::outliner::TreeElement::xs.
Referenced by outliner_item_do_activate_from_cursor(), outliner_item_drag_drop_invoke(), and outliner_item_openclose_invoke().
| void blender::ed::outliner::outliner_item_mode_toggle | ( | bContext * | C, |
| const TreeViewContext & | tvc, | ||
| TreeElement * | te, | ||
| bool | do_extend ) |
Toggle the item's interaction mode if supported.
Definition at line 186 of file outliner_select.cc.
References BASE_ENABLED_AND_MAYBE_VISIBLE_IN_VIEWPORT, BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), C, do_outliner_item_editmode_toggle(), do_outliner_item_mode_toggle_generic(), do_outliner_item_posemode_toggle(), Base::flag, TreeStoreElem::id, ID_OB, blender::ed::outliner::TreeElement::idcode, Object::mode, OB_ARMATURE, blender::ed::outliner::TreeViewContext::ob_edit, blender::ed::outliner::TreeViewContext::ob_pose, OB_TYPE_SUPPORT_EDITMODE, blender::ed::outliner::TreeViewContext::obact, blender::ed::outliner::TreeViewContext::scene, TREESTORE, TSE_SOME_ID, Object::type, TreeStoreElem::type, and blender::ed::outliner::TreeViewContext::view_layer.
Referenced by outliner_mode_toggle_fn().
| void blender::ed::outliner::outliner_item_openclose | ( | TreeElement * | te, |
| bool | open, | ||
| bool | toggle_all ) |
Open or close a tree element, optionally toggling all children recursively.
Definition at line 178 of file outliner_edit.cc.
References BLI_listbase_is_empty(), blender::ed::outliner::TreeElement::flag, TreeStoreElem::flag, outliner_flag_set(), blender::ed::outliner::TreeElement::subtree, TE_PRETEND_HAS_CHILDREN, TREESTORE, TSE_CLOSED, TSE_VIEW_COLLECTION_BASE, and TreeStoreElem::type.
Referenced by outliner_item_openclose_invoke(), outliner_item_openclose_modal(), outliner_walk_left(), and outliner_walk_right().
|
static |
Definition at line 251 of file outliner_edit.cc.
References CTX_wm_region(), CTX_wm_space_outliner(), wmOperator::customdata, TreeStoreElem::flag, KM_PRESS_DRAG, LEFTMOUSE, MEM_callocN(), blender::ed::outliner::OpenCloseData::open, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, outliner_find_item_at_y(), outliner_flag_is_any_test(), outliner_item_is_co_within_close_toggle(), outliner_item_openclose(), outliner_tag_redraw_avoid_rebuild_on_open_change(), blender::ed::outliner::OpenCloseData::prev_tselem, wmOperator::ptr, RNA_boolean_get(), blender::ed::outliner::TreeElement::subtree, SpaceOutliner::tree, TREESTORE, TSE_CLOSED, wmEvent::type, UI_view2d_region_to_view(), ARegion::v2d, wmEvent::val, WM_event_add_modal_handler(), WM_event_drag_start_mval(), blender::ed::outliner::OpenCloseData::x_location, and blender::ed::outliner::TreeElement::xs.
Referenced by OUTLINER_OT_item_openclose().
|
static |
Definition at line 209 of file outliner_edit.cc.
References CTX_wm_region(), CTX_wm_space_outliner(), wmOperator::customdata, data, KM_RELEASE, MEM_freeN(), MOUSEMOVE, wmEvent::mval, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, outliner_find_item_at_y(), outliner_item_openclose(), outliner_tag_redraw_avoid_rebuild_on_open_change(), SpaceOutliner::tree, TREESTORE, wmEvent::type, UI_view2d_region_to_view(), ARegion::v2d, wmEvent::val, and blender::ed::outliner::TreeElement::xs.
Referenced by OUTLINER_OT_item_openclose().
|
static |
Definition at line 394 of file outliner_edit.cc.
References BKE_report(), outliner_find_element_with_flag(), RPT_WARNING, SpaceOutliner::tree, and TSE_ACTIVE.
Referenced by outliner_item_rename_invoke().
|
static |
Definition at line 407 of file outliner_edit.cc.
References wmEvent::mval, outliner_find_item_at_y(), outliner_item_is_co_over_name(), SpaceOutliner::tree, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by outliner_item_rename_invoke().
|
static |
Definition at line 422 of file outliner_edit.cc.
References BLI_rcti_size_y(), CTX_wm_region(), CTX_wm_space_outliner(), View2D::cur, do_item_rename(), View2D::mask, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, outliner_item_rename_find_active(), outliner_item_rename_find_hovered(), outliner_scroll_view(), outliner_show_active(), wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), TREESTORE, ARegion::v2d, rctf::ymax, and blender::ed::outliner::TreeElement::ys.
Referenced by OUTLINER_OT_item_rename().
| void blender::ed::outliner::outliner_item_select | ( | bContext * | C, |
| SpaceOutliner * | space_outliner, | ||
| TreeElement * | te, | ||
| short | select_flag ) |
Select the item using the set flags.
Definition at line 1546 of file outliner_select.cc.
References activate(), C, do_outliner_item_activate_tree_element(), SpaceOutliner::flag, TreeStoreElem::flag, OL_ITEM_ACTIVATE, OL_ITEM_EXTEND, OL_ITEM_RECURSIVE, OL_ITEM_SELECT, OL_ITEM_SELECT_DATA, outliner_flag_set(), outliner_item_select(), outliner_viewcontext_init(), SO_SYNC_SELECT, TREESTORE, TSE_ACTIVE, and TSE_SELECTED.
Referenced by do_outliner_operation_event(), do_outliner_range_select(), merged_element_search_exec_fn(), object_select_hierarchy_fn(), outliner_box_select(), outliner_item_do_activate_from_cursor(), outliner_item_select(), and outliner_walk_select_invoke().
|
static |
Definition at line 2211 of file outliner_edit.cc.
References BKE_report(), CTX_data_scene(), CTX_wm_space_outliner(), do_outliner_keyingset_editop(), KEYINGSET_EDITMODE_ADD, NC_SCENE, ND_KEYINGSET, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, verify_active_keyingset(), and WM_event_add_notifier().
Referenced by OUTLINER_OT_keyingset_add_selected().
|
static |
Definition at line 2256 of file outliner_edit.cc.
References CTX_data_scene(), CTX_wm_space_outliner(), do_outliner_keyingset_editop(), KEYINGSET_EDITMODE_REMOVE, NC_SCENE, ND_KEYINGSET, OPERATOR_CANCELLED, OPERATOR_FINISHED, verify_active_keyingset(), and WM_event_add_notifier().
Referenced by OUTLINER_OT_keyingset_remove_selected().
| void blender::ed::outliner::outliner_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 106 of file outliner_ops.cc.
References RGN_TYPE_WINDOW, SPACE_OUTLINER, and WM_keymap_ensure().
Referenced by ED_spacetype_outliner().
|
static |
Create either a RNA_LayerCollection or a RNA_Collection pointer.
Definition at line 352 of file outliner_draw.cc.
References Collection::id, Scene::id, outliner_layer_or_collection_pointer_create(), ptr, RNA_id_pointer_create(), and RNA_pointer_create_discrete().
Referenced by outliner_collection_is_isolated(), outliner_collection_isolate_flag(), outliner_collection_set_flag_recursive(), outliner_collection_set_flag_recursive_fn(), and outliner_layer_or_collection_pointer_create().
|
static |
Definition at line 3080 of file outliner_tools.cc.
References BKE_id_multi_tagged_delete(), BKE_main_ensure_invariants(), BKE_main_id_tag_all(), C, CTX_data_main(), CTX_data_scene(), CTX_wm_space_outliner(), ED_undo_push(), id_delete_tag_fn(), ID_TAG_DOIT, lib_reload_fn(), lib_relocate_fn(), NA_EDITED, NC_ID, NC_SPACE, ND_SPACE_OUTLINER, OL_LIB_DELETE, OL_LIB_RELOAD, OL_LIB_RELOCATE, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_do_libdata_operation(), wmOperator::ptr, wmOperator::reports, RNA_enum_get(), and WM_event_add_notifier().
Referenced by OUTLINER_OT_lib_operation().
|
static |
Definition at line 1147 of file outliner_edit.cc.
References BLI_assert, CTX_wm_region(), CTX_wm_space_outliner(), LISTBASE_FOREACH, wmEvent::mval, OPERATOR_CANCELLED, outliner_lib_relocate_invoke_do(), wmOperator::reports, ret, SpaceOutliner::tree, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by OUTLINER_OT_lib_reload().
|
static |
Definition at line 1095 of file outliner_edit.cc.
References BLI_assert, CTX_wm_region(), CTX_wm_space_outliner(), LISTBASE_FOREACH, wmEvent::mval, OPERATOR_CANCELLED, outliner_lib_relocate_invoke_do(), wmOperator::reports, ret, SpaceOutliner::tree, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by OUTLINER_OT_lib_relocate().
|
static |
Definition at line 1063 of file outliner_edit.cc.
References BKE_reportf(), TreeStoreElem::id, ID_LI, blender::ed::outliner::TreeElement::idcode, lib_relocate(), LISTBASE_FOREACH, OPERATOR_CANCELLED, ot, outliner_lib_relocate_invoke_do(), ret, RPT_ERROR_INVALID_INPUT, blender::ed::outliner::TreeElement::subtree, TREESTORE, UI_UNIT_Y, WM_operatortype_find(), and blender::ed::outliner::TreeElement::ys.
Referenced by outliner_lib_reload_invoke(), outliner_lib_relocate_invoke(), and outliner_lib_relocate_invoke_do().
|
static |
Definition at line 1847 of file outliner_tools.cc.
References C, CTX_data_scene(), CTX_wm_space_outliner(), blender::ed::outliner::OutlinerLibOverrideData::do_fully_editable, blender::ed::outliner::OutlinerLibOverrideData::do_hierarchy, blender::ed::outliner::OutlinerLibOverrideData::do_resync_hierarchy_enforce, ED_undo_push(), id_override_library_clear_single_process(), id_override_library_create_hierarchy_process(), id_override_library_delete_hierarchy_process(), id_override_library_resync_hierarchy_process(), NC_SPACE, NC_WINDOW, NC_WM, ND_LIB_OVERRIDE_CHANGED, ND_SPACE_VIEW3D, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_do_libdata_operation_selection_set(), OUTLINER_LIB_SELECTIONSET_SELECTED, OUTLINER_LIBOVERRIDE_OP_CLEAR_SINGLE, OUTLINER_LIBOVERRIDE_OP_CREATE_HIERARCHY, OUTLINER_LIBOVERRIDE_OP_DELETE_HIERARCHY, OUTLINER_LIBOVERRIDE_OP_RESET, OUTLINER_LIBOVERRIDE_OP_RESYNC_HIERARCHY, OUTLINER_LIBOVERRIDE_OP_RESYNC_HIERARCHY_ENFORCE, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), and WM_event_add_notifier().
Referenced by OUTLINER_OT_liboverride_operation(), and OUTLINER_OT_liboverride_troubleshoot_operation().
|
static |
Definition at line 1839 of file outliner_tools.cc.
References C, and outliner_operation_tree_element_poll().
Referenced by OUTLINER_OT_liboverride_operation(), and OUTLINER_OT_liboverride_troubleshoot_operation().
| int blender::ed::outliner::outliner_main_region_context | ( | const bContext * | C, |
| const char * | member, | ||
| bContextDataResult * | result ) |
Definition at line 36 of file outliner_context.cc.
References C, CTX_data_dir(), CTX_data_dir_set(), CTX_data_equals(), CTX_data_id_pointer_set(), CTX_RESULT_MEMBER_NOT_FOUND, CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_space_outliner(), TreeStoreElem::id, outliner_context_dir, outliner_context_selected_ids(), outliner_find_element_with_flag(), result, SpaceOutliner::tree, TREESTORE, TSE_ACTIVE, and TSE_IS_REAL_ID.
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 89 of file space_outliner.cc.
References BLI_rctf_compare(), C, CTX_wm_area(), View2D::cur, draw_outliner(), ED_region_draw_overflow_indication(), TH_BACK, UI_ThemeClearColor(), UI_view2d_scrollers_draw(), UI_view2d_view_restore(), and ARegion::v2d.
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 118 of file space_outliner.cc.
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 60 of file space_outliner.cc.
References View2D::align, ARegion::flag, View2D::keeptot, View2D::keepzoom, View2D::maxzoom, View2D::minzoom, RGN_FLAG_INDICATE_OVERFLOW, RGN_TYPE_WINDOW, ARegion::runtime, View2D::scroll, SPACE_OUTLINER, UI_view2d_region_reinit(), ARegion::v2d, V2D_ALIGN_NO_NEG_X, V2D_ALIGN_NO_POS_Y, V2D_COMMONVIEW_LIST, V2D_KEEPASPECT, V2D_KEEPTOT_STRICT, V2D_LIMITZOOM, V2D_LOCKZOOM_X, V2D_LOCKZOOM_Y, V2D_SCROLL_BOTTOM, V2D_SCROLL_HORIZONTAL_HIDE, V2D_SCROLL_LEFT, V2D_SCROLL_RIGHT, V2D_SCROLL_TOP, V2D_SCROLL_VERTICAL_HIDE, ARegion::winx, ARegion::winy, WM_dropboxmap_find(), WM_event_add_dropbox_handler(), WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 120 of file space_outliner.cc.
References wmNotifier::action, wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), ED_region_tag_redraw_no_rebuild(), ELEM, ListBase::first, NA_ACTIVATED, NA_ADDED, NA_EDITED, NA_REMOVED, NA_RENAME, NA_SELECTED, NC_ANIMATION, NC_ASSET, 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_RENDER_OPTIONS, ND_SCENEBROWSE, ND_SEQUENCER, ND_SHADING_LINKS, ND_SPACE_OUTLINER, ND_TRANSFORM, ND_VERTEX_GROUP, ND_WORLD, NS_LAYER_COLLECTION, outliner_requires_rebuild_on_select_or_active_change(), SpaceOutliner::outlinevis, params, SO_DATA_API, SO_LIBRARIES, ScrArea::spacedata, and wmNotifier::subtype.
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 320 of file space_outliner.cc.
References ED_region_do_msg_notify_tag_redraw(), ELEM, ListBase::first, wmMsgSubscribeValue::notify, SpaceOutliner::outlinevis, wmMsgSubscribeValue::owner, params, SO_OVERRIDES_LIBRARY, SO_SCENES, SO_VIEW_LAYER, ScrArea::spacedata, wmMsgSubscribeValue::user_data, Window, and WM_msg_subscribe_rna_anon_prop.
Referenced by ED_spacetype_outliner().
| void blender::ed::outliner::outliner_make_object_parent_hierarchy | ( | ListBase * | lb | ) |
Definition at line 40 of file common.cc.
References BLI_addtail(), BLI_remlink(), ListBase::first, Object::id, TreeStoreElem::id, ID_OB, blender::ed::outliner::TreeElement::idcode, ID::newid, blender::ed::outliner::TreeElement::next, blender::ed::outliner::TreeElement::parent, Object::parent, blender::ed::outliner::TreeElement::subtree, TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by blender::ed::outliner::TreeDisplayScenes::build_tree(), and blender::ed::outliner::TreeElementSceneObjectsBase::expand().
|
static |
Definition at line 2223 of file outliner_draw.cc.
References BLI_assert, C, CTX_wm_space_outliner(), CTX_wm_window(), Object::data, wmWindow::eventstate, GS, TreeStoreElem::id, ID_OB, KM_CTRL, wmEvent::modifier, ID::name, blender::ed::outliner::TreeViewContext::obact, outliner_find_tree_element(), outliner_item_mode_toggle(), outliner_mode_toggle_fn(), outliner_viewcontext_init(), and SpaceOutliner::tree.
Referenced by outliner_draw_mode_column_toggle(), and outliner_mode_toggle_fn().
|
static |
Definition at line 3434 of file outliner_tools.cc.
References blender::ed::outliner::ModifierFnArgs::C, C, CTX_wm_space_outliner(), ED_undo_push(), ELEM, modifier_fn(), OL_MODIFIER_OP_APPLY, OL_MODIFIER_OP_DELETE, OPERATOR_FINISHED, outliner_cleanup_tree(), outliner_do_data_operation(), wmOperator::ptr, blender::ed::outliner::ModifierFnArgs::reports, wmOperator::reports, RNA_enum_get(), and TSE_MODIFIER.
Referenced by OUTLINER_OT_modifier_operation().
|
static |
Definition at line 954 of file outliner_tools.cc.
References BKE_id_delete(), BKE_library_ID_is_indirectly_used(), BKE_object_is_in_editmode(), BKE_reportf(), C, CTX_data_main(), blender::ed::object::editmode_exit_ex(), blender::ed::object::EM_FREEDATA, Object::id, Scene::id, ID_EXTRA_USERS, ID_REAL_USERS, ID_TAG_INDIRECT, Object::mode, ID::name, OB_MODE_EDIT, RPT_WARNING, and ID::tag.
Referenced by outliner_delete_exec().
|
static |
Definition at line 2490 of file outliner_tools.cc.
References BLI_assert_unreachable, BLT_I18NCONTEXT_OPERATOR_DEFAULT, C, CTX_data_main(), CTX_data_scene(), CTX_N_, CTX_wm_space_outliner(), CTX_wm_window(), DEG_id_tag_update(), ED_outliner_select_sync_from_object_tag(), ED_undo_push(), Scene::id, ID_RECALC_SELECT, id_remap_fn(), item_rename_fn(), NC_SCENE, ND_OB_SELECT, object_deselect_fn(), object_select_fn(), object_select_hierarchy_fn(), OL_OP_DESELECT, OL_OP_REMAP, OL_OP_RENAME, OL_OP_SELECT, OL_OP_SELECT_HIERARCHY, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_do_libdata_operation(), outliner_do_object_operation(), outliner_do_object_operation_ex(), wmOperator::ptr, wmOperator::reports, RNA_enum_get(), str, SpaceOutliner::tree, WM_event_add_notifier(), and WM_window_set_active_scene().
Referenced by OUTLINER_OT_object_operation().
|
static |
Definition at line 270 of file outliner_draw.cc.
References blender::animrig::autokeyframe_property(), BKE_main_collection_sync_remap(), BKE_object_is_child_recursive(), BKE_scene_frame_get(), BKE_view_layer_base_find(), BKE_view_layer_need_resync_tag(), BKE_view_layer_synced_ensure(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_window(), data, DEG_id_tag_update(), DEG_relations_tag_update(), wmWindow::eventstate, ListBase::first, Object::id, Scene::id, ID_RECALC_BASE_FLAGS, ID_RECALC_SYNC_TO_EVAL, KM_SHIFT, wmEvent::modifier, Base::object, Main::objects, outliner_object_set_flag_recursive_fn(), ptr, RNA_id_pointer_create(), RNA_pointer_create_discrete(), RNA_property_boolean_get(), RNA_property_boolean_set(), and RNA_struct_type_find_property().
Referenced by outliner__base_set_flag_recursive_fn(), outliner__object_set_flag_recursive_fn(), and outliner_object_set_flag_recursive_fn().
|
static |
Definition at line 1633 of file outliner_edit.cc.
References add(), CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw(), OPERATOR_FINISHED, outliner_count_levels(), outliner_flag_is_any_test(), outliner_openclose_level(), wmOperator::ptr, RNA_boolean_get(), SpaceOutliner::tree, and TSE_CLOSED.
Referenced by OUTLINER_OT_show_one_level().
|
static |
Return true when levels were opened.
Definition at line 1437 of file outliner_edit.cc.
References TreeStoreElem::flag, blender::ed::outliner::TreeElement::parent, TREESTORE, and TSE_CLOSED.
Referenced by outliner_show_active().
|
static |
Definition at line 1613 of file outliner_edit.cc.
References TreeStoreElem::flag, LISTBASE_FOREACH, outliner_openclose_level(), TREESTORE, and TSE_CLOSED.
Referenced by outliner_one_level_exec(), and outliner_openclose_level().
|
static |
Definition at line 3721 of file outliner_tools.cc.
References C, CTX_wm_region(), CTX_wm_space_outliner(), do_outliner_operation_event(), wmEvent::mval, OPERATOR_PASS_THROUGH, outliner_find_item_at_y(), SpaceOutliner::tree, UI_but_tooltip_timer_remove(), UI_context_active_but_get(), UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by OUTLINER_OT_operation().
|
static |
Definition at line 205 of file outliner_tools.cc.
References C, CTX_wm_space_outliner(), ED_operator_outliner_active(), and get_target_element().
Referenced by outliner_id_operation_item_poll(), outliner_liboverride_operation_poll(), OUTLINER_OT_action_set(), OUTLINER_OT_id_operation(), and OUTLINER_OT_lib_operation().
|
static |
Definition at line 3624 of file outliner_tools.cc.
References C, blender::wm::InvokeRegionWin, uiLayout::menu_contents(), uiLayout::op_enum(), uiLayout::operator_context_set(), OPERATOR_INTERFACE, ot, RNA_property_identifier(), uiLayout::separator(), UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), WM_operator_poll(), WM_operatortype_find(), and WM_operatortype_name().
Referenced by do_outliner_operation_event().
| void blender::ed::outliner::outliner_operatortypes | ( | ) |
Definition at line 20 of file outliner_ops.cc.
References 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_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_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 WM_operatortype_append().
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 2548 of file outliner_edit.cc.
References CTX_wm_space_outliner(), IFACE_, OPERATOR_CANCELLED, OPERATOR_FINISHED, SpaceOutliner::outlinevis, SO_ID_ORPHANS, SPACE_OUTLINER, and WM_window_open_temp().
Referenced by OUTLINER_OT_orphans_manage().
|
static |
Definition at line 2462 of file outliner_edit.cc.
References outliner_orphans_purge_cleanup().
Referenced by OUTLINER_OT_orphans_purge().
|
static |
Definition at line 2376 of file outliner_edit.cc.
References BKE_lib_query_unused_ids_amounts(), CTX_data_main(), wmOperator::customdata, data, wmOperator::ptr, and RNA_boolean_get().
Referenced by outliner_orphans_purge_invoke(), and OUTLINER_OT_orphans_purge().
|
static |
Definition at line 2361 of file outliner_edit.cc.
References BKE_main_id_tag_all(), CTX_data_main(), wmOperator::customdata, and ID_TAG_DOIT.
Referenced by outliner_orphans_purge_cancel(), and outliner_orphans_purge_exec().
|
static |
Definition at line 2407 of file outliner_edit.cc.
References BKE_id_multi_tagged_delete(), BKE_lib_query_unused_ids_tag(), BKE_report(), BKE_reportf(), CTX_data_main(), CTX_wm_area(), CTX_wm_space_outliner(), wmOperator::customdata, data, DEG_relations_tag_update(), ID_TAG_DOIT, INDEX_ID_NULL, INDEX_ID_SCE, NA_REMOVED, NC_ID, NC_WINDOW, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_cleanup_tree(), outliner_orphans_purge_cleanup(), wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, RPT_INFO, SPACE_OUTLINER, ScrArea::spacetype, WM_event_add_notifier(), and WM_main_add_notifier().
Referenced by OUTLINER_OT_orphans_purge().
|
static |
Definition at line 2391 of file outliner_edit.cc.
References wmOperator::customdata, IFACE_, outliner_orphans_purge_check(), unused_message_popup_width_compute(), and WM_operator_props_dialog_popup().
Referenced by OUTLINER_OT_orphans_purge().
|
static |
Definition at line 2467 of file outliner_edit.cc.
References BLI_assert_unreachable, uiLayout::column(), wmOperator::customdata, data, uiLayout::label(), wmOperator::layout, uiLayout::prop(), ptr, wmOperator::ptr, uiLayout::row(), uiLayout::separator(), UI_ITEM_NONE, and unused_message_gen().
Referenced by OUTLINER_OT_orphans_purge().
| void blender::ed::outliner::OUTLINER_OT_action_set | ( | wmOperatorType * | ot | ) |
Definition at line 3235 of file outliner_tools.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_action_set_exec(), outliner_operation_tree_element_poll(), PROP_ENUM_NO_TRANSLATE, RNA_action_itemf(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), rna_enum_dummy_NULL_items, and WM_enum_search_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_animdata_operation | ( | wmOperatorType * | ot | ) |
Definition at line 3357 of file outliner_tools.cc.
References ED_operator_outliner_active(), ot, outliner_animdata_operation_exec(), prop_animdata_op_types, RNA_def_enum(), and WM_menu_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_clear_filter | ( | wmOperatorType * | ot | ) |
Definition at line 1406 of file outliner_edit.cc.
References ED_operator_outliner_active(), ot, and outliner_clear_filter_exec().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_color_tag_set | ( | wmOperatorType * | ot | ) |
Definition at line 1646 of file outliner_collections.cc.
References COLLECTION_COLOR_NONE, ED_outliner_collections_editor_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_color_tag_set_exec(), RNA_def_enum(), and rna_enum_collection_color_items.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_disable | ( | wmOperatorType * | ot | ) |
Definition at line 1426 of file outliner_collections.cc.
References collection_disable_poll(), collection_flag_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_disable_render | ( | wmOperatorType * | ot | ) |
Definition at line 1456 of file outliner_collections.cc.
References collection_disable_render_poll(), collection_flag_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_drop | ( | wmOperatorType * | ot | ) |
Definition at line 1369 of file outliner_dragdrop.cc.
References collection_drop_invoke(), ED_operator_outliner_active(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 725 of file outliner_collections.cc.
References collection_duplicate_exec(), ED_outliner_collections_editor_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_duplicate_linked | ( | wmOperatorType * | ot | ) |
Definition at line 708 of file outliner_collections.cc.
References collection_duplicate_exec(), ED_outliner_collections_editor_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_enable | ( | wmOperatorType * | ot | ) |
Definition at line 1411 of file outliner_collections.cc.
References collection_enable_poll(), collection_flag_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_enable_render | ( | wmOperatorType * | ot | ) |
Definition at line 1441 of file outliner_collections.cc.
References collection_enable_render_poll(), collection_flag_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_exclude_clear | ( | wmOperatorType * | ot | ) |
Definition at line 1018 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_exclude_clear_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_exclude_set | ( | wmOperatorType * | ot | ) |
Definition at line 1003 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_exclude_set_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_hide | ( | wmOperatorType * | ot | ) |
Definition at line 1241 of file outliner_collections.cc.
References collection_hide_poll(), collection_visibility_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_hide_inside | ( | wmOperatorType * | ot | ) |
Definition at line 1271 of file outliner_collections.cc.
References collection_inside_poll(), collection_visibility_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_hierarchy_delete | ( | wmOperatorType * | ot | ) |
Definition at line 461 of file outliner_collections.cc.
References collection_edit_in_active_scene_poll(), collection_hierarchy_delete_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_holdout_clear | ( | wmOperatorType * | ot | ) |
Definition at line 1048 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_holdout_clear_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_holdout_set | ( | wmOperatorType * | ot | ) |
Definition at line 1033 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_holdout_set_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_indirect_only_clear | ( | wmOperatorType * | ot | ) |
Definition at line 1080 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_indirect_only_clear_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_indirect_only_set | ( | wmOperatorType * | ot | ) |
Definition at line 1063 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_indirect_only_set_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_instance | ( | wmOperatorType * | ot | ) |
Definition at line 858 of file outliner_collections.cc.
References collection_edit_in_active_scene_poll(), collection_instance_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_isolate | ( | wmOperatorType * | ot | ) |
Definition at line 1156 of file outliner_collections.cc.
References collection_isolate_exec(), collection_isolate_invoke(), ED_outliner_collections_editor_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_SKIP_SAVE, RNA_def_boolean(), and RNA_def_property_flag().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_link | ( | wmOperatorType * | ot | ) |
Definition at line 791 of file outliner_collections.cc.
References collection_edit_in_active_scene_poll(), collection_link_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_new | ( | wmOperatorType * | ot | ) |
Definition at line 291 of file outliner_collections.cc.
References collection_new_exec(), collection_new_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_SKIP_SAVE, RNA_def_boolean(), and RNA_def_property_flag().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_objects_deselect | ( | wmOperatorType * | ot | ) |
Definition at line 571 of file outliner_collections.cc.
References collection_objects_select_exec(), ED_outliner_collections_editor_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_objects_select | ( | wmOperatorType * | ot | ) |
Definition at line 556 of file outliner_collections.cc.
References collection_objects_select_exec(), ED_outliner_collections_editor_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_show | ( | wmOperatorType * | ot | ) |
Definition at line 1226 of file outliner_collections.cc.
References collection_show_poll(), collection_visibility_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_collection_show_inside | ( | wmOperatorType * | ot | ) |
Definition at line 1256 of file outliner_collections.cc.
References collection_inside_poll(), collection_visibility_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_constraint_operation | ( | wmOperatorType * | ot | ) |
Definition at line 3402 of file outliner_tools.cc.
References ED_operator_outliner_active(), ot, outliner_constraint_operation_exec(), prop_constraint_op_types, RNA_def_enum(), and WM_menu_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_data_operation | ( | wmOperatorType * | ot | ) |
Definition at line 3601 of file outliner_tools.cc.
References ot, outliner_data_op_sets_enum_item_fn(), outliner_data_operation_exec(), outliner_data_operation_poll(), RNA_def_enum(), RNA_def_enum_funcs(), rna_enum_dummy_DEFAULT_items, and WM_menu_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_datastack_drop | ( | wmOperatorType * | ot | ) |
Definition at line 1077 of file outliner_dragdrop.cc.
References datastack_drop_invoke(), ED_operator_outliner_active(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 2735 of file outliner_tools.cc.
References ED_operator_outliner_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_delete_exec(), PROP_SKIP_SAVE, RNA_def_boolean(), and RNA_def_property_flag().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_drivers_add_selected | ( | wmOperatorType * | ot | ) |
Definition at line 2045 of file outliner_edit.cc.
References ed_operator_outliner_datablocks_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and outliner_drivers_addsel_exec().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_drivers_delete_selected | ( | wmOperatorType * | ot | ) |
Definition at line 2084 of file outliner_edit.cc.
References ed_operator_outliner_datablocks_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and outliner_drivers_deletesel_exec().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_expanded_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 1301 of file outliner_edit.cc.
References ED_operator_region_outliner_active(), ot, and outliner_toggle_expanded_exec().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_hide | ( | wmOperatorType * | ot | ) |
Definition at line 1549 of file outliner_collections.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_hide_exec(), and outliner_view_layer_collections_editor_poll().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_highlight_update | ( | wmOperatorType * | ot | ) |
Definition at line 161 of file outliner_edit.cc.
References ED_operator_outliner_active(), ot, and outliner_highlight_update_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_id_copy | ( | wmOperatorType * | ot | ) |
Definition at line 897 of file outliner_edit.cc.
References ED_operator_outliner_active(), ot, and outliner_id_copy_exec().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_id_delete | ( | wmOperatorType * | ot | ) |
Definition at line 627 of file outliner_edit.cc.
References ED_operator_region_outliner_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and outliner_id_delete_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_id_linked_relocate | ( | wmOperatorType * | ot | ) |
Definition at line 1001 of file outliner_edit.cc.
References ED_operator_region_outliner_active(), ot, and outliner_id_relocate_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_id_operation | ( | wmOperatorType * | ot | ) |
Definition at line 3037 of file outliner_tools.cc.
References ot, outliner_id_operation_exec(), outliner_id_operation_itemf(), outliner_operation_tree_element_poll(), prop_id_op_types, RNA_def_enum(), RNA_def_enum_funcs(), and WM_menu_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_id_paste | ( | wmOperatorType * | ot | ) |
Definition at line 938 of file outliner_edit.cc.
References ED_operator_outliner_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and outliner_id_paste_exec().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_id_remap | ( | wmOperatorType * | ot | ) |
Definition at line 762 of file outliner_edit.cc.
References BLT_I18NCONTEXT_ID_ID, ED_operator_region_outliner_active(), ID_OB, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_id_itemf(), outliner_id_remap_exec(), outliner_id_remap_invoke(), PROP_ENUM_NO_TRANSLATE, PROP_HIDDEN, RNA_def_enum(), RNA_def_property_enum_funcs_runtime(), RNA_def_property_flag(), RNA_def_property_translation_context(), rna_enum_dummy_NULL_items, and rna_enum_id_type_items.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_item_activate | ( | wmOperatorType * | ot | ) |
Definition at line 1919 of file outliner_select.cc.
References ED_operator_region_outliner_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_item_activate_invoke(), OUTLINER_OT_item_activate(), PROP_SKIP_SAVE, RNA_def_boolean(), and RNA_def_property_flag().
Referenced by outliner_operatortypes(), and OUTLINER_OT_item_activate().
| void blender::ed::outliner::OUTLINER_OT_item_drag_drop | ( | wmOperatorType * | ot | ) |
Definition at line 1558 of file outliner_dragdrop.cc.
References ED_operator_outliner_active(), ot, and outliner_item_drag_drop_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_item_openclose | ( | wmOperatorType * | ot | ) |
Definition at line 299 of file outliner_edit.cc.
References ED_operator_region_outliner_active(), ot, outliner_item_openclose_invoke(), outliner_item_openclose_modal(), and RNA_def_boolean().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_item_rename | ( | wmOperatorType * | ot | ) |
Definition at line 449 of file outliner_edit.cc.
References ED_operator_region_outliner_active(), OPTYPE_REGISTER, ot, outliner_item_rename_invoke(), PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), and RNA_def_property_flag().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_keyingset_add_selected | ( | wmOperatorType * | ot | ) |
Definition at line 2235 of file outliner_edit.cc.
References ed_operator_outliner_datablocks_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and outliner_keyingset_additems_exec().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_keyingset_remove_selected | ( | wmOperatorType * | ot | ) |
Definition at line 2276 of file outliner_edit.cc.
References ed_operator_outliner_datablocks_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and outliner_keyingset_removeitems_exec().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_lib_operation | ( | wmOperatorType * | ot | ) |
Definition at line 3128 of file outliner_tools.cc.
References ot, outliner_lib_op_type_items, outliner_lib_operation_exec(), outliner_operation_tree_element_poll(), RNA_def_enum(), and WM_menu_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_lib_reload | ( | wmOperatorType * | ot | ) |
Definition at line 1176 of file outliner_edit.cc.
References ED_operator_region_outliner_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and outliner_lib_reload_invoke().
| void blender::ed::outliner::OUTLINER_OT_lib_relocate | ( | wmOperatorType * | ot | ) |
Definition at line 1118 of file outliner_edit.cc.
References ED_operator_region_outliner_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and outliner_lib_relocate_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_liboverride_operation | ( | wmOperatorType * | ot | ) |
Definition at line 2015 of file outliner_tools.cc.
References ot, outliner_liboverride_operation_exec(), outliner_liboverride_operation_poll(), prop_lib_op_selection_set, prop_liboverride_op_types, RNA_def_enum(), and WM_menu_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_liboverride_troubleshoot_operation | ( | wmOperatorType * | ot | ) |
Definition at line 2038 of file outliner_tools.cc.
References ot, outliner_liboverride_operation_exec(), outliner_liboverride_operation_poll(), prop_lib_op_selection_set, prop_liboverride_troubleshoot_op_types, RNA_def_enum(), and WM_menu_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_material_drop | ( | wmOperatorType * | ot | ) |
Definition at line 661 of file outliner_dragdrop.cc.
References ED_operator_region_outliner_active(), material_drop_invoke(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_modifier_operation | ( | wmOperatorType * | ot | ) |
Definition at line 3454 of file outliner_tools.cc.
References ED_operator_outliner_active(), ot, outliner_modifier_operation_exec(), prop_modifier_op_types, RNA_def_enum(), and WM_menu_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_object_operation | ( | wmOperatorType * | ot | ) |
Definition at line 2574 of file outliner_tools.cc.
References ED_operator_outliner_active(), ot, outliner_object_operation_exec(), prop_object_op_types, RNA_def_enum(), and WM_menu_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_operation | ( | wmOperatorType * | ot | ) |
Definition at line 3747 of file outliner_tools.cc.
References ED_operator_region_outliner_active(), ot, and outliner_operation_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_orphans_manage | ( | wmOperatorType * | ot | ) |
Definition at line 2560 of file outliner_edit.cc.
References OPTYPE_REGISTER, ot, and outliner_orphans_manage_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_orphans_purge | ( | wmOperatorType * | ot | ) |
Definition at line 2502 of file outliner_edit.cc.
References ed_operator_outliner_id_orphans_active(), OPTYPE_UNDO, ot, outliner_orphans_purge_cancel(), outliner_orphans_purge_check(), outliner_orphans_purge_exec(), outliner_orphans_purge_invoke(), outliner_orphans_purge_ui(), and RNA_def_boolean().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_parent_clear | ( | wmOperatorType * | ot | ) |
Definition at line 533 of file outliner_dragdrop.cc.
References ED_operator_outliner_active(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and parent_clear_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_parent_drop | ( | wmOperatorType * | ot | ) |
Definition at line 444 of file outliner_dragdrop.cc.
References ED_operator_region_outliner_active(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and parent_drop_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_scene_drop | ( | wmOperatorType * | ot | ) |
Definition at line 604 of file outliner_dragdrop.cc.
References ED_operator_region_outliner_active(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and scene_drop_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_scene_operation | ( | wmOperatorType * | ot | ) |
Definition at line 757 of file outliner_tools.cc.
References ED_operator_outliner_active(), ot, outliner_scene_operation_exec(), prop_scene_op_types, RNA_def_enum(), and WM_menu_invoke().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_scroll_page | ( | wmOperatorType * | ot | ) |
Definition at line 1588 of file outliner_edit.cc.
References ED_operator_region_outliner_active(), ot, outliner_scroll_page_exec(), PROP_SKIP_SAVE, RNA_def_boolean(), and RNA_def_property_flag().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 1353 of file outliner_edit.cc.
References ED_operator_outliner_active(), ot, outliner_select_all_exec(), and WM_operator_properties_select_all().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_select_box | ( | wmOperatorType * | ot | ) |
Definition at line 2024 of file outliner_select.cc.
References ED_operator_region_outliner_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_box_select_exec(), outliner_box_select_invoke(), OUTLINER_OT_select_box(), PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), WM_gesture_box_cancel(), WM_gesture_box_modal(), WM_operator_properties_gesture_box(), and WM_operator_properties_select_operation_simple().
Referenced by outliner_operatortypes(), and OUTLINER_OT_select_box().
| void blender::ed::outliner::OUTLINER_OT_select_walk | ( | wmOperatorType * | ot | ) |
Definition at line 2261 of file outliner_select.cc.
References ED_operator_outliner_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, OUTLINER_OT_select_walk(), outliner_walk_select_invoke(), PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and WM_operator_properties_select_walk_direction().
Referenced by outliner_operatortypes(), and OUTLINER_OT_select_walk().
| void blender::ed::outliner::OUTLINER_OT_show_active | ( | wmOperatorType * | ot | ) |
Definition at line 1550 of file outliner_edit.cc.
References ED_operator_region_outliner_active(), ot, and outliner_show_active_exec().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_show_hierarchy | ( | wmOperatorType * | ot | ) |
Definition at line 1755 of file outliner_edit.cc.
References ED_operator_region_outliner_active(), ot, and outliner_show_hierarchy_exec().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_show_one_level | ( | wmOperatorType * | ot | ) |
Definition at line 1660 of file outliner_edit.cc.
References ED_operator_region_outliner_active(), ot, outliner_one_level_exec(), PROP_SKIP_SAVE, RNA_def_boolean(), and RNA_def_property_flag().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_start_filter | ( | wmOperatorType * | ot | ) |
Definition at line 1386 of file outliner_edit.cc.
References ED_operator_outliner_active(), ot, and outliner_start_filter_exec().
Referenced by outliner_operatortypes().
| void blender::ed::outliner::OUTLINER_OT_unhide_all | ( | wmOperatorType * | ot | ) |
Definition at line 1588 of file outliner_collections.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_unhide_all_exec(), and outliner_view_layer_collections_editor_poll().
Referenced by outliner_operatortypes().
| bool blender::ed::outliner::outliner_requires_rebuild_on_select_or_active_change | ( | const SpaceOutliner * | space_outliner | ) |
Definition at line 181 of file outliner_tree.cc.
References outliner_exclude_filter_get(), SO_FILTER_OB_STATE_ACTIVE, and SO_FILTER_OB_STATE_SELECTED.
Referenced by outliner_main_region_listener().
|
static |
Bring the outliner scrolling back to where it was in relation to the original focus element Caller is expected to handle redrawing of ARegion.
Definition at line 684 of file outliner_tree.cc.
References BLI_rctf_translate(), View2D::cur, outliner_find_tree_element(), outliner_set_coordinates(), SpaceOutliner::tree, blender::ed::outliner::OutlinerTreeElementFocus::tselem, ARegion::v2d, rctf::ymax, blender::ed::outliner::OutlinerTreeElementFocus::ys, and blender::ed::outliner::TreeElement::ys.
Referenced by outliner_build_tree().
|
static |
Definition at line 1080 of file outliner_draw.cc.
References COLLECTION_IS_MASTER, blender::ed::outliner::TreeElement::directdata, Collection::flag, Collection::id, Scene::id, outliner_collection_from_tree_element(), outliner_restrict_properties_collection_set(), outliner_restrict_properties_enable_collection_set(), outliner_restrict_properties_enable_layer_collection_set(), RNA_id_pointer_create(), RNA_pointer_create_discrete(), TREESTORE, TSE_LAYER_COLLECTION, and TreeStoreElem::type.
Referenced by outliner_draw_restrictbuts(), and outliner_restrict_properties_collection_set().
|
static |
Definition at line 1000 of file outliner_draw.cc.
References blender::ed::outliner::RestrictPropertiesActive::base_hide_viewport, 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::RestrictPropertiesActive::constraint_enable, blender::ed::outliner::RestrictPropertiesActive::layer_collection_hide_viewport, blender::ed::outliner::RestrictPropertiesActive::layer_collection_holdout, blender::ed::outliner::RestrictPropertiesActive::layer_collection_indirect_only, blender::ed::outliner::RestrictPropertiesActive::modifier_show_render, blender::ed::outliner::RestrictPropertiesActive::modifier_show_viewport, blender::ed::outliner::RestrictPropertiesActive::object_hide_render, blender::ed::outliner::RestrictPropertiesActive::object_hide_select, blender::ed::outliner::RestrictPropertiesActive::object_hide_viewport, outliner_restrict_properties_enable_collection_set(), and RNA_property_boolean_get().
Referenced by outliner_restrict_properties_collection_set(), outliner_restrict_properties_enable_collection_set(), and outliner_restrict_properties_enable_layer_collection_set().
|
static |
Definition at line 1038 of file outliner_draw.cc.
References blender::ed::outliner::RestrictPropertiesActive::base_hide_viewport, blender::ed::outliner::RestrictPropertiesActive::collection_hide_render, blender::ed::outliner::RestrictPropertiesActive::collection_hide_select, blender::ed::outliner::RestrictPropertiesActive::collection_hide_viewport, blender::ed::outliner::RestrictProperties::layer_collection_exclude, blender::ed::outliner::RestrictPropertiesActive::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::RestrictPropertiesActive::object_hide_select, outliner_restrict_properties_enable_collection_set(), outliner_restrict_properties_enable_layer_collection_set(), and RNA_property_boolean_get().
Referenced by outliner_restrict_properties_collection_set(), and outliner_restrict_properties_enable_layer_collection_set().
| float blender::ed::outliner::outliner_right_columns_width | ( | const SpaceOutliner * | space_outliner | ) |
Definition at line 327 of file outliner_utils.cc.
References ATTR_FALLTHROUGH, SpaceOutliner::lib_override_view_mode, OL_RNA_COL_SIZEX, SpaceOutliner::outlinevis, SpaceOutliner::show_restrict_flags, SO_DATA_API, SO_ID_ORPHANS, SO_LIB_OVERRIDE_VIEW_HIERARCHIES, SO_LIB_OVERRIDE_VIEW_PROPERTIES, SO_LIBRARIES, SO_OVERRIDES_LIBRARY, SO_RESTRICT_ENABLE, SO_RESTRICT_HIDE, SO_RESTRICT_HOLDOUT, SO_RESTRICT_INDIRECT_ONLY, SO_RESTRICT_RENDER, SO_RESTRICT_SELECT, SO_RESTRICT_VIEWPORT, SO_SCENES, SO_SEQUENCE, SO_VIEW_LAYER, UI_UNIT_X, and V2D_SCROLL_WIDTH.
Referenced by draw_outliner(), outliner_draw_restrictbuts(), and outliner_is_co_within_restrict_columns().
|
static |
Definition at line 736 of file outliner_tools.cc.
References BLI_assert_unreachable, C, CTX_wm_space_outliner(), ED_undo_push(), OL_SCENE_OP_DELETE, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_cleanup_tree(), outliner_do_scene_operation(), wmOperator::ptr, RNA_enum_get(), and scene_fn().
Referenced by OUTLINER_OT_scene_operation().
|
static |
Definition at line 1569 of file outliner_edit.cc.
References BLI_rcti_size_y(), CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw_no_rebuild(), View2D::mask, OPERATOR_FINISHED, outliner_scroll_view(), wmOperator::ptr, RNA_boolean_get(), and ARegion::v2d.
Referenced by OUTLINER_OT_scroll_page().
| void blender::ed::outliner::outliner_scroll_view | ( | SpaceOutliner * | space_outliner, |
| ARegion * | region, | ||
| int | delta_y ) |
Scroll view vertically while keeping within total bounds.
Definition at line 438 of file outliner_utils.cc.
References View2D::cur, outliner_tree_dimensions(), UI_UNIT_Y, ARegion::v2d, rctf::ymax, and rctf::ymin.
Referenced by outliner_item_rename_invoke(), outliner_scroll_page_exec(), outliner_show_active_exec(), and outliner_walk_scroll().
| ID * blender::ed::outliner::outliner_search_back | ( | TreeElement * | te, |
| short | idcode ) |
Definition at line 272 of file outliner_utils.cc.
References TreeStoreElem::id, outliner_search_back_te(), and TREESTORE.
Referenced by constraint_fn(), modifier_fn(), outliner_do_object_operation_ex(), parent_drop_allowed(), parent_drop_set_parents(), tree_element_active_camera_get(), tree_element_active_material_get(), tree_element_camera_activate(), tree_element_material_activate(), and tree_element_object_activate().
| TreeElement * blender::ed::outliner::outliner_search_back_te | ( | TreeElement * | te, |
| short | idcode ) |
Definition at line 257 of file outliner_utils.cc.
References blender::ed::outliner::TreeElement::idcode, blender::ed::outliner::TreeElement::parent, TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_search_back(), and tree_element_object_activate().
|
static |
Definition at line 1321 of file outliner_edit.cc.
References CTX_data_scene(), CTX_wm_region(), CTX_wm_space_outliner(), DEG_id_tag_update(), ED_outliner_select_sync_from_outliner(), ED_region_tag_redraw_no_rebuild(), Scene::id, ID_RECALC_SELECT, NC_SCENE, ND_OB_SELECT, OPERATOR_FINISHED, outliner_flag_flip(), outliner_flag_is_any_test(), outliner_flag_set(), wmOperator::ptr, RNA_enum_get(), SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, SpaceOutliner::tree, TSE_SELECTED, and WM_event_add_notifier().
Referenced by OUTLINER_OT_select_all().
|
static |
Definition at line 386 of file outliner_sync.cc.
References BONE_SELECTED, blender::ed::outliner::TreeElement::directdata, EditBone::flag, TreeStoreElem::flag, TSE_ACTIVE, and TSE_SELECTED.
Referenced by outliner_sync_selection_to_outliner().
|
static |
Definition at line 359 of file outliner_sync.cc.
References BASE_SELECTED, BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), blender::ed::outliner::TreeElement::directdata, Base::flag, TreeStoreElem::flag, TreeStoreElem::id, TSE_ACTIVE, and TSE_SELECTED.
Referenced by outliner_sync_selection_to_outliner().
|
static |
Definition at line 407 of file outliner_sync.cc.
References blender::ed::outliner::TreeElement::directdata, bPoseChannel::flag, TreeStoreElem::flag, POSE_SELECTED, TSE_ACTIVE, and TSE_SELECTED.
Referenced by outliner_sync_selection_to_outliner().
|
static |
Definition at line 428 of file outliner_sync.cc.
References Strip::flag, TreeStoreElem::flag, blender::ed::outliner::TreeElementStrip::get_strip(), SELECT, tree_element_cast(), TREESTORE, TSE_ACTIVE, and TSE_SELECTED.
Referenced by outliner_sync_selection_to_outliner().
|
static |
Definition at line 189 of file outliner_sync.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BKE_view_layer_edit_object_get(), BKE_view_layer_synced_ensure(), BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), DEG_id_tag_update(), blender::ed::outliner::TreeElement::directdata, EBONE_SELECTABLE, ED_armature_ebone_select_set(), EditBone::flag, TreeStoreElem::flag, bArmature::id, TreeStoreElem::id, ID_RECALC_SELECT, NC_OBJECT, ND_BONE_SELECT, TSE_SELECTED, and WM_main_add_notifier().
Referenced by outliner_sync_selection_from_outliner().
|
static |
Definition at line 169 of file outliner_sync.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::ed::object::BA_DESELECT, blender::ed::object::BA_SELECT, blender::ed::object::base_select(), BASE_SELECTABLE, BKE_view_layer_base_find(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::ed::outliner::TreeElement::directdata, Base::flag, TreeStoreElem::flag, TreeStoreElem::id, and TSE_SELECTED.
Referenced by outliner_sync_selection_from_outliner().
|
static |
Definition at line 222 of file outliner_sync.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::animrig::bone_is_selectable(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), Object::data, DEG_id_tag_update(), blender::ed::outliner::TreeElement::directdata, bPoseChannel::flag, TreeStoreElem::flag, bArmature::id, TreeStoreElem::id, ID_RECALC_SELECT, NC_OBJECT, ND_BONE_SELECT, POSE_SELECTED, TSE_SELECTED, and WM_main_add_notifier().
Referenced by outliner_sync_selection_from_outliner().
|
static |
Definition at line 250 of file outliner_sync.cc.
References Strip::flag, TreeStoreElem::flag, blender::ed::outliner::TreeElementStrip::get_strip(), SELECT, blender::seq::select_active_set(), WorkSpace::sequencer_scene, tree_element_cast(), TREESTORE, TSE_ACTIVE, and TSE_SELECTED.
Referenced by outliner_sync_selection_from_outliner().
| void blender::ed::outliner::outliner_set_coordinates | ( | const ARegion * | region, |
| const SpaceOutliner * | space_outliner ) |
To retrieve coordinates with redrawing the entire tree.
Definition at line 1424 of file outliner_edit.cc.
References blender::ed::outliner::tree_iterator::all_open(), float, View2D::tot, UI_UNIT_Y, ARegion::v2d, blender::ed::outliner::TreeElement::xs, rctf::ymax, and blender::ed::outliner::TreeElement::ys.
Referenced by outliner_restore_scrolling_position(), outliner_show_active(), and outliner_store_scrolling_position().
|
static |
Definition at line 1256 of file outliner_select.cc.
References BCONTEXT_BONE, BCONTEXT_BONE_CONSTRAINT, BCONTEXT_COLLECTION, BCONTEXT_CONSTRAINT, BCONTEXT_DATA, BCONTEXT_MATERIAL, BCONTEXT_MODIFIER, BCONTEXT_OBJECT, BCONTEXT_PARTICLE, BCONTEXT_PHYSICS, BCONTEXT_SCENE, BCONTEXT_SHADERFX, BCONTEXT_VIEW_LAYER, BCONTEXT_WORLD, BKE_constraint_panel_expand(), BKE_modifier_panel_expand(), BKE_shaderfx_panel_expand(), C, Object::data, blender::ed::outliner::TreeElement::directdata, eModifierType_Cloth, eModifierType_Collision, eModifierType_DynamicPaint, eModifierType_Fluid, eModifierType_Fluidsim, eModifierType_ParticleSystem, eModifierType_Softbody, bArmature::id, Object::id, TreeStoreElem::id, ID_AR, ID_CA, ID_CU_LEGACY, ID_CV, ID_GD_LEGACY, ID_GP, ID_IM, ID_KE, ID_LA, ID_LP, ID_LT, ID_MA, ID_MB, ID_ME, ID_OB, ID_PT, ID_SCE, ID_SPK, ID_VO, ID_WO, blender::ed::outliner::TreeElement::idcode, outliner_find_parent_bone(), outliner_sync_to_properties_editors(), psys_get_current(), ptr, RNA_id_pointer_create(), RNA_pointer_create_discrete(), TREESTORE, TSE_BONE, TSE_BONE_COLLECTION, TSE_BONE_COLLECTION_BASE, TSE_CONSTRAINT, TSE_CONSTRAINT_BASE, TSE_DEFGROUP, TSE_DEFGROUP_BASE, TSE_EBONE, TSE_GP_LAYER, TSE_GPENCIL_EFFECT, TSE_GPENCIL_EFFECT_BASE, TSE_GREASE_PENCIL_NODE, TSE_LAYER_COLLECTION, TSE_LINKED_NODE_TREE, TSE_LINKED_PSYS, TSE_MODIFIER, TSE_MODIFIER_BASE, TSE_POSE_BASE, TSE_POSE_CHANNEL, TSE_R_LAYER, TSE_SOME_ID, ModifierData::type, and TreeStoreElem::type.
Referenced by outliner_item_do_activate_from_cursor().
|
static |
Definition at line 3294 of file outliner_draw.cc.
References blender::ed::outliner::tree_iterator::all(), outliner_set_subtree_coords(), and blender::ed::outliner::TreeElement::subtree.
Referenced by outliner_draw_tree_element(), and outliner_set_subtree_coords().
|
static |
Definition at line 1493 of file outliner_edit.cc.
References LISTBASE_FOREACH, outliner_open_back(), outliner_set_coordinates(), outliner_show_active(), blender::ed::outliner::TreeElement::subtree, and TREESTORE.
Referenced by outliner_item_rename_invoke(), outliner_show_active(), and outliner_show_active_exec().
|
static |
Definition at line 1511 of file outliner_edit.cc.
References BLI_rcti_size_y(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_region(), CTX_wm_space_outliner(), View2D::cur, ED_region_tag_redraw_no_rebuild(), LISTBASE_FOREACH, View2D::mask, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_scroll_view(), outliner_show_active(), outliner_show_active_get_element(), SpaceOutliner::tree, TREESTORE, ARegion::v2d, rctf::ymax, and blender::ed::outliner::TreeElement::ys.
Referenced by OUTLINER_OT_show_active().
|
static |
Definition at line 1455 of file outliner_edit.cc.
References BKE_object_pose_armature_get(), BKE_pose_channel_active(), BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), CTX_data_active_bone(), Object::id, Object::mode, OB_ARMATURE, OB_MODE_EDIT, OB_MODE_POSE, outliner_find_editbone(), outliner_find_id(), outliner_find_posechannel(), blender::ed::outliner::TreeElement::subtree, SpaceOutliner::tree, and Object::type.
Referenced by outliner_show_active_exec().
|
static |
Definition at line 1741 of file outliner_edit.cc.
References CTX_data_scene(), CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw(), OPERATOR_FINISHED, and tree_element_show_hierarchy().
Referenced by OUTLINER_OT_show_hierarchy().
| bool blender::ed::outliner::outliner_shows_mode_column | ( | const SpaceOutliner & | space_outliner | ) |
Iterate over the entire tree (including collapsed sub-elements), probing if any of the elements has a warning to be displayed.
Definition at line 20 of file outliner_query.cc.
References SpaceOutliner::flag, SpaceOutliner::runtime, SO_MODE_COLUMN, blender::ed::outliner::AbstractTreeDisplay::supports_mode_column(), and blender::ed::outliner::SpaceOutliner_Runtime::tree_display.
Referenced by draw_outliner(), and outliner_is_co_within_mode_column().
|
static |
Definition at line 559 of file outliner_tree.cc.
References BLI_addtail(), BLI_listbase_clear(), BLI_listbase_count(), ELEM, blender::ed::outliner::tTreeSort::id, TreeStoreElem::id, ID_OB, blender::ed::outliner::TreeElement::idcode, blender::ed::outliner::tTreeSort::idcode, ListBase::last, LISTBASE_FOREACH, MEM_freeN(), MEM_malloc_arrayN(), blender::ed::outliner::tTreeSort::name, outliner_sort(), blender::ed::outliner::tTreeSort::te, treesort_alpha(), treesort_alpha_ob(), TREESTORE, TSE_DEFGROUP, TSE_ID_BASE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_build_tree(), and outliner_sort().
|
static |
Definition at line 575 of file space_outliner.cc.
References BLI_mempool_iternew(), BLI_mempool_iterstep(), TreeStoreElem::id, SO_TREESTORE_REBUILD, SpaceOutliner::storeflag, SpaceOutliner::treestore, and TSE_IS_REAL_ID.
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 544 of file space_outliner.cc.
References BLI_listbase_clear(), BLI_mempool_alloc(), BLI_MEMPOOL_ALLOW_ITER, BLI_mempool_create(), BLO_read_get_new_data_address_no_us(), TreeStore::data, i, SpaceOutliner::runtime, SO_TREESTORE_CLEANUP, SpaceOutliner::storeflag, SpaceOutliner::tree, SpaceOutliner::treestore, and TreeStore::usedelem.
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 651 of file space_outliner.cc.
References write_space_outliner().
Referenced by ED_spacetype_outliner().
|
static |
Definition at line 1376 of file outliner_edit.cc.
References BKE_area_find_region_type(), CTX_wm_area(), CTX_wm_space_outliner(), OPERATOR_FINISHED, RGN_TYPE_HEADER, and UI_textbutton_activate_rna().
Referenced by OUTLINER_OT_start_filter().
|
static |
Definition at line 51 of file outliner_tree.cc.
References BLI_mempool_alloc(), BLI_MEMPOOL_ALLOW_ITER, BLI_mempool_create(), BLI_mempool_destroy(), BLI_mempool_iternew(), BLI_mempool_iterstep(), BLI_mempool_len(), TreeStoreElem::id, SpaceOutliner::runtime, SO_TREESTORE_CLEANUP, SpaceOutliner::storeflag, blender::ed::outliner::SpaceOutliner_Runtime::tree_hash, SpaceOutliner::treestore, and TreeStoreElem::used.
Referenced by outliner_build_tree(), and outliner_cleanup_tree().
|
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 810 of file outliner_tree.cc.
References View2D::cur, outliner_find_first_desired_element_at_y(), outliner_set_coordinates(), TREESTORE, blender::ed::outliner::OutlinerTreeElementFocus::tselem, ARegion::v2d, rctf::ymax, rctf::ymin, blender::ed::outliner::OutlinerTreeElementFocus::ys, and blender::ed::outliner::TreeElement::ys.
Referenced by outliner_build_tree().
|
static |
Set which types of data to sync when syncing selection from the outliner based on object interaction mode and outliner display mode
Definition at line 118 of file outliner_sync.cc.
References C, blender::ed::outliner::SyncSelectTypes::edit_bone, Object::mode, OB_ARMATURE, blender::ed::outliner::TreeViewContext::ob_edit, OB_MODE_POSE, blender::ed::outliner::TreeViewContext::ob_pose, blender::ed::outliner::SyncSelectTypes::object, outliner_viewcontext_init(), SpaceOutliner::outlinevis, blender::ed::outliner::SyncSelectTypes::pose_bone, blender::ed::outliner::SyncSelectTypes::seq_strip, SO_SEQUENCE, and Object::type.
Referenced by ED_outliner_select_sync_from_outliner().
|
static |
Current dirty flags and outliner display mode determine which type of syncing should occur. This is to ensure sync flag data is not lost on sync in the wrong display mode. Returns true if a sync is needed.
Definition at line 138 of file outliner_sync.cc.
References blender::ed::outliner::SyncSelectTypes::edit_bone, Object::mode, OB_ARMATURE, blender::ed::outliner::TreeViewContext::ob_edit, OB_MODE_POSE, blender::ed::outliner::TreeViewContext::ob_pose, blender::ed::outliner::SyncSelectTypes::object, SpaceOutliner::outlinevis, blender::ed::outliner::SyncSelectTypes::pose_bone, blender::ed::outliner::SyncSelectTypes::seq_strip, SO_SEQUENCE, SpaceOutliner::sync_select_dirty, Object::type, WM_OUTLINER_SYNC_SELECT_FROM_EDIT_BONE, WM_OUTLINER_SYNC_SELECT_FROM_OBJECT, WM_OUTLINER_SYNC_SELECT_FROM_POSE_BONE, and WM_OUTLINER_SYNC_SELECT_FROM_SEQUENCE.
Referenced by outliner_sync_selection().
| void blender::ed::outliner::outliner_sync_selection | ( | const bContext * | C, |
| const TreeViewContext & | tvc, | ||
| SpaceOutliner * | space_outliner ) |
If outliner is dirty sync selection from view layer and sequencer.
Definition at line 515 of file outliner_sync.cc.
References C, blender::ed::outliner::SyncSelectTypes::edit_bone, get_sync_select_active_data(), blender::ed::outliner::SyncSelectTypes::object, outliner_sync_select_to_outliner_set_types(), outliner_sync_selection_to_outliner(), blender::ed::outliner::SyncSelectTypes::pose_bone, blender::ed::outliner::TreeViewContext::scene, blender::ed::outliner::SyncSelectTypes::seq_strip, SpaceOutliner::sync_select_dirty, SpaceOutliner::tree, blender::ed::outliner::TreeViewContext::view_layer, WM_OUTLINER_SYNC_SELECT_FROM_EDIT_BONE, WM_OUTLINER_SYNC_SELECT_FROM_OBJECT, WM_OUTLINER_SYNC_SELECT_FROM_POSE_BONE, and WM_OUTLINER_SYNC_SELECT_FROM_SEQUENCE.
Referenced by draw_outliner().
|
static |
Sync select and active flags from outliner to active view layer, bones, and sequencer.
Definition at line 274 of file outliner_sync.cc.
References blender::ed::outliner::SyncSelectTypes::edit_bone, blender::ed::outliner::SelectedItems::edit_bones, ID_OB, LISTBASE_FOREACH, blender::ed::outliner::SyncSelectTypes::object, blender::ed::outliner::SelectedItems::objects, outliner_select_sync_to_edit_bone(), outliner_select_sync_to_object(), outliner_select_sync_to_pose_bone(), outliner_select_sync_to_strip(), outliner_sync_selection_from_outliner(), blender::ed::outliner::SyncSelectTypes::pose_bone, blender::ed::outliner::SelectedItems::pose_bones, blender::ed::outliner::SyncSelectTypes::seq_strip, tree, TREESTORE, TSE_EBONE, TSE_POSE_CHANNEL, TSE_SOME_ID, TSE_STRIP, and TreeStoreElem::type.
Referenced by ED_outliner_select_sync_from_outliner(), and outliner_sync_selection_from_outliner().
|
static |
Sync select and active flags from active view layer, bones, and sequences to the outliner.
Definition at line 462 of file outliner_sync.cc.
References blender::ed::outliner::SyncSelectActiveData::edit_bone, blender::ed::outliner::SyncSelectTypes::edit_bone, TreeStoreElem::flag, ID_OB, LISTBASE_FOREACH, blender::ed::outliner::SyncSelectActiveData::object, blender::ed::outliner::SyncSelectTypes::object, outliner_select_sync_from_edit_bone(), outliner_select_sync_from_object(), outliner_select_sync_from_pose_bone(), outliner_select_sync_from_strip(), outliner_sync_selection_to_outliner(), blender::ed::outliner::SyncSelectTypes::pose_bone, blender::ed::outliner::SyncSelectActiveData::pose_channel, blender::ed::outliner::SyncSelectTypes::seq_strip, blender::ed::outliner::SyncSelectActiveData::strip, tree, TREESTORE, TSE_ACTIVE, TSE_EBONE, TSE_POSE_CHANNEL, TSE_SELECTED, TSE_SOME_ID, TSE_STRIP, and TreeStoreElem::type.
Referenced by outliner_sync_selection(), and outliner_sync_selection_to_outliner().
|
static |
Definition at line 1238 of file outliner_select.cc.
References bScreen::areabase, C, CTX_wm_screen(), ED_buttons_set_context(), ED_buttons_should_sync_with_outliner(), LISTBASE_FOREACH, ptr, and SPACE_PROPERTIES.
Referenced by outliner_set_properties_tab().
| 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 461 of file outliner_utils.cc.
References ED_region_tag_redraw(), ED_region_tag_redraw_no_rebuild(), SpaceOutliner::runtime, and blender::ed::outliner::SpaceOutliner_Runtime::tree_display.
Referenced by outliner_item_openclose_invoke(), outliner_item_openclose_modal(), and outliner_walk_select_invoke().
|
static |
Definition at line 1284 of file outliner_edit.cc.
References CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw(), OPERATOR_FINISHED, outliner_flag_is_any_test(), outliner_flag_set(), SpaceOutliner::tree, and TSE_CLOSED.
Referenced by OUTLINER_OT_expanded_toggle().
| void blender::ed::outliner::outliner_tree_dimensions | ( | SpaceOutliner * | space_outliner, |
| int * | r_width, | ||
| int * | r_height ) |
Definition at line 117 of file outliner_draw.cc.
References outliner_tree_dimensions_impl(), and SpaceOutliner::tree.
Referenced by draw_outliner(), and outliner_scroll_view().
|
static |
Definition at line 96 of file outliner_draw.cc.
References LISTBASE_FOREACH, outliner_tree_dimensions_impl(), TREESTORE, TSELEM_OPEN, and UI_UNIT_Y.
Referenced by outliner_tree_dimensions(), and outliner_tree_dimensions_impl().
| bool blender::ed::outliner::outliner_tree_traverse | ( | const SpaceOutliner * | space_outliner, |
| ListBase * | 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.
| filter_te_flag | If not 0, only TreeElements with this flag will be visited. |
| filter_tselem_flag | Same as filter_te_flag, but for the TreeStoreElem. |
| func | Custom callback to execute for each visited item. |
Definition at line 285 of file outliner_utils.cc.
References TreeStoreElem::flag, outliner_tree_traverse(), TRAVERSE_BREAK, TRAVERSE_CONTINUE, TRAVERSE_SKIP_CHILDS, tree, and TREESTORE.
Referenced by collection_duplicate_exec(), collection_flag_exec(), collection_instance_exec(), collection_isolate_exec(), collection_link_exec(), collection_new_exec(), collection_objects_select_exec(), collection_view_layer_exec(), collection_visibility_exec(), collections_view_layer_poll(), 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().
|
static |
Definition at line 1564 of file outliner_collections.cc.
References BASE_HIDDEN, BKE_layer_collection_set_flag(), BKE_view_layer_need_resync_tag(), BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), C, CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), ListBase::first, Scene::id, ID_RECALC_BASE_FLAGS, LAYER_COLLECTION_HIDE, LayerCollection::layer_collections, ViewLayer::layer_collections, LISTBASE_FOREACH, NC_SCENE, ND_LAYER_CONTENT, OPERATOR_FINISHED, and WM_main_add_notifier().
Referenced by OUTLINER_OT_unhide_all().
|
static |
Definition at line 4009 of file outliner_draw.cc.
References OL_Y_OFFSET, outliner_update_viewable_area(), outliner_width(), UI_view2d_totRect_set(), ARegion::v2d, and V2D_SCROLL_HEIGHT.
Referenced by draw_outliner(), and outliner_update_viewable_area().
|
static |
Definition at line 185 of file outliner_collections.cc.
References C, CTX_wm_space_outliner(), SpaceOutliner::outlinevis, and SO_VIEW_LAYER.
Referenced by OUTLINER_OT_hide(), and OUTLINER_OT_unhide_all().
| void blender::ed::outliner::outliner_viewcontext_init | ( | const bContext * | C, |
| TreeViewContext * | tvc ) |
Definition at line 42 of file outliner_utils.cc.
References BKE_object_pose_armature_get(), BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), CTX_data_layer_collection(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_workspace(), blender::ed::outliner::TreeViewContext::layer_collection, Object::mode, OB_ARMATURE, blender::ed::outliner::TreeViewContext::ob_edit, OB_MESH, OB_MODE_WEIGHT_PAINT, blender::ed::outliner::TreeViewContext::ob_pose, blender::ed::outliner::TreeViewContext::obact, OBEDIT_FROM_OBACT, blender::ed::outliner::TreeViewContext::scene, Object::type, blender::ed::outliner::TreeViewContext::view_layer, and blender::ed::outliner::TreeViewContext::workspace.
Referenced by draw_outliner(), namebutton_fn(), outliner_item_select(), outliner_mode_toggle_fn(), and outliner_sync_select_from_outliner_set_types().
|
static |
Definition at line 2121 of file outliner_select.cc.
References outliner_item_openclose(), outliner_walk_left(), blender::ed::outliner::TreeElement::parent, TREESTORE, and TSELEM_OPEN.
Referenced by do_outliner_select_walk(), and outliner_walk_left().
|
static |
Definition at line 2138 of file outliner_select.cc.
References BLI_listbase_is_empty(), ListBase::first, outliner_item_openclose(), outliner_walk_right(), blender::ed::outliner::TreeElement::subtree, TREESTORE, and TSELEM_OPEN.
Referenced by do_outliner_select_walk(), and outliner_walk_right().
|
static |
Definition at line 2213 of file outliner_select.cc.
References View2D::cur, outliner_scroll_view(), outliner_walk_scroll(), UI_UNIT_Y, ARegion::v2d, rctf::ymax, rctf::ymin, and blender::ed::outliner::TreeElement::ys.
Referenced by outliner_walk_scroll(), and outliner_walk_select_invoke().
|
static |
Definition at line 2228 of file outliner_select.cc.
References C, CTX_wm_region(), CTX_wm_space_outliner(), do_outliner_select_walk(), ED_outliner_select_sync_from_outliner(), find_walk_select_start_element(), OL_ITEM_ACTIVATE, OL_ITEM_EXTEND, OL_ITEM_SELECT, OPERATOR_FINISHED, outliner_item_select(), outliner_tag_redraw_avoid_rebuild_on_open_change(), outliner_walk_scroll(), outliner_walk_select_invoke(), wmOperator::ptr, RNA_boolean_get(), and RNA_enum_get().
Referenced by OUTLINER_OT_select_walk(), and outliner_walk_select_invoke().
|
static |
Definition at line 3998 of file outliner_draw.cc.
References OL_RNA_COL_SIZEX, outliner_data_api_buttons_start_x(), outliner_width(), SpaceOutliner::outlinevis, SO_DATA_API, and UI_SCALE_FAC.
Referenced by outliner_update_viewable_area(), and outliner_width().
|
static |
Definition at line 506 of file outliner_dragdrop.cc.
References C, blender::ed::object::CLEAR_PARENT_ALL, blender::ed::object::CLEAR_PARENT_KEEP_TRANSFORM, CTX_data_main(), wmEvent::custom, DEG_relations_tag_update(), EVT_DATA_DRAGDROP, ListBase::first, GS, Object::id, ID_OB, wmDrag::ids, KM_ALT, LISTBASE_FOREACH, wmEvent::modifier, NC_OBJECT, ND_PARENT, ND_TRANSFORM, OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::ed::object::parent_clear(), and WM_event_add_notifier().
Referenced by OUTLINER_OT_parent_clear().
|
static |
Definition at line 466 of file outliner_dragdrop.cc.
References allow_parenting_without_modifier_key(), C, CTX_wm_space_outliner(), ELEM, GS, TreeStoreElem::id, ID_GR, ID_OB, KM_SHIFT, wmEvent::modifier, ID::name, outliner_drop_find(), Object::parent, TREESTORE, TSE_CONSTRAINT_BASE, TSE_LIBRARY_OVERRIDE_BASE, TSE_MODIFIER_BASE, TreeStoreElem::type, and WM_drag_get_local_ID().
Referenced by outliner_dropboxes().
|
static |
Definition at line 271 of file outliner_dragdrop.cc.
References BKE_object_is_child_recursive(), BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), TreeStoreElem::id, ID_OB, ID_SCE, blender::ed::outliner::TreeElement::idcode, LISTBASE_FOREACH, outliner_search_back(), Object::parent, TREESTORE, TSE_SOME_ID, TreeStoreElem::type, and Scene::view_layers.
Referenced by parent_drop_poll().
|
static |
Definition at line 408 of file outliner_dragdrop.cc.
References C, wmEvent::custom, ELEM, EVT_DATA_DRAGDROP, ListBase::first, TreeStoreElem::id, ID_OB, blender::ed::outliner::TreeElement::idcode, wmDrag::ids, KM_ALT, wmEvent::modifier, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_drop_find(), blender::ed::object::PAR_OBJECT, parent_drop_set_parents(), wmOperator::reports, TREESTORE, TSE_SOME_ID, TreeStoreElem::type, and WM_drag_get_local_ID_from_event().
Referenced by OUTLINER_OT_parent_drop().
|
static |
Definition at line 320 of file outliner_dragdrop.cc.
References allow_parenting_without_modifier_key(), C, CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw_no_rebuild(), ID_OB, KM_SHIFT, wmEvent::modifier, outliner_drop_find(), outliner_flag_set(), parent_drop_allowed(), TREESTORE, TSE_DRAG_ANY, TSE_DRAG_INTO, and WM_drag_get_local_ID().
Referenced by outliner_dropboxes().
|
static |
Definition at line 354 of file outliner_dragdrop.cc.
References BKE_id_is_editable(), BKE_report(), C, CTX_data_main(), CTX_data_scene(), CTX_wm_space_outliner(), DEG_relations_tag_update(), GS, Object::id, ID_OB, ID_SCE, NC_OBJECT, ND_PARENT, ND_TRANSFORM, wmDragID::next, outliner_find_id(), outliner_search_back(), blender::ed::object::parent_set(), RPT_INFO, SpaceOutliner::tree, and WM_event_add_notifier().
Referenced by parent_drop_invoke().
|
static |
Definition at line 2093 of file outliner_tools.cc.
References blender::ed::outliner::TreeElement::directdata, bPoseChannel::drawflag, bPoseChannel::flag, OL_DOP_DESELECT, OL_DOP_HIDE, OL_DOP_SELECT, OL_DOP_UNHIDE, PCHAN_DRAW_HIDDEN, and POSE_SELECTED.
Referenced by outliner_data_operation_exec().
|
static |
Definition at line 1758 of file outliner_tools.cc.
References IdAdtTemplate::adt, DRIVER_FLAG_INVALID, AnimData::drivers, FCURVE_DISABLED, TreeStoreElem::id, and LISTBASE_FOREACH.
Referenced by outliner_animdata_operation_exec().
|
static |
Definition at line 199 of file outliner_draw.cc.
References BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, BONE_UNSELECTABLE, C, CTX_wm_window(), DEG_id_tag_update(), Bone::flag, bArmature::id, ID_RECALC_SYNC_TO_EVAL, KM_SHIFT, NC_OBJECT, ND_POSE, restrictbutton_bone_select_fn(), restrictbutton_recursive_bone(), and WM_event_add_notifier().
Referenced by outliner_draw_restrictbuts(), and restrictbutton_bone_select_fn().
|
static |
Definition at line 182 of file outliner_draw.cc.
References C, CTX_wm_window(), KM_SHIFT, Object::pose, and blender::animrig::pose_bone_descendent_iterator().
Referenced by outliner_draw_restrictbuts().
|
static |
Definition at line 216 of file outliner_draw.cc.
References BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, BONE_UNSELECTABLE, C, CTX_wm_window(), EditBone::flag, KM_SHIFT, NC_OBJECT, ND_POSE, restrictbutton_ebone_select_fn(), restrictbutton_recursive_ebone(), and WM_event_add_notifier().
Referenced by outliner_draw_restrictbuts(), and restrictbutton_ebone_select_fn().
|
static |
Definition at line 233 of file outliner_draw.cc.
References BONE_HIDDEN_A, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, C, CTX_wm_window(), EditBone::flag, KM_SHIFT, NC_OBJECT, ND_POSE, restrictbutton_ebone_visibility_fn(), restrictbutton_recursive_ebone(), and WM_event_add_notifier().
Referenced by outliner_draw_restrictbuts(), and restrictbutton_ebone_visibility_fn().
|
static |
Definition at line 248 of file outliner_draw.cc.
References C, DEG_id_tag_update(), ID_RECALC_GEOMETRY, NA_EDITED, NC_GPENCIL, ND_DATA, restrictbutton_gp_layer_flag_fn(), and WM_event_add_notifier().
Referenced by outliner_draw_restrictbuts(), and restrictbutton_gp_layer_flag_fn().
|
static |
Definition at line 256 of file outliner_draw.cc.
References BLI_assert, ID::flag, ID_FLAG_FAKEUSER, id_us_min(), id_us_plus(), and restrictbutton_id_user_toggle().
Referenced by outliner_draw_userbuts(), and restrictbutton_id_user_toggle().
|
static |
Definition at line 177 of file outliner_draw.cc.
References C, NC_SCENE, ND_RENDER_OPTIONS, and WM_event_add_notifier().
Referenced by outliner_draw_restrictbuts().
|
static |
Definition at line 163 of file outliner_draw.cc.
References BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, Bone::childbase, flag, LISTBASE_FOREACH, and restrictbutton_recursive_bone().
Referenced by restrictbutton_bone_select_fn(), and restrictbutton_recursive_bone().
|
static |
Definition at line 145 of file outliner_draw.cc.
References BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, ED_armature_ebone_is_child_recursive(), bArmature::edbo, flag, and LISTBASE_FOREACH.
Referenced by restrictbutton_ebone_select_fn(), and restrictbutton_ebone_visibility_fn().
|
static |
Definition at line 562 of file outliner_dragdrop.cc.
References blender::ed::object::BA_SELECT, blender::ed::object::base_select(), BKE_collection_object_add(), BKE_id_is_editable(), BKE_scene_has_object(), BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), C, CTX_data_collection(), CTX_data_main(), CTX_data_scene(), CTX_wm_region(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_region_tag_redraw(), ELEM, Scene::id, ID_OB, ID_RECALC_SELECT, ID_SCE, LISTBASE_FOREACH, Scene::master_collection, NC_SCENE, ND_OB_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_ID_drop_find(), Scene::view_layers, WM_drag_get_local_ID_from_event(), and WM_main_add_notifier().
Referenced by OUTLINER_OT_scene_drop().
|
static |
Definition at line 555 of file outliner_dragdrop.cc.
References C, ID_OB, ID_SCE, outliner_ID_drop_find(), and WM_drag_get_local_ID().
Referenced by outliner_dropboxes().
|
static |
Definition at line 717 of file outliner_tools.cc.
References C, CTX_data_main(), ED_scene_delete(), TreeStoreElem::id, NA_REMOVED, NC_SCENE, OL_SCENE_OP_DELETE, and WM_event_add_notifier().
Referenced by outliner_scene_operation_exec().
|
static |
Collection properties called from the Scenes mode. Change the collection children but no objects.
Definition at line 700 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().
|
static |
Definition at line 2150 of file outliner_tools.cc.
References BLI_findindex(), blender::seq::editing_get(), Strip::flag, blender::ed::outliner::TreeElementStrip::get_strip(), OL_DOP_DESELECT, OL_DOP_HIDE, OL_DOP_SELECT, OL_DOP_UNHIDE, blender::seq::relations_invalidate_cache(), SELECT, blender::ed::vse::select_strip_single(), SEQ_MUTE, and tree_element_cast().
Referenced by outliner_data_operation_exec().
|
static |
Definition at line 1630 of file outliner_tools.cc.
References IdAdtTemplate::adt, C, IdAdtTemplate::id, TreeStoreElem::id, ID_AC, id_single_user(), blender::ed::outliner::TreeElement::idcode, ptr, RNA_pointer_create_discrete(), and RNA_struct_find_property().
Referenced by outliner_id_operation_exec().
|
static |
Definition at line 1656 of file outliner_tools.cc.
References C, Scene::id, TreeStoreElem::id, id_single_user(), ptr, RNA_id_pointer_create(), and RNA_struct_find_property().
Referenced by outliner_id_operation_exec().
|
static |
Definition at line 3592 of file outliner_draw.cc.
References ID_OB, LISTBASE_FOREACH, subtree_contains_object(), TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_draw_hierarchy_lines_recursive(), and subtree_contains_object().
|
static |
Helper function for #tree_element_shwo_hierarchy() - recursively checks whether subtrees have any objects.
Definition at line 1690 of file outliner_edit.cc.
References ID_OB, LISTBASE_FOREACH, subtree_has_objects(), TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by subtree_has_objects(), and tree_element_show_hierarchy().
|
static |
Definition at line 708 of file outliner_tree.cc.
References outliner_is_collection_tree_element().
Referenced by outliner_find_first_desired_element_at_y().
|
static |
Definition at line 713 of file outliner_tree.cc.
References ID_OB, blender::ed::outliner::TreeElement::idcode, TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_find_first_desired_element_at_y().
| void blender::ed::outliner::tree_element_activate | ( | bContext * | C, |
| const TreeViewContext & | tvc, | ||
| TreeElement * | te, | ||
| eOLSetState | set, | ||
| bool | handle_all_types ) |
Generic call for ID data check or make/check active in UI.
Definition at line 820 of file outliner_select.cc.
References C, ID_CA, ID_MA, ID_OB, ID_TXT, ID_WO, blender::ed::outliner::TreeElement::idcode, blender::ed::outliner::TreeViewContext::scene, tree_element_camera_activate(), tree_element_material_activate(), tree_element_object_activate(), tree_element_text_activate(), tree_element_world_activate(), and blender::ed::outliner::TreeViewContext::view_layer.
Referenced by namebutton_fn().
|
static |
Definition at line 1147 of file outliner_select.cc.
References Scene::camera, ID_OB, OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, and outliner_search_back().
Referenced by tree_element_active_state_get().
|
static |
Edit-bones only draw in edit-mode armature.
Definition at line 639 of file outliner_select.cc.
References bArmature::act_edbone, C, CTX_data_edit_object(), EBONE_SELECTABLE, ED_armature_ebone_select_set(), NC_OBJECT, ND_BONE_ACTIVE, and WM_event_add_notifier().
Referenced by tree_element_ebone_activate().
|
static |
Definition at line 1087 of file outliner_select.cc.
References Object::actcol, BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), ID_OB, blender::ed::outliner::TreeElement::idcode, blender::ed::outliner::TreeElement::index, Object::matbits, OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, outliner_search_back(), and blender::ed::outliner::TreeElement::parent.
Referenced by tree_element_active_state_get().
|
static |
Definition at line 1121 of file outliner_select.cc.
References TreeStoreElem::id, ID_SCE, blender::ed::outliner::TreeElement::idcode, OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, and blender::ed::outliner::TreeViewContext::scene.
Referenced by tree_element_active_state_get().
| eOLDrawState blender::ed::outliner::tree_element_active_state_get | ( | const TreeViewContext & | tvc, |
| const TreeElement * | te, | ||
| const TreeStoreElem * | tselem ) |
Definition at line 1154 of file outliner_select.cc.
References ID_CA, ID_MA, ID_OB, ID_SCE, ID_WO, blender::ed::outliner::TreeElement::idcode, OL_DRAWSEL_NONE, blender::ed::outliner::TreeViewContext::scene, tree_element_active_camera_get(), tree_element_active_material_get(), tree_element_active_scene_get(), tree_element_active_world_get(), and blender::ed::outliner::TreeViewContext::view_layer.
Referenced by outliner_draw_iconrow(), and outliner_draw_tree_element().
|
static |
Definition at line 1133 of file outliner_select.cc.
References TreeStoreElem::id, OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, blender::ed::outliner::TreeElement::parent, and TREESTORE.
Referenced by tree_element_active_state_get().
|
static |
Definition at line 595 of file outliner_select.cc.
References bArmature::act_bone, BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), blender::animrig::bone_is_visible(), BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, BONE_UNSELECTABLE, bArmature::bonebase, C, blender::ed::outliner::TreeElement::directdata, do_outliner_bone_select_recursive(), ListBase::first, Bone::flag, TreeStoreElem::id, NC_OBJECT, ND_BONE_ACTIVE, Bone::next, OL_SETSEL_EXTEND, and WM_event_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 1013 of file outliner_select.cc.
References bArmature_Runtime::active_collection, blender::ed::outliner::TreeElement::directdata, TreeStoreElem::id, OL_DRAWSEL_ACTIVE, OL_DRAWSEL_NONE, and bArmature::runtime.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 928 of file outliner_select.cc.
References BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), BONE_SELECTED, Object::data, blender::ed::outliner::TreeElement::directdata, Bone::flag, TreeStoreElem::id, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 532 of file outliner_select.cc.
References ANIM_armature_bonecoll_active_set(), C, blender::ed::outliner::TreeElement::directdata, TreeStoreElem::id, NC_OBJECT, ND_BONE_COLLECTION, and WM_event_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 438 of file outliner_select.cc.
References C, Scene::camera, CTX_data_main(), DEG_id_tag_update(), DEG_relations_tag_update(), ListBase::first, Scene::id, ID_OB, ID_RECALC_SYNC_TO_EVAL, NA_EDITED, NC_SCENE, outliner_search_back(), Main::wm, WM_event_add_notifier(), and WM_windows_scene_data_sync().
Referenced by tree_element_activate().
| TreeElementT * blender::ed::outliner::tree_element_cast | ( | const TreeElement * | te | ) |
Helper to safely "cast" a TreeElement to its new C++ AbstractTreeElement, if possible.
Definition at line 694 of file outliner_intern.hh.
References blender::ed::outliner::TreeElement::abstract_element.
Referenced by data_select_linked_fn(), do_outliner_drivers_editop(), do_outliner_keyingset_editop(), element_should_draw_faded(), blender::ed::outliner::TreeElementRNAStruct::expand(), blender::ed::outliner::TreeElementRNAArrayElement::get_property_rna(), grease_pencil_node_fn(), namebutton_fn(), outliner_draw_get_warning_tree_element(), outliner_draw_get_warning_tree_element_subtree(), outliner_draw_hierarchy_lines_recursive(), outliner_draw_iconrow(), outliner_draw_overrides_restrictbuts(), outliner_draw_overrides_rna_buts(), outliner_draw_restrictbuts(), outliner_draw_rnabuts(), outliner_draw_tree_element(), outliner_find_id(), outliner_select_sync_from_strip(), outliner_select_sync_to_strip(), sequence_fn(), tree_element_get_icon(), tree_element_grease_pencil_node_activate(), tree_element_grease_pencil_node_state_get(), tree_element_strip_activate(), tree_element_strip_dup_state_get(), tree_element_strip_state_get(), tree_element_to_path(), and blender::ed::outliner::TreeElementIDAction::TreeElementIDAction().
|
static |
Definition at line 709 of file outliner_select.cc.
References C, TreeStoreElem::id, NC_OBJECT, ND_CONSTRAINT, blender::ed::outliner::TreeElement::parent, tree_element_posechannel_activate(), TREESTORE, TSE_POSE_CHANNEL, TreeStoreElem::type, and WM_event_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 471 of file outliner_select.cc.
References BKE_object_defgroup_active_index_set(), BLI_assert, C, DEG_id_tag_update(), Object::id, TreeStoreElem::id, ID_RECALC_GEOMETRY, blender::ed::outliner::TreeElement::index, NC_OBJECT, ND_TRANSFORM, and WM_event_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 913 of file outliner_select.cc.
References BKE_object_defgroup_active_index_get(), BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), TreeStoreElem::id, blender::ed::outliner::TreeElement::index, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 650 of file outliner_select.cc.
References BKE_view_layer_array_from_bases_in_mode_params(), BONE_SELECTED, C, blender::ed::outliner::TreeElement::directdata, do_outliner_ebone_select_recursive(), ED_armature_edit_deselect_all_multi_ex(), EditBone::flag, TreeStoreElem::id, ObjectsInModeParams::no_dup_data, OB_MODE_EDIT, ObjectsInModeParams::object_mode, OL_SETSEL_EXTEND, OL_SETSEL_NORMAL, and tree_element_active_ebone__sel().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 945 of file outliner_select.cc.
References BONE_SELECTED, blender::ed::outliner::TreeElement::directdata, EditBone::flag, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
| void blender::ed::outliner::tree_element_expand | ( | const AbstractTreeElement & | tree_element, |
| SpaceOutliner & | space_outliner ) |
Definition at line 261 of file tree_element.cc.
Referenced by blender::ed::outliner::AbstractTreeDisplay::add_element().
| TreeElementIcon blender::ed::outliner::tree_element_get_icon | ( | TreeStoreElem * | tselem, |
| TreeElement * | te ) |
Definition at line 2629 of file outliner_draw.cc.
References blender::ed::outliner::TreeElement::abstract_element, blender::bke::greasepencil::TreeNode::as_group(), BKE_modifier_get_info(), BLI_findlink(), COLLECTION_IS_MASTER, GreasePencilLayerTreeGroup::color_tag, CONSTRAINT_TYPE_ACTION, CONSTRAINT_TYPE_ARMATURE, CONSTRAINT_TYPE_CAMERASOLVER, CONSTRAINT_TYPE_CHILDOF, CONSTRAINT_TYPE_CLAMPTO, CONSTRAINT_TYPE_DAMPTRACK, CONSTRAINT_TYPE_DISTLIMIT, CONSTRAINT_TYPE_FOLLOWPATH, CONSTRAINT_TYPE_FOLLOWTRACK, CONSTRAINT_TYPE_GEOMETRY_ATTRIBUTE, CONSTRAINT_TYPE_KINEMATIC, CONSTRAINT_TYPE_LOCKTRACK, CONSTRAINT_TYPE_LOCLIKE, CONSTRAINT_TYPE_LOCLIMIT, CONSTRAINT_TYPE_MINMAX, CONSTRAINT_TYPE_OBJECTSOLVER, CONSTRAINT_TYPE_PIVOT, CONSTRAINT_TYPE_ROTLIKE, CONSTRAINT_TYPE_ROTLIMIT, CONSTRAINT_TYPE_SAMEVOL, CONSTRAINT_TYPE_SHRINKWRAP, CONSTRAINT_TYPE_SIZELIKE, CONSTRAINT_TYPE_SIZELIMIT, CONSTRAINT_TYPE_SPLINEIK, CONSTRAINT_TYPE_STRETCHTO, CONSTRAINT_TYPE_TRACKTO, CONSTRAINT_TYPE_TRANSFORM, CONSTRAINT_TYPE_TRANSFORM_CACHE, CONSTRAINT_TYPE_TRANSLIKE, data, blender::ed::outliner::TreeElement::directdata, Collection::flag, blender::ed::outliner::TreeElementRNACommon::get_pointer_rna(), blender::ed::outliner::TreeElementStrip::get_strip_type(), GS, blender::ed::outliner::TreeElementOverridesBase::id, TreeStoreElem::id, ID_LI, blender::bke::greasepencil::TreeNode::is_group(), blender::bke::greasepencil::TreeNode::is_layer(), LAYERGROUP_COLOR_NONE, LIBRARY_FLAG_IS_ARCHIVE, Object::modifiers, ID::name, TreeStoreElem::nr, outliner_collection_from_tree_element(), blender::ed::outliner::TreeElement::parent, ptr, RNA_struct_is_ID(), RNA_struct_ui_icon(), STRIP_TYPE_ADD, STRIP_TYPE_ADJUSTMENT, STRIP_TYPE_ALPHAOVER, STRIP_TYPE_ALPHAUNDER, STRIP_TYPE_COLOR, STRIP_TYPE_COLORMIX, STRIP_TYPE_CROSS, STRIP_TYPE_GAMCROSS, STRIP_TYPE_GAUSSIAN_BLUR, STRIP_TYPE_GLOW, STRIP_TYPE_IMAGE, STRIP_TYPE_MASK, STRIP_TYPE_META, STRIP_TYPE_MOVIE, STRIP_TYPE_MOVIECLIP, STRIP_TYPE_MUL, STRIP_TYPE_MULTICAM, STRIP_TYPE_SCENE, STRIP_TYPE_SOUND_RAM, STRIP_TYPE_SPEED, STRIP_TYPE_SUB, STRIP_TYPE_TEXT, STRIP_TYPE_WIPE, tree_element_cast(), tree_element_get_icon(), tree_element_get_icon_from_id(), TREESTORE, TSE_ACTION_SLOT, TSE_ANIM_DATA, TSE_BONE, TSE_BONE_COLLECTION, TSE_BONE_COLLECTION_BASE, TSE_CONSTRAINT, TSE_CONSTRAINT_BASE, TSE_DEFGROUP, TSE_DEFGROUP_BASE, TSE_DRIVER_BASE, TSE_EBONE, TSE_GP_LAYER, TSE_GPENCIL_EFFECT, TSE_GPENCIL_EFFECT_BASE, TSE_GREASE_PENCIL_NODE, TSE_LAYER_COLLECTION, TSE_LIBRARY_OVERRIDE, TSE_LIBRARY_OVERRIDE_BASE, TSE_LINKED_NODE_TREE, TSE_LINKED_OB, TSE_LINKED_PSYS, TSE_MODIFIER, TSE_MODIFIER_BASE, TSE_NLA, TSE_NLA_ACTION, TSE_NLA_TRACK, TSE_POSE_BASE, TSE_POSE_CHANNEL, TSE_R_LAYER, TSE_R_LAYER_BASE, TSE_RNA_STRUCT, TSE_SCENE_COLLECTION_BASE, TSE_SCENE_OBJECTS_BASE, TSE_SOME_ID, TSE_STRIP, TSE_STRIP_DATA, TSE_STRIP_DUP, TSE_VIEW_COLLECTION_BASE, bConstraint::type, ModifierData::type, and TreeStoreElem::type.
Referenced by merged_element_search_fn_recursive(), outliner_item_drag_drop_invoke(), tree_element_get_icon(), and tselem_draw_icon().
Definition at line 2442 of file outliner_draw.cc.
References ED_file_extension_icon(), Object::empty_drawtype, flag, PartDeflect::forcefield, GS, ID_AC, ID_AR, ID_BR, ID_CA, ID_CU_LEGACY, ID_CV, ID_GD_LEGACY, ID_GP, ID_GR, ID_IM, ID_KE, ID_LA, ID_LI, ID_LP, ID_LS, ID_LT, ID_MA, ID_MB, ID_MC, ID_ME, ID_MSK, ID_NLA, ID_NT, ID_OB, ID_PA, ID_PAL, ID_PC, ID_PT, ID_SCE, ID_SCR, ID_SO, ID_SPK, ID_TAG_MISSING, ID_TE, ID_TXT, ID_VF, ID_VO, ID_WO, ID_WS, Object::instance_collection, LA_AREA, LA_LOCAL, LA_SPOT, LA_SUN, LIBRARY_FLAG_IS_ARCHIVE, LIGHTPROBE_TYPE_PLANE, LIGHTPROBE_TYPE_SPHERE, LIGHTPROBE_TYPE_VOLUME, ID::name, OB_ARMATURE, OB_CAMERA, OB_CURVES, OB_CURVES_LEGACY, OB_DUPLICOLLECTION, OB_EMPTY, OB_EMPTY_IMAGE, OB_FONT, OB_GREASE_PENCIL, OB_LAMP, OB_LATTICE, OB_LIGHTPROBE, OB_MBALL, OB_MESH, OB_POINTCLOUD, OB_SPEAKER, OB_SURF, Curve::ob_type, OB_VOLUME, Object::pd, ID::tag, Object::transflag, tree_element_get_icon_from_id(), TXT_ISMEM, Light::type, LightProbe::type, Object::type, bNodeTree::typeinfo, and blender::bke::bNodeTreeType::ui_icon.
Referenced by ED_outliner_icon_from_id(), tree_element_get_icon(), and tree_element_get_icon_from_id().
|
static |
Definition at line 482 of file outliner_select.cc.
References BKE_gpencil_layer_active_set(), C, DEG_id_tag_update(), blender::ed::outliner::TreeElement::directdata, bGPdata::id, TreeStoreElem::id, ID_RECALC_GEOMETRY, NA_SELECTED, NC_GPENCIL, ND_DATA, and WM_event_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 1051 of file outliner_select.cc.
References blender::ed::outliner::TreeElement::directdata, GP_LAYER_ACTIVE, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 496 of file outliner_select.cc.
References active, C, CTX_wm_message_bus(), DEG_id_tag_update(), GreasePencil::id, TreeStoreElem::id, ID_RECALC_GEOMETRY, blender::bke::greasepencil::TreeNode::is_group(), blender::bke::greasepencil::TreeNode::is_layer(), NA_SELECTED, NC_GPENCIL, ND_DATA, tree_element_cast(), WM_event_add_notifier(), and WM_msg_publish_rna_prop.
Referenced by tree_element_type_active_set().
|
static |
Definition at line 1059 of file outliner_select.cc.
References blender::bke::greasepencil::TreeNode::as_layer(), TreeStoreElem::id, blender::bke::greasepencil::TreeNode::is_layer(), OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, blender::ed::outliner::TreeElement::store_elem, and tree_element_cast().
Referenced by tree_element_type_active_state_get().
| int blender::ed::outliner::tree_element_id_type_to_index | ( | TreeElement * | te | ) |
Return the index to use based on the TreeElement ID and object type
We use a continuum of indices until we get to the object data-blocks and we then make room for the object types.
Definition at line 3121 of file outliner_draw.cc.
References BKE_idtype_idcode_to_index(), TreeStoreElem::id, blender::ed::outliner::TreeElement::idcode, INDEX_ID_GP, INDEX_ID_GR, INDEX_ID_OB, OB_TYPE_MAX, tree_element_id_type_to_index(), TREESTORE, TSE_GREASE_PENCIL_NODE, TSE_SOME_ID, Object::type, and TreeStoreElem::type.
Referenced by merged_element_search_fn_recursive(), merged_element_search_update_fn(), outliner_draw_iconrow(), and tree_element_id_type_to_index().
|
static |
Definition at line 801 of file outliner_select.cc.
References BKE_layer_collection_activate(), BKE_view_layer_find_from_collection(), C, CTX_data_scene(), blender::ed::outliner::TreeElement::directdata, NA_ACTIVATED, NC_SCENE, ND_LAYER, NS_LAYER_COLLECTION, and WM_main_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 1078 of file outliner_select.cc.
References blender::ed::outliner::TreeElement::directdata, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 790 of file outliner_select.cc.
References BKE_layer_collection_activate(), C, CTX_data_view_layer(), ListBase::first, ViewLayer::layer_collections, NA_ACTIVATED, NC_SCENE, ND_LAYER, NS_LAYER_COLLECTION, and WM_main_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 1069 of file outliner_select.cc.
References ListBase::first, ViewLayer::layer_collections, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 404 of file outliner_select.cc.
References Object::actcol, BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), C, DEG_id_tag_update(), ID_OB, ID_RECALC_TRANSFORM, blender::ed::outliner::TreeElement::idcode, blender::ed::outliner::TreeElement::index, Object::matbits, NC_MATERIAL, ND_SHADING_LINKS, outliner_search_back(), blender::ed::outliner::TreeElement::parent, and WM_event_add_notifier().
Referenced by tree_element_activate().
|
static |
Definition at line 688 of file outliner_select.cc.
References BKE_object_modifier_set_active(), C, blender::ed::outliner::TreeElement::directdata, TreeStoreElem::id, NC_OBJECT, ND_MODIFIER, OL_SETSEL_NORMAL, and WM_event_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 954 of file outliner_select.cc.
References BKE_object_active_modifier(), blender::ed::outliner::TreeElement::directdata, TreeStoreElem::id, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 287 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(), BASE_SELECTED, BKE_object_is_mode_compat(), BKE_view_layer_active_object_get(), BKE_view_layer_base_deselect_all(), BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_wm_window(), DEG_id_tag_update(), depsgraph, do_outliner_object_select_recursive(), Base::flag, TreeStoreElem::flag, Scene::id, TreeStoreElem::id, ID_OB, ID_RECALC_SELECT, ID_SCE, blender::ed::outliner::TreeElement::idcode, Object::mode, blender::ed::object::mode_generic_exit(), NC_SCENE, ND_OB_SELECT, OB_MODE_OBJECT, Base::object, ToolSettings::object_flag, OL_SETSEL_EXTEND, OL_SETSEL_NONE, outliner_search_back(), outliner_search_back_te(), SCE_OBJECT_MODE_LOCK, Scene::toolsettings, TREESTORE, TSE_SELECTED, TSE_SOME_ID, TreeStoreElem::type, WM_event_add_notifier(), WM_window_get_active_view_layer(), and WM_window_set_active_scene().
Referenced by do_outliner_item_activate_tree_element(), tree_element_activate(), and tree_element_type_active_set().
|
static |
Definition at line 963 of file outliner_select.cc.
References TreeStoreElem::id, blender::ed::outliner::TreeViewContext::obact, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 969 of file outliner_select.cc.
References BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), TreeStoreElem::id, Object::mode, OB_MODE_POSE, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 542 of file outliner_select.cc.
References bArmature::act_bone, BKE_object_pose_armature_get(), BKE_object_pose_array_get_unique(), bPoseChannel::bone, blender::animrig::bone_is_visible(), C, bPose::chanbase, Object::data, DEG_id_tag_update(), blender::ed::outliner::TreeElement::directdata, do_outliner_bone_select_recursive(), ELEM, bPoseChannel::flag, bArmature::id, TreeStoreElem::id, ID_RECALC_SELECT, LISTBASE_FOREACH, NC_OBJECT, ND_BONE_ACTIVE, OL_SETSEL_EXTEND, Object::pose, POSE_SELECTED, and WM_event_add_notifier().
Referenced by tree_element_constraint_activate(), and tree_element_type_active_set().
|
static |
Definition at line 988 of file outliner_select.cc.
References blender::ed::outliner::TreeElement::directdata, bPoseChannel::flag, TreeStoreElem::id, OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, Object::pose, and POSE_SELECTED.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 702 of file outliner_select.cc.
References C, TreeStoreElem::id, NA_EDITED, NC_OBJECT, ND_PARTICLE, and WM_event_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 1705 of file outliner_edit.cc.
References blender::ed::outliner::tree_iterator::all_open(), ELEM, TreeStoreElem::flag, TreeStoreElem::id, ID_OB, ID_SCE, blender::ed::outliner::TreeElement::idcode, blender::ed::outliner::TreeElement::subtree, subtree_has_objects(), TREESTORE, TSE_CLOSED, TSE_LAYER_COLLECTION, TSE_SCENE_OBJECTS_BASE, TSE_SOME_ID, TSE_VIEW_COLLECTION_BASE, and TreeStoreElem::type.
Referenced by outliner_show_hierarchy_exec().
|
static |
Definition at line 732 of file outliner_select.cc.
References BLI_findindex(), C, blender::ed::vse::deselect_all_strips(), blender::seq::editing_get(), Strip::flag, blender::ed::outliner::TreeElementStrip::get_strip(), NA_SELECTED, NC_SCENE, ND_SEQUENCER, OL_SETSEL_EXTEND, SELECT, blender::seq::select_active_set(), WorkSpace::sequencer_scene, tree_element_cast(), and WM_event_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 763 of file outliner_select.cc.
References Strip::data, blender::seq::editing_get(), StripElem::filename, Strip::next, WorkSpace::sequencer_scene, STREQ, and StripData::stripdata.
Referenced by tree_element_type_active_set().
|
static |
Definition at line 1041 of file outliner_select.cc.
References Strip::flag, blender::ed::outliner::TreeElementStripDuplicate::get_strip(), OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, SELECT, and tree_element_cast().
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 1025 of file outliner_select.cc.
References blender::seq::editing_get(), Strip::flag, blender::ed::outliner::TreeElementStrip::get_strip(), OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, SELECT, WorkSpace::sequencer_scene, and tree_element_cast().
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 812 of file outliner_select.cc.
References C, ED_text_activate_in_screen(), TreeStoreElem::id, and blender::ed::outliner::TreeElement::store_elem.
Referenced by tree_element_activate().
|
static |
Definition at line 1793 of file outliner_edit.cc.
References BLI_addhead(), BLI_freelistN(), LinkData::data, flag, blender::ed::outliner::TreeElementRNACommon::get_pointer_rna(), blender::ed::outliner::TreeElement::index, KSP_FLAG_WHOLE_ARRAY, LISTBASE_FOREACH, MEM_callocN(), MEM_freeN(), name, PropertyRNA::next, blender::ed::outliner::TreeElement::parent, PROP_COLLECTION, PROP_POINTER, ptr, RNA_path_append(), RNA_property_array_check(), RNA_property_type(), RNA_struct_is_ID(), RNA_struct_name_get_alloc(), blender::ed::outliner::TreeElement::subtree, tree_element_cast(), TSE_RNA_ARRAY_ELEM, TSE_RNA_STRUCT, and TreeStoreElem::type.
Referenced by do_outliner_drivers_editop(), and do_outliner_keyingset_editop().
| 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 850 of file outliner_select.cc.
References BLI_assert, 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_viewlayer_activate(), TSE_BONE, TSE_BONE_COLLECTION, TSE_CONSTRAINT, TSE_CONSTRAINT_BASE, TSE_DEFGROUP, TSE_EBONE, TSE_GP_LAYER, TSE_GREASE_PENCIL_NODE, TSE_LAYER_COLLECTION, TSE_LINKED_OB, TSE_LINKED_PSYS, TSE_MODIFIER, TSE_POSE_BASE, TSE_POSE_CHANNEL, TSE_R_LAYER, TSE_STRIP, TSE_STRIP_DUP, TSE_VIEW_COLLECTION_BASE, TreeStoreElem::type, blender::ed::outliner::TreeViewContext::view_layer, and blender::ed::outliner::TreeViewContext::workspace.
| 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 1175 of file outliner_select.cc.
References 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_strip_dup_state_get(), tree_element_strip_state_get(), tree_element_viewlayer_state_get(), TSE_BONE, TSE_BONE_COLLECTION, TSE_CONSTRAINT, TSE_CONSTRAINT_BASE, TSE_DEFGROUP, TSE_EBONE, TSE_GP_LAYER, TSE_GREASE_PENCIL_NODE, TSE_LAYER_COLLECTION, TSE_LINKED_NODE_TREE, TSE_LINKED_OB, TSE_LINKED_PSYS, TSE_MODIFIER, TSE_POSE_BASE, TSE_POSE_CHANNEL, TSE_R_LAYER, TSE_STRIP, TSE_STRIP_DUP, TSE_VIEW_COLLECTION_BASE, TreeStoreElem::type, blender::ed::outliner::TreeViewContext::view_layer, and blender::ed::outliner::TreeViewContext::workspace.
Referenced by outliner_draw_iconrow(), and outliner_draw_tree_element().
|
static |
Definition at line 223 of file outliner_select.cc.
References BLI_findindex(), C, CTX_wm_window(), blender::ed::outliner::TreeElement::directdata, NC_SCREEN, ND_LAYER, blender::ed::outliner::TreeElement::store_elem, TSE_R_LAYER, TreeStoreElem::type, Scene::view_layers, WM_event_add_notifier(), WM_window_get_active_scene(), and WM_window_set_active_view_layer().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 1002 of file outliner_select.cc.
References blender::ed::outliner::TreeElement::directdata, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 453 of file outliner_select.cc.
References C, CTX_data_main(), CTX_wm_window(), TreeStoreElem::id, blender::ed::outliner::TreeElement::parent, TREESTORE, TSE_SOME_ID, TreeStoreElem::type, and WM_window_set_active_scene().
Referenced by tree_element_activate().
|
static |
Definition at line 501 of file outliner_tree.cc.
References BLI_strcasecmp_natural(), blender::ed::outliner::tTreeSort::name, and v2.
Referenced by outliner_sort().
|
static |
Definition at line 448 of file outliner_tree.cc.
References BLI_strcasecmp_natural(), blender::ed::outliner::TreeElement::flag, ID_OB, blender::ed::outliner::tTreeSort::idcode, blender::ed::outliner::tTreeSort::name, blender::ed::outliner::tTreeSort::te, TE_CHILD_NOT_IN_COLLECTION, and v2.
Referenced by outliner_sort().
|
static |
Definition at line 487 of file outliner_tree.cc.
References blender::ed::outliner::TreeElement::flag, blender::ed::outliner::tTreeSort::te, TE_CHILD_NOT_IN_COLLECTION, and v2.
Referenced by outliner_collections_children_sort().
|
static |
Definition at line 2961 of file outliner_draw.cc.
References bTheme::collection_color, COLLECTION_COLOR_NONE, ThemeCollectionColor::color, Collection::color_tag, data, ThemeUI::icon_border_intensity, ICON_DEFAULT_HEIGHT, ID_IS_LINKED, Label, outliner_collection_from_tree_element(), outliner_is_collection_tree_element(), tree_element_get_icon(), tselem_draw_icon(), bTheme::tui, UI_but_label_alpha_factor_set(), UI_GetTheme(), UI_icon_draw_ex(), UI_icon_get_theme_color(), UI_icon_text_overlay_init_from_count(), UI_INV_SCALE_FAC, UI_UNIT_X, UI_UNIT_Y, uiDefIconBut(), x, and y.
Referenced by outliner_draw_iconrow_doit(), outliner_draw_tree_element(), and tselem_draw_icon().
|
static |
Definition at line 219 of file outliner_tools.cc.
References BKE_animdata_set_action(), BKE_reportf(), C, CTX_wm_reports(), DEG_id_tag_update(), TreeStoreElem::id, ID_RECALC_ANIMATION, ID::name, RPT_WARNING, and TSE_IS_REAL_ID.
Referenced by outliner_id_operation_exec().
|
static |
Definition at line 377 of file outliner_tools.cc.
References BKE_collection_child_remove(), BKE_reportf(), C, CTX_data_main(), DEG_id_tag_update(), DEG_relations_tag_update(), GS, Collection::id, Object::id, Scene::id, TreeStoreElem::id, id_fake_user_set(), ID_GR, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, ID_OB, ID_RECALC_HIERARCHY, ID_RECALC_SYNC_TO_EVAL, ID_RECALC_TRANSFORM, ID_SCE, Object::instance_collection, Scene::master_collection, ID::name, RPT_WARNING, and TSE_IS_REAL_ID.
Referenced by outliner_id_operation_exec().
|
static |
Definition at line 243 of file outliner_tools.cc.
References BKE_reportf(), BLI_assert_unreachable, GS, TreeStoreElem::id, ID_CU_LEGACY, ID_CV, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, ID_MA, ID_MB, ID_ME, ID_OB, ID_PT, id_us_min(), ID_VO, blender::ed::outliner::TreeElement::index, LIKELY, Curve::mat, MetaBall::mat, Object::mat, Volume::mat, ID::name, RPT_WARNING, Curve::totcol, MetaBall::totcol, Object::totcol, Volume::totcol, and TSE_IS_REAL_ID.
Referenced by outliner_id_operation_exec().
|
static |
Definition at line 433 of file outliner_tools.cc.
References BKE_collection_has_object(), BKE_collection_object_remove(), BKE_reportf(), BLI_assert_unreachable, C, CTX_data_main(), CTX_wm_space_outliner(), DEG_id_tag_update(), DEG_relations_tag_update(), FOREACH_SCENE_COLLECTION_BEGIN, FOREACH_SCENE_COLLECTION_END, GS, Collection::id, Object::id, TreeStoreElem::id, ID_GR, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, ID_OB, ID_RECALC_HIERARCHY, ID_RECALC_SYNC_TO_EVAL, ID_SCE, Scene::master_collection, ID::name, blender::ed::outliner::TreeElement::parent, RPT_WARNING, SO_SCENES, TREESTORE, and TSE_IS_REAL_ID.
Referenced by outliner_id_operation_exec().
|
static |
Definition at line 338 of file outliner_tools.cc.
References BKE_reportf(), GS, TreeStoreElem::id, ID_LS, id_us_min(), blender::ed::outliner::TreeElement::index, MAX_MTEX, FreestyleLineStyle::mtex, ID::name, RPT_WARNING, MTex::tex, and TSE_IS_REAL_ID.
Referenced by outliner_id_operation_exec().
|
static |
Definition at line 518 of file outliner_tools.cc.
References BKE_reportf(), TreeStoreElem::id, World::id, id_us_min(), ID::name, RPT_WARNING, TSE_IS_REAL_ID, and Scene::world.
Referenced by outliner_id_operation_exec().
|
static |
Definition at line 1736 of file outliner_tools.cc.
References BKE_animdata_set_action(), DEG_id_tag_update(), TreeStoreElem::id, and ID_RECALC_ANIMATION.
Referenced by outliner_animdata_operation_exec().
|
static |
Definition at line 2307 of file outliner_edit.cc.
References BKE_idtype_idcode_to_name(), BKE_idtype_idcode_to_name_plural(), BKE_idtype_index_to_idcode(), i, IFACE_, INDEX_ID_MAX, and INDEX_ID_NULL.
Referenced by outliner_orphans_purge_ui(), and unused_message_popup_width_compute().
|
static |
Definition at line 2335 of file outliner_edit.cc.
References BKE_lib_query_unused_ids_amounts(), BLF_DRAW_STR_DUMMY_MAX, BLF_width(), CTX_data_main(), data, UI_style_get_dpi(), uiFontStyle::uifont_id, unused_message_gen(), and uiStyle::widget.
Referenced by outliner_orphans_purge_invoke().
Definition at line 2118 of file outliner_edit.cc.
References Scene::active_keyingset, add(), BKE_keyingset_add(), BLI_findlink(), BLI_listbase_count(), KEYINGSET_ABSOLUTE, and Scene::keyingsets.
Referenced by outliner_keyingset_additems_exec(), and outliner_keyingset_removeitems_exec().
|
static |
Collection properties called from the ViewLayer mode. Change the (non-excluded) collection children, and the objects nested to them all.
Definition at line 688 of file outliner_draw.cc.
References C, 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().
|
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 675 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().
|
static |
Definition at line 596 of file space_outliner.cc.
References BLI_assert, BLI_mempool_as_arrayN(), BLI_mempool_len(), BLO_write_struct, BLO_write_struct_array_at_address, BLO_write_struct_at_address, data, TreeStore::data, MEM_allocN_len, MEM_freeN(), POINTER_OFFSET, SpaceOutliner::treestore, and TreeStore::usedelem.
Referenced by outliner_space_blend_write().
|
static |
Definition at line 103 of file outliner_tools.cc.
Referenced by id_override_library_delete_hierarchy(), id_override_library_reset(), and id_override_library_resync().
|
static |
Definition at line 30 of file outliner_context.cc.
Referenced by outliner_main_region_context().
|
static |
Definition at line 3069 of file outliner_tools.cc.
Referenced by OUTLINER_OT_lib_operation().
|
static |
Definition at line 3278 of file outliner_tools.cc.
Referenced by OUTLINER_OT_animdata_operation().
|
static |
Definition at line 3379 of file outliner_tools.cc.
Referenced by OUTLINER_OT_constraint_operation().
|
static |
Definition at line 2781 of file outliner_tools.cc.
Referenced by outliner_id_operation_itemf(), and OUTLINER_OT_id_operation().
|
static |
Definition at line 572 of file outliner_tools.cc.
Referenced by OUTLINER_OT_liboverride_operation(), and OUTLINER_OT_liboverride_troubleshoot_operation().
|
static |
Definition at line 1794 of file outliner_tools.cc.
Referenced by OUTLINER_OT_liboverride_operation().
|
static |
Definition at line 1815 of file outliner_tools.cc.
Referenced by OUTLINER_OT_liboverride_troubleshoot_operation().
|
static |
Definition at line 3425 of file outliner_tools.cc.
Referenced by OUTLINER_OT_modifier_operation().
|
static |
Definition at line 2477 of file outliner_tools.cc.
Referenced by OUTLINER_OT_object_operation().
|
static |
Definition at line 690 of file outliner_tools.cc.
Referenced by OUTLINER_OT_scene_operation().