|
Blender
V2.93
|
#include <stdlib.h>#include "MEM_guardedalloc.h"#include "DNA_armature_types.h"#include "DNA_collection_types.h"#include "DNA_gpencil_modifier_types.h"#include "DNA_gpencil_types.h"#include "DNA_modifier_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "DNA_sequence_types.h"#include "DNA_shader_fx_types.h"#include "BLI_listbase.h"#include "BLI_utildefines.h"#include "BKE_armature.h"#include "BKE_collection.h"#include "BKE_constraint.h"#include "BKE_context.h"#include "BKE_gpencil.h"#include "BKE_gpencil_modifier.h"#include "BKE_layer.h"#include "BKE_main.h"#include "BKE_modifier.h"#include "BKE_object.h"#include "BKE_particle.h"#include "BKE_report.h"#include "BKE_shader_fx.h"#include "DEG_depsgraph.h"#include "DEG_depsgraph_build.h"#include "ED_armature.h"#include "ED_buttons.h"#include "ED_object.h"#include "ED_outliner.h"#include "ED_screen.h"#include "ED_select_utils.h"#include "ED_sequencer.h"#include "ED_undo.h"#include "SEQ_select.h"#include "SEQ_sequencer.h"#include "WM_api.h"#include "WM_types.h"#include "UI_interface.h"#include "UI_view2d.h"#include "RNA_access.h"#include "RNA_define.h"#include "outliner_intern.h"Go to the source code of this file.
|
static |
Definition at line 251 of file outliner_select.c.
References BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, Bone::childbase, ListBase::first, Bone::flag, Bone::next, PBONE_SELECTABLE, and select().
Referenced by tree_element_bone_activate(), and tree_element_posechannel_activate().
|
static |
Definition at line 265 of file outliner_select.c.
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 1344 of file outliner_select.c.
References BA_DESELECT, BA_SELECT, BASE_SELECTED, BKE_view_layer_base_deselect_all(), BKE_view_layer_base_find(), C, CTX_data_main(), CTX_wm_window(), DEG_id_tag_update(), ED_object_base_select(), ELEM, Base::flag, FOREACH_COLLECTION_OBJECT_RECURSIVE_BEGIN, FOREACH_COLLECTION_OBJECT_RECURSIVE_END, TreeStoreElem::id, Scene::id, ID_GR, ID_RECALC_SELECT, ID_SCE, TreeElement::idcode, if(), NC_SCENE, ND_OB_SELECT, NULL, OL_SETSEL_EXTEND, OL_SETSEL_NORMAL, SpaceOutliner::outlinevis, TreeViewContext::scene, SO_VIEW_LAYER, tree_element_activate(), tree_element_object_activate(), tree_element_type_active_set(), TSE_EBONE, TSE_LAYER_COLLECTION, TSE_SEQ_STRIP, TSE_SEQUENCE, TSE_SEQUENCE_DUP, TSE_SOME_ID, TreeStoreElem::type, TreeViewContext::view_layer, WM_event_add_notifier(), and WM_window_set_active_scene().
Referenced by outliner_item_select().
Definition at line 86 of file outliner_select.c.
References BA_DESELECT, BA_SELECT, BKE_object_is_in_editmode(), C, CTX_data_main(), DEG_id_tag_update(), ED_object_base_select(), ED_object_editmode_enter_ex(), ED_object_editmode_exit_ex(), ED_outliner_select_sync_from_object_tag(), ED_undo_push(), EM_FREEDATA, EM_NO_CONTEXT, Scene::id, ID_RECALC_SELECT, NC_SCENE, ND_MODE, NS_MODE_OBJECT, NULL, Base::object, scene, 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 163 of file outliner_select.c.
References BKE_view_layer_base_deselect_all(), BKE_view_layer_base_find(), BKE_view_layer_base_select_and_set_active(), C, DEG_id_tag_update(), ED_object_mode_set(), 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, OB_MODE_OBJECT, TreeViewContext::obact, TreeViewContext::scene, and TreeViewContext::view_layer.
Referenced by outliner_item_mode_toggle().
Definition at line 119 of file outliner_select.c.
References BA_DESELECT, BA_SELECT, BKE_report(), C, CTX_data_main(), CTX_wm_reports(), DEG_id_tag_update(), ED_object_base_select(), ED_object_posemode_enter_ex(), ED_object_posemode_exit_ex(), ED_outliner_select_sync_from_object_tag(), ED_undo_push(), Scene::id, ID_IS_LINKED, ID_RECALC_SELECT, Object::mode, NC_SCENE, ND_MODE, NS_MODE_OBJECT, NS_MODE_POSE, NULL, OB_MODE_POSE, Base::object, RPT_WARNING, scene, and WM_event_add_notifier().
Referenced by outliner_item_mode_toggle().
|
static |
Select object tree
Definition at line 236 of file outliner_select.c.
References BA_DESELECT, BA_SELECT, BASE_VISIBLE_DEPSGRAPH, BKE_object_is_child_recursive(), ED_object_base_select(), FIRSTBASE, Base::flag, Base::next, Base::object, and select().
Referenced by tree_element_object_activate().
|
static |
Definition at line 1503 of file outliner_select.c.
References blender::compositor::active, C, do_outliner_range_select_recursive(), TreeStoreElem::flag, OL_ITEM_ACTIVATE, OL_ITEM_SELECT, outliner_find_element_with_flag(), outliner_flag_set(), outliner_is_element_visible(), outliner_item_select(), SpaceOutliner::tree, TREESTORE, TSE_ACTIVE, and TSE_SELECTED.
Referenced by outliner_item_do_activate_from_cursor().
|
static |
Definition at line 1472 of file outliner_select.c.
References blender::compositor::active, ELEM, TreeStoreElem::flag, LISTBASE_FOREACH, TREESTORE, TSE_CLOSED, and TSE_SELECTED.
Referenced by do_outliner_range_select().
|
static |
Definition at line 1900 of file outliner_select.c.
References 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 outliner_walk_select_invoke().
|
static |
Definition at line 1935 of file outliner_select.c.
References ListBase::first, outliner_find_element_with_flag(), outliner_is_element_visible(), TreeElement::parent, SpaceOutliner::tree, and TSE_ACTIVE.
Referenced by outliner_walk_select_invoke().
|
static |
Definition at line 1717 of file outliner_select.c.
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, LISTBASE_FOREACH, NC_SCENE, ND_OB_SELECT, OPERATOR_FINISHED, outliner_flag_set(), outliner_item_box_select(), wmOperator::ptr, RNA_enum_get(), scene, SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, select(), SpaceOutliner::tree, TSE_SELECTED, UI_view2d_region_to_view_rctf(), ARegion::v2d, WM_event_add_notifier(), and WM_operator_properties_border_to_rctf().
Referenced by OUTLINER_OT_select_box().
|
static |
Definition at line 1746 of file outliner_select.c.
References C, CTX_wm_region(), CTX_wm_space_outliner(), wmEvent::mval, OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, 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, and WM_gesture_box_invoke().
Referenced by OUTLINER_OT_select_box().
|
static |
Definition at line 1834 of file outliner_select.c.
References TreeElement::next, and TreeElement::parent.
Referenced by outliner_find_next_element().
|
static |
Definition at line 1849 of file outliner_select.c.
References ListBase::first, TreeElement::next, outliner_element_find_successor_in_parents(), TreeElement::subtree, TREESTORE, and TSELEM_OPEN.
Referenced by do_outliner_select_walk().
| bPoseChannel* outliner_find_parent_bone | ( | TreeElement * | te, |
| TreeElement ** | r_bone_te | ||
| ) |
Definition at line 1118 of file outliner_select.c.
References TreeElement::directdata, NULL, TreeElement::parent, TREESTORE, TSE_POSE_CHANNEL, and TreeStoreElem::type.
Referenced by outliner_item_drag_drop_invoke(), and outliner_set_properties_tab().
|
static |
Definition at line 1820 of file outliner_select.c.
References outliner_find_rightmost_visible_child(), TreeElement::parent, and TreeElement::prev.
Referenced by do_outliner_select_walk().
|
static |
Definition at line 1805 of file outliner_select.c.
References ListBase::last, TreeElement::subtree, TREESTORE, and TSELEM_OPEN.
Referenced by outliner_find_previous_element().
|
static |
Definition at line 1555 of file outliner_select.c.
References C, CTX_data_view_layer(), Object::mode, OB_MODE_OBJECT, OBACT, and outliner_is_co_within_mode_column().
Referenced by outliner_box_select_invoke(), and outliner_item_do_activate_from_cursor().
| bool outliner_is_co_within_mode_column | ( | SpaceOutliner * | space_outliner, |
| const float | view_mval[2] | ||
| ) |
Definition at line 1545 of file outliner_select.c.
References ELEM, SpaceOutliner::flag, SpaceOutliner::outlinevis, SO_MODE_COLUMN, SO_SCENES, SO_VIEW_LAYER, and UI_UNIT_X.
Referenced by outliner_is_co_within_active_mode_column(), and outliner_item_drag_drop_invoke().
|
static |
Definition at line 1538 of file outliner_select.c.
References View2D::cur, outliner_restrict_columns_width(), ARegion::v2d, and rctf::xmax.
Referenced by outliner_item_do_activate_from_cursor().
|
static |
Definition at line 1658 of file outliner_select.c.
References C, wmEvent::mval, outliner_item_do_activate_from_cursor(), wmOperator::ptr, and RNA_boolean_get().
Referenced by OUTLINER_OT_item_activate().
|
static |
Definition at line 1695 of file outliner_select.c.
References C, LISTBASE_FOREACH, OL_ITEM_DESELECT, OL_ITEM_EXTEND, OL_ITEM_SELECT, outliner_item_select(), scene, select(), TreeElement::subtree, TREESTORE, TSELEM_OPEN, UI_UNIT_Y, rctf::ymax, rctf::ymin, and TreeElement::ys.
Referenced by outliner_box_select_exec().
|
static |
Action to run when clicking in the outliner,
May expend/collapse branches or activate items.
Definition at line 1571 of file outliner_select.c.
References C, CTX_wm_region(), CTX_wm_space_outliner(), do_outliner_range_select(), 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_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_is_co_over_name_icons(), outliner_item_is_co_within_close_toggle(), outliner_item_select(), outliner_set_properties_tab(), select(), SpaceOutliner::tree, TREESTORE, TSE_ACTIVE, TSE_SELECTED, TSE_VIEW_COLLECTION_BASE, type, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by outliner_item_activate_invoke().
| void outliner_item_mode_toggle | ( | bContext * | C, |
| TreeViewContext * | tvc, | ||
| TreeElement * | te, | ||
| const bool | do_extend | ||
| ) |
Definition at line 185 of file outliner_select.c.
References BASE_VISIBLE_DEPSGRAPH, BKE_view_layer_base_find(), C, do_outliner_item_editmode_toggle(), do_outliner_item_mode_toggle_generic(), do_outliner_item_posemode_toggle(), TreeStoreElem::id, ID_OB, TreeElement::idcode, Object::mode, OB_ARMATURE, TreeViewContext::ob_edit, TreeViewContext::ob_pose, OB_TYPE_SUPPORT_EDITMODE, TreeViewContext::obact, TreeViewContext::scene, TREESTORE, TSE_SOME_ID, Object::type, TreeStoreElem::type, and TreeViewContext::view_layer.
Referenced by outliner_mode_toggle_fn().
| void outliner_item_select | ( | bContext * | C, |
| SpaceOutliner * | space_outliner, | ||
| TreeElement * | te, | ||
| const short | select_flag | ||
| ) |
Definition at line 1433 of file outliner_select.c.
References activate(), C, do_outliner_item_activate_tree_element(), TreeStoreElem::flag, SpaceOutliner::flag, OL_ITEM_ACTIVATE, OL_ITEM_EXTEND, OL_ITEM_RECURSIVE, OL_ITEM_SELECT, OL_ITEM_SELECT_DATA, outliner_flag_set(), outliner_viewcontext_init(), SO_SYNC_SELECT, SpaceOutliner::tree, 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_item_box_select(), outliner_item_do_activate_from_cursor(), and outliner_walk_select_invoke().
| void OUTLINER_OT_item_activate | ( | wmOperatorType * | ot | ) |
Definition at line 1666 of file outliner_select.c.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_item_activate_invoke(), wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by outliner_operatortypes().
| void OUTLINER_OT_select_box | ( | wmOperatorType * | ot | ) |
Definition at line 1771 of file outliner_select.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_box_select_exec(), outliner_box_select_invoke(), wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, WM_gesture_box_cancel(), WM_gesture_box_modal(), WM_operator_properties_gesture_box(), and WM_operator_properties_select_operation_simple().
Referenced by outliner_operatortypes().
| void OUTLINER_OT_select_walk | ( | wmOperatorType * | ot | ) |
Definition at line 2004 of file outliner_select.c.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_walk_select_invoke(), wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, and WM_operator_properties_select_walk_direction().
Referenced by outliner_operatortypes().
|
static |
Definition at line 1153 of file outliner_select.c.
References BCONTEXT_BONE, BCONTEXT_BONE_CONSTRAINT, 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_gpencil_modifier_panel_expand(), BKE_modifier_panel_expand(), BKE_shaderfx_panel_expand(), C, context, Object::data, PointerRNA::data, 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, ID_GD, ID_HA, 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, TreeElement::idcode, if(), NULL, OB_GPENCIL, outliner_find_parent_bone(), outliner_sync_to_properties_editors(), psys_get_current(), ptr, RNA_Armature, RNA_Bone, RNA_EditBone, RNA_id_pointer_create(), RNA_ParticleSystem, RNA_pointer_create(), RNA_PoseBone, RNA_ViewLayer, TREESTORE, TSE_BONE, TSE_CONSTRAINT, TSE_CONSTRAINT_BASE, TSE_DEFGROUP, TSE_DEFGROUP_BASE, TSE_EBONE, TSE_GP_LAYER, TSE_GPENCIL_EFFECT, TSE_GPENCIL_EFFECT_BASE, TSE_LINKED_PSYS, TSE_MODIFIER, TSE_MODIFIER_BASE, TSE_POSE_BASE, TSE_POSE_CHANNEL, TSE_POSEGRP, TSE_POSEGRP_BASE, TSE_R_LAYER, TSE_R_LAYER_BASE, TSE_SOME_ID, ModifierData::type, Object::type, and TreeStoreElem::type.
Referenced by outliner_item_do_activate_from_cursor().
|
static |
Definition at line 1135 of file outliner_select.c.
References blender::compositor::area(), bScreen::areabase, C, context, CTX_wm_screen(), ED_buttons_set_context(), ED_buttons_should_sync_with_outliner(), if(), LISTBASE_FOREACH, ptr, and SPACE_PROPERTIES.
Referenced by outliner_set_properties_tab().
|
static |
Definition at line 1866 of file outliner_select.c.
References outliner_item_openclose(), TreeElement::parent, TREESTORE, and TSELEM_OPEN.
Referenced by do_outliner_select_walk().
|
static |
Definition at line 1883 of file outliner_select.c.
References BLI_listbase_is_empty(), ListBase::first, outliner_item_openclose(), TreeElement::subtree, TREESTORE, and TSELEM_OPEN.
Referenced by do_outliner_select_walk().
|
static |
Definition at line 1958 of file outliner_select.c.
References View2D::cur, outliner_scroll_view(), UI_UNIT_Y, ARegion::v2d, rctf::ymax, rctf::ymin, and TreeElement::ys.
Referenced by outliner_walk_select_invoke().
|
static |
Definition at line 1973 of file outliner_select.c.
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(), wmOperator::ptr, RNA_boolean_get(), and RNA_enum_get().
Referenced by OUTLINER_OT_select_walk().
| void tree_element_activate | ( | bContext * | C, |
| const TreeViewContext * | tvc, | ||
| TreeElement * | te, | ||
| const eOLSetState | set, | ||
| const bool | handle_all_types | ||
| ) |
Definition at line 737 of file outliner_select.c.
References C, ID_CA, ID_MA, ID_OB, ID_WO, TreeElement::idcode, TreeViewContext::scene, tree_element_camera_activate(), tree_element_material_activate(), tree_element_object_activate(), tree_element_world_activate(), and TreeViewContext::view_layer.
Referenced by do_outliner_item_activate_tree_element(), and namebutton_fn().
|
static |
Definition at line 1044 of file outliner_select.c.
References Scene::camera, ID_OB, OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, outliner_search_back(), and scene.
Referenced by tree_element_active_state_get().
|
static |
Edit-bones only draw in edit-mode armature.
Definition at line 579 of file outliner_select.c.
References bArmature::act_edbone, C, CTX_data_edit_object(), 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 988 of file outliner_select.c.
References Object::actcol, ID_OB, TreeElement::idcode, TreeElement::index, Object::matbits, NULL, OBACT, OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, outliner_search_back(), and TreeElement::parent.
Referenced by tree_element_active_state_get().
|
static |
Definition at line 1018 of file outliner_select.c.
References TreeStoreElem::id, ID_SCE, TreeElement::idcode, OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, and TreeViewContext::scene.
Referenced by tree_element_active_state_get().
| eOLDrawState tree_element_active_state_get | ( | const TreeViewContext * | tvc, |
| const TreeElement * | te, | ||
| const TreeStoreElem * | tselem | ||
| ) |
Definition at line 1051 of file outliner_select.c.
References ID_CA, ID_MA, ID_OB, ID_SCE, ID_WO, TreeElement::idcode, OL_DRAWSEL_NONE, TreeViewContext::scene, tree_element_active_camera_get(), tree_element_active_material_get(), tree_element_active_scene_get(), tree_element_active_world_get(), and TreeViewContext::view_layer.
Referenced by outliner_draw_iconrow(), and outliner_draw_tree_element().
|
static |
Definition at line 1030 of file outliner_select.c.
References TreeStoreElem::id, NULL, OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, TreeElement::parent, scene, and TREESTORE.
Referenced by tree_element_active_state_get().
|
static |
Definition at line 538 of file outliner_select.c.
References bArmature::act_bone, BONE_HIDDEN_P, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, bArmature::bonebase, C, TreeElement::directdata, do_outliner_bone_select_recursive(), ListBase::first, TreeStoreElem::id, if(), NC_OBJECT, ND_BONE_ACTIVE, NULL, OBACT, OL_SETSEL_EXTEND, and WM_event_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 840 of file outliner_select.c.
References BONE_SELECTED, TreeElement::directdata, TreeStoreElem::id, OBACT, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 415 of file outliner_select.c.
References C, Scene::camera, CTX_data_main(), DEG_id_tag_update(), DEG_relations_tag_update(), ListBase::first, Scene::id, ID_OB, ID_RECALC_COPY_ON_WRITE, NA_EDITED, NC_SCENE, NULL, outliner_search_back(), scene, Main::wm, WM_event_add_notifier(), and WM_windows_scene_data_sync().
Referenced by tree_element_activate().
|
static |
Definition at line 647 of file outliner_select.c.
References C, TreeStoreElem::id, NC_OBJECT, ND_CONSTRAINT, 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 448 of file outliner_select.c.
References Object::actdef, BLI_assert, C, DEG_id_tag_update(), Object::id, TreeStoreElem::id, ID_RECALC_GEOMETRY, TreeElement::index, NC_OBJECT, ND_TRANSFORM, and WM_event_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 827 of file outliner_select.c.
References Object::actdef, TreeStoreElem::id, if(), TreeElement::index, OBACT, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 587 of file outliner_select.c.
References BKE_view_layer_array_from_bases_in_edit_mode_unique_data, BONE_HIDDEN_A, BONE_SELECTED, C, TreeElement::directdata, do_outliner_ebone_select_recursive(), ED_armature_edit_deselect_all_multi_ex(), TreeStoreElem::id, if(), MEM_freeN, NULL, OL_SETSEL_EXTEND, OL_SETSEL_NORMAL, and tree_element_active_ebone__sel().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 855 of file outliner_select.c.
References BONE_SELECTED, TreeElement::directdata, EditBone::flag, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 459 of file outliner_select.c.
References BKE_gpencil_layer_active_set(), C, DEG_id_tag_update(), TreeElement::directdata, bGPdata::id, TreeStoreElem::id, ID_RECALC_GEOMETRY, if(), NA_SELECTED, NC_GPENCIL, ND_DATA, and WM_event_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 959 of file outliner_select.c.
References TreeElement::directdata, GP_LAYER_ACTIVE, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 723 of file outliner_select.c.
References BKE_layer_collection_activate(), BKE_view_layer_find_from_collection(), C, CTX_data_scene(), TreeElement::directdata, NA_ACTIVATED, NC_SCENE, ND_LAYER, NS_LAYER_COLLECTION, NULL, scene, and WM_main_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 978 of file outliner_select.c.
References blender::compositor::active, C, CTX_data_layer_collection(), TreeElement::directdata, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 713 of file outliner_select.c.
References BKE_layer_collection_activate(), C, CTX_data_view_layer(), ListBase::first, ViewLayer::layer_collections, NA_ACTIVATED, NC_SCENE, ND_LAYER, NS_LAYER_COLLECTION, NULL, and WM_main_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 967 of file outliner_select.c.
References blender::compositor::active, C, CTX_data_layer_collection(), CTX_data_view_layer(), ListBase::first, ViewLayer::layer_collections, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 387 of file outliner_select.c.
References Object::actcol, C, DEG_id_tag_update(), ID_OB, ID_RECALC_TRANSFORM, TreeElement::idcode, TreeElement::index, Object::matbits, NC_MATERIAL, ND_SHADING_LINKS, NULL, OBACT, outliner_search_back(), TreeElement::parent, and WM_event_add_notifier().
Referenced by tree_element_activate().
|
static |
Definition at line 626 of file outliner_select.c.
References BKE_object_modifier_set_active(), C, 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 864 of file outliner_select.c.
References BKE_object_active_modifier(), TreeElement::directdata, TreeStoreElem::id, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 280 of file outliner_select.c.
References BA_DESELECT, BA_SELECT, BASE_SELECTED, BKE_object_is_mode_compat(), BKE_view_layer_base_deselect_all(), BKE_view_layer_base_find(), C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_wm_window(), DEG_id_tag_update(), depsgraph, do_outliner_object_select_recursive(), ED_object_base_activate_with_mode_exit_if_needed(), ED_object_base_select(), ED_object_mode_generic_exit(), Base::flag, TreeStoreElem::flag, TreeStoreElem::id, Scene::id, ID_OB, ID_RECALC_SELECT, ID_SCE, TreeElement::idcode, if(), Object::mode, NC_SCENE, ND_OB_SELECT, NULL, OB_MODE_OBJECT, OBACT, Base::object, ToolSettings::object_flag, OL_SETSEL_EXTEND, OL_SETSEL_NONE, outliner_search_back(), outliner_search_back_te(), SCE_OBJECT_MODE_LOCK, scene, Scene::toolsettings, TREESTORE, TSE_SELECTED, TSE_SOME_ID, TreeStoreElem::type, WM_event_add_notifier(), 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 873 of file outliner_select.c.
References TreeStoreElem::id, TreeViewContext::obact, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 879 of file outliner_select.c.
References BKE_view_layer_base_find(), TreeStoreElem::id, Object::mode, NULL, OB_MODE_POSE, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 482 of file outliner_select.c.
References BKE_object_pose_armature_get(), BKE_object_pose_array_get_unique(), bPoseChannel::bone, BONE_HIDDEN_P, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, C, bPose::chanbase, Object::data, DEG_id_tag_update(), TreeElement::directdata, do_outliner_bone_select_recursive(), ELEM, ListBase::first, Bone::flag, TreeStoreElem::id, ID_RECALC_SELECT, if(), MEM_freeN, NC_OBJECT, ND_BONE_ACTIVE, bPoseChannel::next, NULL, Main::objects, OL_SETSEL_EXTEND, Object::pose, and WM_event_add_notifier().
Referenced by tree_element_constraint_activate(), and tree_element_type_active_set().
|
static |
Definition at line 896 of file outliner_select.c.
References BONE_SELECTED, TreeElement::directdata, TreeStoreElem::id, if(), OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, and Object::pose.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 473 of file outliner_select.c.
References bPose::active_group, C, TreeStoreElem::id, if(), TreeElement::index, NC_OBJECT, ND_DRAW, Object::pose, and WM_event_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 925 of file outliner_select.c.
References bPose::active_group, TreeStoreElem::id, if(), TreeElement::index, OBACT, OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, and Object::pose.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 640 of file outliner_select.c.
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 669 of file outliner_select.c.
References BLI_findindex(), C, TreeElement::directdata, ED_sequencer_deselect_all(), Sequence::flag, NA_SELECTED, NC_SCENE, ND_SEQUENCER, NULL, OL_SETSEL_EXTEND, scene, SELECT, SEQ_editing_get(), SEQ_select_active_set(), and WM_event_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 695 of file outliner_select.c.
References ListBase::first, StripElem::name, Sequence::next, scene, SEQ_editing_get(), Editing::seqbasep, Sequence::strip, and Strip::stripdata.
Referenced by tree_element_type_active_set().
|
static |
Definition at line 950 of file outliner_select.c.
References TreeElement::directdata, Sequence::flag, if(), OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, and SELECT.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 939 of file outliner_select.c.
References TreeElement::directdata, Scene::ed, Sequence::flag, if(), OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, scene, and SELECT.
Referenced by tree_element_type_active_state_get().
| void tree_element_type_active_set | ( | bContext * | C, |
| const TreeViewContext * | tvc, | ||
| TreeElement * | te, | ||
| TreeStoreElem * | tselem, | ||
| const eOLSetState | set, | ||
| bool | recursive | ||
| ) |
Generic call for non-id data to make active in UI
Definition at line 767 of file outliner_select.c.
References BLI_assert, C, OL_SETSEL_NONE, TreeViewContext::scene, tree_element_bone_activate(), tree_element_constraint_activate(), tree_element_defgroup_activate(), tree_element_ebone_activate(), tree_element_gplayer_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_posegroup_activate(), tree_element_psys_activate(), tree_element_sequence_activate(), tree_element_sequence_dup_activate(), tree_element_viewlayer_activate(), TSE_BONE, TSE_CONSTRAINT, TSE_CONSTRAINT_BASE, TSE_DEFGROUP, TSE_EBONE, TSE_GP_LAYER, TSE_LAYER_COLLECTION, TSE_LINKED_OB, TSE_LINKED_PSYS, TSE_MODIFIER, TSE_POSE_BASE, TSE_POSE_CHANNEL, TSE_POSEGRP, TSE_R_LAYER, TSE_SEQUENCE, TSE_SEQUENCE_DUP, TSE_VIEW_COLLECTION_BASE, TreeStoreElem::type, and TreeViewContext::view_layer.
Referenced by do_outliner_item_activate_tree_element().
| eOLDrawState tree_element_type_active_state_get | ( | const bContext * | C, |
| 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 1075 of file outliner_select.c.
References C, TreeViewContext::ob_pose, OL_DRAWSEL_NONE, TreeViewContext::scene, tree_element_bone_state_get(), tree_element_defgroup_state_get(), tree_element_ebone_state_get(), tree_element_gplayer_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_posegroup_state_get(), tree_element_sequence_dup_state_get(), tree_element_sequence_state_get(), tree_element_viewlayer_state_get(), TSE_BONE, TSE_CONSTRAINT, TSE_CONSTRAINT_BASE, TSE_DEFGROUP, TSE_EBONE, TSE_GP_LAYER, TSE_LAYER_COLLECTION, TSE_LINKED_OB, TSE_LINKED_PSYS, TSE_MODIFIER, TSE_POSE_BASE, TSE_POSE_CHANNEL, TSE_POSEGRP, TSE_R_LAYER, TSE_SEQUENCE, TSE_SEQUENCE_DUP, TSE_VIEW_COLLECTION_BASE, TreeStoreElem::type, and TreeViewContext::view_layer.
|
static |
Definition at line 216 of file outliner_select.c.
References BLI_findindex(), C, CTX_wm_window(), TreeElement::directdata, ID_SCE, TreeElement::idcode, NC_SCREEN, ND_LAYER, NULL, scene, 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 910 of file outliner_select.c.
References C, CTX_data_view_layer(), TreeElement::directdata, ID_SCE, TreeElement::idcode, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 430 of file outliner_select.c.
References C, CTX_data_main(), CTX_wm_window(), TreeStoreElem::id, NULL, TreeElement::parent, scene, TREESTORE, TSE_SOME_ID, TreeStoreElem::type, and WM_window_set_active_scene().
Referenced by tree_element_activate().