|
Blender V4.3
|
Go to the source code of this file.
Functions | |
| bool | ED_outliner_collections_editor_poll (bContext *C) |
| void | ED_outliner_selected_objects_get (const bContext *C, ListBase *objects) |
| Base * | ED_outliner_give_base_under_cursor (bContext *C, const int mval[2]) |
| bool | ED_outliner_give_rna_under_cursor (bContext *C, const int mval[2], PointerRNA *r_ptr) |
| void | ED_outliner_select_sync_from_object_tag (bContext *C) |
| void | ED_outliner_select_sync_from_edit_bone_tag (bContext *C) |
| void | ED_outliner_select_sync_from_pose_bone_tag (bContext *C) |
| void | ED_outliner_select_sync_from_sequence_tag (bContext *C) |
| void | ED_outliner_select_sync_from_all_tag (bContext *C) |
| bool | ED_outliner_select_sync_is_dirty (const bContext *C) |
| void | ED_outliner_select_sync_from_outliner (bContext *C, SpaceOutliner *space_outliner) |
| void | ED_outliner_select_sync_flag_outliners (const bContext *C) |
| int | ED_outliner_icon_from_id (const ID &id) |
| bool ED_outliner_collections_editor_poll | ( | bContext * | C | ) |
Definition at line 159 of file outliner_collections.cc.
References CTX_wm_space_outliner(), ELEM, SpaceOutliner::outlinevis, SO_LIBRARIES, SO_SCENES, and SO_VIEW_LAYER.
Referenced by blender::ed::outliner::collection_edit_in_active_scene_poll(), blender::ed::outliner::collection_flag_poll(), blender::ed::outliner::collection_inside_poll(), blender::ed::object::move_to_collection_poll(), blender::ed::object::object_hide_poll(), blender::ed::outliner::OUTLINER_OT_collection_color_tag_set(), blender::ed::outliner::OUTLINER_OT_collection_duplicate(), blender::ed::outliner::OUTLINER_OT_collection_duplicate_linked(), blender::ed::outliner::OUTLINER_OT_collection_isolate(), blender::ed::outliner::OUTLINER_OT_collection_objects_deselect(), and blender::ed::outliner::OUTLINER_OT_collection_objects_select().
Get base of object under cursor. Used for eyedropper tool.
Definition at line 460 of file outliner_utils.cc.
References BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_region(), CTX_wm_space_outliner(), blender::ed::outliner::TreeElement::directdata, TreeStoreElem::id, ID_OB, blender::ed::outliner::TreeElement::idcode, blender::ed::outliner::outliner_find_item_at_y(), SpaceOutliner::tree, TREESTORE, TSE_SOME_ID, TreeStoreElem::type, and UI_view2d_region_to_view().
Referenced by datadropper_id_sample_pt().
| bool ED_outliner_give_rna_under_cursor | ( | bContext * | C, |
| const int | mval[2], | ||
| PointerRNA * | r_ptr ) |
Get the PointerRNA at the given coordinates. ONLY works for bone structs at the moment. Can be extended to work with other structs if the need arises.
Definition at line 485 of file outliner_utils.cc.
References CTX_wm_region(), CTX_wm_space_outliner(), blender::ed::outliner::TreeElement::directdata, TreeStoreElem::id, blender::ed::outliner::outliner_find_item_at_y(), RNA_pointer_create(), SpaceOutliner::tree, TREESTORE, TSE_BONE, TSE_EBONE, TSE_POSE_CHANNEL, TreeStoreElem::type, and UI_view2d_region_to_view().
Referenced by blender::ui::sample_data_from_outliner().
Definition at line 4183 of file outliner_draw.cc.
References blender::ed::outliner::tree_element_get_icon_from_id().
Referenced by blender::ed::spreadsheet::get_instance_reference_icon().
| void ED_outliner_select_sync_flag_outliners | ( | const bContext * | C | ) |
Copy sync select dirty flag from window manager to all outliners to be synced lazily on draw.
Definition at line 80 of file outliner_sync.cc.
References CTX_data_main(), CTX_wm_manager(), ListBase::first, LISTBASE_FOREACH, wmWindowManager::outliner_sync_select_dirty, Main::screens, SPACE_OUTLINER, and SpaceOutliner::sync_select_dirty.
Referenced by blender::ed::outliner::draw_outliner().
| void ED_outliner_select_sync_from_all_tag | ( | bContext * | C | ) |
Definition at line 68 of file outliner_sync.cc.
References CTX_wm_manager(), wmWindowManager::outliner_sync_select_dirty, and WM_OUTLINER_SYNC_SELECT_FROM_ALL.
Referenced by ed_undo_refresh_for_op(), blender::ed::outliner::outliner_id_operation_exec(), wm_homefile_read_exec(), and wm_open_mainfile__open().
| void ED_outliner_select_sync_from_edit_bone_tag | ( | bContext * | C | ) |
Definition at line 50 of file outliner_sync.cc.
References CTX_wm_manager(), wmWindowManager::outliner_sync_select_dirty, and WM_OUTLINER_SYNC_SELECT_FROM_EDIT_BONE.
Referenced by armature_bone_primitive_add_exec(), armature_click_extrude_exec(), armature_de_select_all_exec(), armature_de_select_less_exec(), armature_de_select_more_exec(), armature_delete_selected_exec(), armature_dissolve_selected_exec(), armature_duplicate_selected_exec(), armature_extrude_exec(), armature_select_hierarchy_exec(), armature_select_linked_exec(), armature_select_linked_pick_invoke(), armature_select_mirror_exec(), armature_select_similar_exec(), armature_shortest_path_pick_invoke(), armature_subdivide_exec(), bone_collection_assign_mode_specific(), bone_collection_select(), ED_armature_edit_select_pick_bone(), obedit_circle_select(), view3d_box_select_exec(), and view3d_lasso_select().
| void ED_outliner_select_sync_from_object_tag | ( | bContext * | C | ) |
Functions for tagging outliner selection syncing is dirty from operators.
Definition at line 44 of file outliner_sync.cc.
References CTX_wm_manager(), wmWindowManager::outliner_sync_select_dirty, and WM_OUTLINER_SYNC_SELECT_FROM_OBJECT.
Referenced by blender::ed::object::add_type_with_obdata(), bone_select_menu_exec(), blender::ed::outliner::collection_duplicate_exec(), blender::ed::outliner::collection_hierarchy_delete_exec(), blender::ed::outliner::collection_objects_select_exec(), blender::ed::outliner::do_outliner_item_editmode_toggle(), blender::ed::outliner::do_outliner_item_mode_toggle_generic(), blender::ed::outliner::do_outliner_item_posemode_toggle(), blender::ed::object::duplicate_exec(), ed_object_select_pick(), ED_text_to_object(), edbm_separate_exec(), blender::ed::object::object_add_named_exec(), blender::ed::object::object_duplicates_make_real_exec(), blender::ed::object::object_select_all_exec(), blender::ed::object::object_select_by_type_exec(), blender::ed::object::object_select_grouped_exec(), blender::ed::object::object_select_less_exec(), blender::ed::object::object_select_linked_exec(), object_select_menu_exec(), blender::ed::object::object_select_mirror_exec(), blender::ed::object::object_select_more_exec(), blender::ed::object::object_select_random_exec(), blender::ed::object::object_select_same_collection_exec(), blender::ed::object::object_transfer_mode_invoke(), blender::ed::outliner::outliner_delete_exec(), blender::ed::outliner::outliner_object_operation_exec(), separate_armature_exec(), separate_exec(), view3d_box_select_exec(), view3d_circle_select_exec(), view3d_collection_drop_copy_external_asset(), view3d_lasso_select(), view3d_ob_drop_copy_external_asset(), and view3d_pastebuffer_exec().
| void ED_outliner_select_sync_from_outliner | ( | bContext * | C, |
| SpaceOutliner * | space_outliner ) |
Set clean outliner and mark other outliners for syncing.
Definition at line 354 of file outliner_sync.cc.
References CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), blender::ed::outliner::SyncSelectTypes::edit_bone, ELEM, SpaceOutliner::flag, ID_RECALC_SELECT, NA_SELECTED, NC_SCENE, ND_OB_SELECT, ND_SEQUENCER, blender::ed::outliner::SyncSelectTypes::object, SpaceOutliner::outlinevis, blender::ed::outliner::SyncSelectTypes::pose_bone, blender::ed::outliner::SyncSelectTypes::sequence, SO_DATA_API, SO_ID_ORPHANS, SO_LIBRARIES, SO_OVERRIDES_LIBRARY, SO_SYNC_SELECT, SpaceOutliner::sync_select_dirty, SpaceOutliner::tree, and WM_event_add_notifier().
Referenced by blender::ed::outliner::do_outliner_operation_event(), blender::ed::outliner::merged_element_search_exec_fn(), blender::ed::outliner::outliner_box_select_exec(), blender::ed::outliner::outliner_item_do_activate_from_cursor(), blender::ed::outliner::outliner_item_drag_drop_invoke(), blender::ed::outliner::outliner_select_all_exec(), and blender::ed::outliner::outliner_walk_select_invoke().
| void ED_outliner_select_sync_from_pose_bone_tag | ( | bContext * | C | ) |
Definition at line 56 of file outliner_sync.cc.
References CTX_wm_manager(), wmWindowManager::outliner_sync_select_dirty, and WM_OUTLINER_SYNC_SELECT_FROM_POSE_BONE.
Referenced by bone_collection_select(), ed_object_select_pick(), pose_de_select_all_exec(), pose_select_connected_invoke(), pose_select_constraint_target_exec(), pose_select_grouped_exec(), pose_select_hierarchy_exec(), pose_select_linked_exec(), pose_select_mirror_exec(), pose_select_parent_exec(), view3d_box_select_exec(), view3d_circle_select_exec(), and view3d_lasso_select().
| void ED_outliner_select_sync_from_sequence_tag | ( | bContext * | C | ) |
Definition at line 62 of file outliner_sync.cc.
References CTX_wm_manager(), wmWindowManager::outliner_sync_select_dirty, and WM_OUTLINER_SYNC_SELECT_FROM_SEQUENCE.
Referenced by sequencer_clipboard_paste_exec(), sequencer_de_select_all_exec(), sequencer_select_do_updates(), sequencer_select_grouped_exec(), sequencer_select_handles_exec(), sequencer_select_inverse_exec(), sequencer_select_less_exec(), sequencer_select_linked_exec(), sequencer_select_linked_pick_invoke(), sequencer_select_more_exec(), sequencer_select_side_exec(), and sequencer_select_side_of_frame_exec().
| bool ED_outliner_select_sync_is_dirty | ( | const bContext * | C | ) |
Definition at line 74 of file outliner_sync.cc.
References CTX_wm_manager(), wmWindowManager::outliner_sync_select_dirty, and WM_OUTLINER_SYNC_SELECT_FROM_ALL.
Referenced by blender::ed::outliner::draw_outliner().
Populates the
| objects | ListBase with all the outliner selected objects We store it as (Object *)LinkData->data |
| objects | expected to be empty |
Definition at line 129 of file outliner_collections.cc.
References BLI_addtail(), BLI_freelistN(), BLI_genericNodeN(), CTX_wm_space_outliner(), Object::id, LISTBASE_FOREACH, SpaceOutliner::tree, TREESTORE, and TSE_SELECTED.
Referenced by blender::ed::object::selected_objects_get().