|
Blender V4.3
|
#include <algorithm>#include <cstring>#include "BLI_listbase.h"#include "BLI_utildefines.h"#include "DNA_action_types.h"#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "BKE_context.hh"#include "BKE_layer.hh"#include "BKE_object.hh"#include "ED_outliner.hh"#include "ED_screen.hh"#include "UI_interface.hh"#include "UI_view2d.hh"#include "outliner_intern.hh"#include "tree/tree_display.hh"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::ed |
| namespace | blender::ed::outliner |
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().