Blender
V3.3
|
#include <cstdlib>
#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 "DNA_text_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_deform.h"
#include "BKE_gpencil.h"
#include "BKE_gpencil_modifier.h"
#include "BKE_layer.h"
#include "BKE_lib_id.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_text.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 "RNA_prototypes.h"
#include "outliner_intern.hh"
#include "tree/tree_display.hh"
#include "tree/tree_element_seq.hh"
#include "tree/tree_iterator.hh"
Go to the source code of this file.
|
static |
Definition at line 251 of file outliner_select.cc.
References BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, Bone::childbase, LISTBASE_FOREACH, PBONE_SELECTABLE, and select().
Referenced by tree_element_bone_activate(), and tree_element_posechannel_activate().
|
static |
Definition at line 264 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 1361 of file outliner_select.cc.
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, 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 84 of file outliner_select.cc.
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, 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 161 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(), 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 117 of file outliner_select.cc.
References BA_DESELECT, BA_SELECT, BKE_id_is_editable(), 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(), 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, scene, and WM_event_add_notifier().
Referenced by outliner_item_mode_toggle().
|
static |
Select object tree
Definition at line 236 of file outliner_select.cc.
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 1519 of file outliner_select.cc.
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 1488 of file outliner_select.cc.
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 1917 of file outliner_select.cc.
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 1952 of file outliner_select.cc.
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 1720 of file outliner_select.cc.
References blender::ed::outliner::tree_iterator::all_open(), UI_UNIT_Y, rctf::ymax, rctf::ymin, and TreeElement::ys.
Referenced by outliner_box_select_exec().
|
static |
Definition at line 1733 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_flag_set(), wmOperator::ptr, RNA_enum_get(), scene, 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_OT_select_box().
|
static |
Definition at line 1760 of file outliner_select.cc.
References C, CTX_wm_region(), CTX_wm_space_outliner(), 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, WM_event_drag_start_mval(), and WM_gesture_box_invoke().
Referenced by OUTLINER_OT_select_box().
|
static |
Definition at line 1851 of file outliner_select.cc.
References TreeElement::next, and TreeElement::parent.
Referenced by outliner_find_next_element().
|
static |
Definition at line 1866 of file outliner_select.cc.
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 1134 of file outliner_select.cc.
References TreeElement::directdata, 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 1837 of file outliner_select.cc.
References outliner_find_rightmost_visible_child(), TreeElement::parent, and TreeElement::prev.
Referenced by do_outliner_select_walk().
|
static |
Definition at line 1822 of file outliner_select.cc.
References ListBase::last, TreeElement::subtree, TREESTORE, and TSELEM_OPEN.
Referenced by outliner_find_previous_element().
|
static |
Definition at line 1570 of file outliner_select.cc.
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 1561 of file outliner_select.cc.
References outliner_shows_mode_column(), and UI_UNIT_X.
Referenced by outliner_is_co_within_active_mode_column(), and outliner_item_drag_drop_invoke().
|
static |
Definition at line 1554 of file outliner_select.cc.
References View2D::cur, outliner_right_columns_width(), ARegion::v2d, and rctf::xmax.
Referenced by outliner_item_do_activate_from_cursor().
|
static |
Definition at line 1674 of file outliner_select.cc.
References C, CTX_wm_region(), outliner_item_do_activate_from_cursor(), wmOperator::ptr, RNA_boolean_get(), and WM_event_drag_start_mval().
Referenced by OUTLINER_OT_item_activate().
|
static |
Action to run when clicking in the outliner,
May expend/collapse branches or activate items.
Definition at line 1586 of file outliner_select.cc.
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 | ( | struct bContext * | C, |
TreeViewContext * | tvc, | ||
TreeElement * | te, | ||
bool | do_extend | ||
) |
Toggle the item's interaction mode if supported.
Definition at line 182 of file outliner_select.cc.
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 | ( | struct bContext * | C, |
struct SpaceOutliner * | space_outliner, | ||
struct TreeElement * | te, | ||
short | select_flag | ||
) |
Select the item using the set flags.
Definition at line 1449 of file outliner_select.cc.
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, 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_do_activate_from_cursor(), and outliner_walk_select_invoke().
void OUTLINER_OT_item_activate | ( | wmOperatorType * | ot | ) |
Definition at line 1687 of file outliner_select.cc.
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 1786 of file outliner_select.cc.
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 2021 of file outliner_select.cc.
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 1169 of file outliner_select.cc.
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, blender::compositor::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_LEGACY, ID_CV, ID_GD, 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(), OB_GPENCIL, outliner_find_parent_bone(), outliner_sync_to_properties_editors(), psys_get_current(), ptr, RNA_id_pointer_create(), RNA_pointer_create(), 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 1151 of file outliner_select.cc.
References blender::compositor::area(), bScreen::areabase, C, blender::compositor::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 1883 of file outliner_select.cc.
References outliner_item_openclose(), TreeElement::parent, TREESTORE, and TSELEM_OPEN.
Referenced by do_outliner_select_walk().
|
static |
Definition at line 1900 of file outliner_select.cc.
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 1975 of file outliner_select.cc.
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 1990 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(), wmOperator::ptr, RNA_boolean_get(), and RNA_enum_get().
Referenced by OUTLINER_OT_select_walk().
void tree_element_activate | ( | struct 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 753 of file outliner_select.cc.
References C, ID_CA, ID_MA, ID_OB, ID_TXT, ID_WO, TreeElement::idcode, TreeViewContext::scene, tree_element_camera_activate(), tree_element_material_activate(), tree_element_object_activate(), tree_element_text_activate(), tree_element_world_activate(), and TreeViewContext::view_layer.
Referenced by do_outliner_item_activate_tree_element(), and namebutton_fn().
|
static |
Definition at line 1063 of file outliner_select.cc.
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 578 of file outliner_select.cc.
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 1007 of file outliner_select.cc.
References Object::actcol, ID_OB, TreeElement::idcode, TreeElement::index, Object::matbits, OBACT, OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, outliner_search_back(), and TreeElement::parent.
Referenced by tree_element_active_state_get().
|
static |
Definition at line 1037 of file outliner_select.cc.
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 1070 of file outliner_select.cc.
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 1049 of file outliner_select.cc.
References TreeStoreElem::id, OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, TreeElement::parent, scene, and TREESTORE.
Referenced by tree_element_active_state_get().
|
static |
Definition at line 537 of file outliner_select.cc.
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, NC_OBJECT, ND_BONE_ACTIVE, Bone::next, OBACT, OL_SETSEL_EXTEND, and WM_event_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 856 of file outliner_select.cc.
References BONE_SELECTED, Object::data, 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.cc.
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, 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 651 of file outliner_select.cc.
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.cc.
References BKE_object_defgroup_active_index_set(), 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 843 of file outliner_select.cc.
References BKE_object_defgroup_active_index_get(), 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 586 of file outliner_select.cc.
References BKE_view_layer_array_from_bases_in_mode_params(), BONE_HIDDEN_A, BONE_SELECTED, C, TreeElement::directdata, do_outliner_ebone_select_recursive(), ED_armature_edit_deselect_all_multi_ex(), TreeStoreElem::id, MEM_freeN, 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 871 of file outliner_select.cc.
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.cc.
References BKE_gpencil_layer_active_set(), C, DEG_id_tag_update(), 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 978 of file outliner_select.cc.
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 734 of file outliner_select.cc.
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, scene, and WM_main_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 997 of file outliner_select.cc.
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().
Definition at line 723 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 986 of file outliner_select.cc.
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.cc.
References Object::actcol, C, DEG_id_tag_update(), ID_OB, ID_RECALC_TRANSFORM, TreeElement::idcode, TreeElement::index, Object::matbits, NC_MATERIAL, ND_SHADING_LINKS, OBACT, outliner_search_back(), TreeElement::parent, and WM_event_add_notifier().
Referenced by tree_element_activate().
|
static |
Definition at line 630 of file outliner_select.cc.
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 880 of file outliner_select.cc.
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 279 of file outliner_select.cc.
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, 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(), 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 889 of file outliner_select.cc.
References TreeStoreElem::id, TreeViewContext::obact, OL_DRAWSEL_NONE, and OL_DRAWSEL_NORMAL.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 895 of file outliner_select.cc.
References BKE_view_layer_base_find(), 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 482 of file outliner_select.cc.
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, Bone::flag, TreeStoreElem::id, ID_RECALC_SELECT, LISTBASE_FOREACH, MEM_freeN, NC_OBJECT, ND_BONE_ACTIVE, 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 912 of file outliner_select.cc.
References BONE_SELECTED, TreeElement::directdata, TreeStoreElem::id, 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.cc.
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 941 of file outliner_select.cc.
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 644 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 673 of file outliner_select.cc.
References BLI_findindex(), C, ED_sequencer_deselect_all(), Sequence::flag, blender::ed::outliner::TreeElementSequence::getSequence(), NA_SELECTED, NC_SCENE, ND_SEQUENCER, OL_SETSEL_EXTEND, scene, SELECT, SEQ_editing_get(), SEQ_select_active_set(), Editing::seqbasep, and WM_event_add_notifier().
Referenced by tree_element_type_active_set().
|
static |
Definition at line 700 of file outliner_select.cc.
References ListBase::first, StripElem::name, Sequence::next, scene, SEQ_editing_get(), Editing::seqbasep, STREQ, Sequence::strip, and Strip::stripdata.
Referenced by tree_element_type_active_set().
|
static |
Definition at line 967 of file outliner_select.cc.
References Sequence::flag, blender::ed::outliner::TreeElementSequenceStripDuplicate::getSequence(), OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, and SELECT.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 955 of file outliner_select.cc.
References Editing::act_seq, Scene::ed, Sequence::flag, blender::ed::outliner::TreeElementSequence::getSequence(), OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, scene, and SELECT.
Referenced by tree_element_type_active_state_get().
|
static |
Definition at line 745 of file outliner_select.cc.
References C, ED_text_activate_in_screen(), TreeStoreElem::id, and TreeElement::store_elem.
Referenced by tree_element_activate().
void tree_element_type_active_set | ( | struct 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 783 of file outliner_select.cc.
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 | ||
) |
Definition at line 1091 of file outliner_select.cc.
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.cc.
References BLI_findindex(), C, CTX_wm_window(), TreeElement::directdata, ID_SCE, TreeElement::idcode, NC_SCREEN, ND_LAYER, 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 926 of file outliner_select.cc.
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.cc.
References C, CTX_data_main(), CTX_wm_window(), TreeStoreElem::id, TreeElement::parent, scene, TREESTORE, TSE_SOME_ID, TreeStoreElem::type, and WM_window_set_active_scene().
Referenced by tree_element_activate().