|
Blender V4.3
|
#include "MEM_guardedalloc.h"#include "DNA_armature_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "BLI_blenlib.h"#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "BLI_rect.h"#include "BLI_string_utils.hh"#include "BKE_action.hh"#include "BKE_armature.hh"#include "BKE_context.hh"#include "BKE_layer.hh"#include "BKE_object.hh"#include "BKE_object_types.hh"#include "BKE_report.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_armature.hh"#include "ED_object.hh"#include "ED_outliner.hh"#include "ED_screen.hh"#include "ED_select_utils.hh"#include "ED_view3d.hh"#include "DEG_depsgraph.hh"#include "GPU_select.hh"#include "ANIM_bone_collections.hh"#include "ANIM_bonecolor.hh"#include "armature_intern.hh"Go to the source code of this file.
Macros | |
| #define | EBONE_PREV_FLAG_GET(ebone) ((void)0, (ebone)->temp.i) |
| #define | EBONE_PREV_FLAG_SET(ebone, val) ((ebone)->temp.i = val) |
| #define | CHECK_PARENT(ebone) |
| #define | STRUCT_SIZE_AND_OFFSET(_struct, _member) sizeof(_struct::_member), offsetof(_struct, _member) |
API's and Operators for selecting armature bones in EditMode.
Definition in file armature_select.cc.
| #define CHECK_PARENT | ( | ebone | ) |
Referenced by armature_select_linked_impl().
| #define EBONE_PREV_FLAG_GET | ( | ebone | ) | ((void)0, (ebone)->temp.i) |
Definition at line 56 of file armature_select.cc.
Referenced by armature_select_less(), armature_select_mirror_exec(), and armature_select_more().
| #define EBONE_PREV_FLAG_SET | ( | ebone, | |
| val ) ((ebone)->temp.i = val) |
Definition at line 57 of file armature_select.cc.
Referenced by armature_select_mirror_exec(), and armature_select_more_less().
| #define STRUCT_SIZE_AND_OFFSET | ( | _struct, | |
| _member ) sizeof(_struct::_member), offsetof(_struct, _member) |
Referenced by armature_select_similar_exec().
| anonymous enum |
Definition at line 1573 of file armature_select.cc.
|
static |
Definition at line 1326 of file armature_select.cc.
References BONE_CONNECTED, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, BONE_UNSELECTABLE, CTX_DATA_BEGIN, CTX_data_edit_object(), CTX_DATA_END, DEG_id_tag_update(), ED_outliner_select_sync_from_edit_bone_tag(), Object::id, ID_RECALC_SELECT, NC_OBJECT, ND_BONE_SELECT, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, and WM_event_add_notifier().
Referenced by ARMATURE_OT_select_all().
|
static |
Definition at line 1536 of file armature_select.cc.
References armature_select_more_less(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), ED_outliner_select_sync_from_edit_bone_tag(), ID_RECALC_SYNC_TO_EVAL, NC_OBJECT, ND_BONE_SELECT, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by ARMATURE_OT_select_less().
|
static |
Definition at line 1499 of file armature_select.cc.
References armature_select_more_less(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), ED_outliner_select_sync_from_edit_bone_tag(), ID_RECALC_SYNC_TO_EVAL, NC_OBJECT, ND_BONE_SELECT, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by ARMATURE_OT_select_more().
|
static |
Definition at line 1155 of file armature_select.cc.
References BLI_assert, BONE_DONE, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, BONESEL_BONE, BONESEL_ROOT, BONESEL_TIP, EBONE_SELECTABLE, EBONE_VISIBLE, ED_select_op_action_deselected(), EditBone::flag, EditBone::i, is_inside(), SET_FLAG_FROM_TEST, and EditBone::temp.
Referenced by ED_armature_edit_select_op_from_tagged().
| void ARMATURE_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 1386 of file armature_select.cc.
References armature_de_select_all_exec(), wmOperatorType::description, ED_operator_editarmature(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_select_all().
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_select_hierarchy | ( | wmOperatorType * | ot | ) |
Definition at line 2110 of file armature_select.cc.
References armature_select_hierarchy_exec(), BONE_SELECT_CHILD, BONE_SELECT_PARENT, wmOperatorType::description, ED_operator_editarmature(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_select_less | ( | wmOperatorType * | ot | ) |
Definition at line 1552 of file armature_select.cc.
References armature_de_select_less_exec(), wmOperatorType::description, ED_operator_editarmature(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_select_linked | ( | wmOperatorType * | ot | ) |
Definition at line 533 of file armature_select.cc.
References armature_select_linked_exec(), wmOperatorType::description, ED_operator_editarmature(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_select_linked_pick | ( | wmOperatorType * | ot | ) |
Definition at line 595 of file armature_select.cc.
References armature_select_linked_pick_invoke(), armature_select_linked_pick_poll(), wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_select_mirror | ( | wmOperatorType * | ot | ) |
Definition at line 2203 of file armature_select.cc.
References armature_select_mirror_exec(), wmOperatorType::description, ED_operator_editarmature(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_select_more | ( | wmOperatorType * | ot | ) |
Definition at line 1515 of file armature_select.cc.
References armature_de_select_more_exec(), wmOperatorType::description, ED_operator_editarmature(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_select_similar | ( | wmOperatorType * | ot | ) |
Definition at line 2005 of file armature_select.cc.
References armature_select_similar_exec(), wmOperatorType::description, ED_operator_editarmature(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_similar_types, RNA_def_enum(), RNA_def_float(), SIMEDBONE_LENGTH, wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_shortest_path_pick | ( | wmOperatorType * | ot | ) |
Definition at line 2339 of file armature_select.cc.
References armature_shortest_path_pick_invoke(), wmOperatorType::description, ED_operator_editarmature(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_armature().
|
static |
Definition at line 2033 of file armature_select.cc.
References bArmature::act_edbone, BONE_CONNECTED, BONE_SELECT_PARENT, CTX_data_edit_object(), Object::data, DEG_id_tag_update(), EBONE_SELECTABLE, ED_armature_ebone_select_set(), ED_armature_edit_sync_selection(), ED_outliner_select_sync_from_edit_bone_tag(), bArmature::edbo, Object::id, ID_RECALC_SYNC_TO_EVAL, LISTBASE_FOREACH, NC_OBJECT, ND_BONE_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, EditBone::parent, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), and WM_event_add_notifier().
Referenced by ARMATURE_OT_select_hierarchy().
Definition at line 1435 of file armature_select.cc.
References BONE_CONNECTED, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, EBONE_PREV_FLAG_GET, ED_armature_ebone_select_set(), ED_armature_ebone_selectflag_disable(), EditBone::flag, and EditBone::parent.
Referenced by armature_select_more_less().
|
static |
Definition at line 495 of file armature_select.cc.
References armature_select_linked_impl(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), BONE_DONE, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), EBONE_VISIBLE, ED_outliner_select_sync_from_edit_bone_tag(), bArmature::edbo, bArmature::flag, LISTBASE_FOREACH, OPERATOR_FINISHED, wmOperator::ptr, and RNA_boolean_get().
Referenced by ARMATURE_OT_select_linked().
|
static |
| all_forks | Control how chains are stepped over. true: select all connected bones traveling up & down forks. false: select all parents and all children, but not the children of the root bone. |
Definition at line 389 of file armature_select.cc.
References BONE_DONE, CHECK_PARENT, Object::data, DEG_id_tag_update(), ED_armature_ebone_select_set(), ED_armature_edit_sync_selection(), bArmature::edbo, EditBone::i, bArmature::id, ID_RECALC_SYNC_TO_EVAL, LISTBASE_FOREACH, NA_EDITED, NC_GPENCIL, ND_DATA, EditBone::parent, select(), EditBone::temp, and WM_main_add_notifier().
Referenced by armature_select_linked_exec(), and armature_select_linked_pick_invoke().
|
static |
Definition at line 557 of file armature_select.cc.
References armature_select_linked_impl(), BKE_object_update_select_id(), BONE_DONE, CTX_data_main(), Object::data, EBONE_SELECTABLE, ED_armature_pick_ebone(), ED_outliner_select_sync_from_edit_bone_tag(), bArmature::edbo, bArmature::flag, EditBone::flag, LISTBASE_FOREACH, wmEvent::mval, Base::object, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), select(), and view3d_operator_needs_opengl().
Referenced by ARMATURE_OT_select_linked_pick().
|
static |
Definition at line 590 of file armature_select.cc.
References ED_operator_editarmature(), and ED_operator_view3d_active().
Referenced by ARMATURE_OT_select_linked_pick().
|
static |
Definition at line 2144 of file armature_select.cc.
References bArmature::act_edbone, BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), EBONE_PREV_FLAG_GET, EBONE_PREV_FLAG_SET, EBONE_SELECTABLE, EBONE_VISIBLE, ED_armature_ebone_get_mirrored(), ED_armature_ebone_selectflag_get(), ED_armature_ebone_selectflag_set(), ED_armature_edit_sync_selection(), ED_outliner_select_sync_from_edit_bone_tag(), bArmature::edbo, ELEM, flag, ID_RECALC_SYNC_TO_EVAL, LISTBASE_FOREACH, NC_OBJECT, ND_BONE_SELECT, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by ARMATURE_OT_select_mirror().
Definition at line 1409 of file armature_select.cc.
References BONE_CONNECTED, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, EBONE_PREV_FLAG_GET, EBONE_SELECTABLE, ED_armature_ebone_select_set(), ED_armature_ebone_selectflag_enable(), EditBone::flag, and EditBone::parent.
Referenced by armature_select_more_less().
|
static |
Definition at line 1455 of file armature_select.cc.
References armature_select_less(), armature_select_more(), BONE_SELECTED, Object::data, EBONE_PREV_FLAG_SET, EBONE_VISIBLE, ED_armature_ebone_select_set(), ED_armature_ebone_selectflag_get(), ED_armature_edit_sync_selection(), bArmature::edbo, and LISTBASE_FOREACH.
Referenced by armature_de_select_less_exec(), and armature_de_select_more_exec().
|
static |
Definition at line 1950 of file armature_select.cc.
References BKE_report(), CTX_data_active_bone(), ED_outliner_select_sync_from_edit_bone_tag(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_float_get(), RPT_ERROR, select_similar_bone_collection(), select_similar_bone_color(), select_similar_children(), select_similar_children_immediate(), select_similar_data_pchan(), select_similar_direction(), select_similar_length(), select_similar_prefix(), select_similar_siblings(), select_similar_suffix(), SIMEDBONE_CHILDREN, SIMEDBONE_CHILDREN_IMMEDIATE, SIMEDBONE_COLLECTION, SIMEDBONE_COLOR, SIMEDBONE_DIRECTION, SIMEDBONE_LENGTH, SIMEDBONE_PREFIX, SIMEDBONE_SHAPE, SIMEDBONE_SIBLINGS, SIMEDBONE_SUFFIX, and STRUCT_SIZE_AND_OFFSET.
Referenced by ARMATURE_OT_select_similar().
|
static |
Definition at line 2257 of file armature_select.cc.
References bArmature::act_edbone, armature_shortest_path_select(), BKE_object_update_select_id(), BKE_report(), CTX_data_edit_object(), CTX_data_main(), Object::data, DEG_id_tag_update(), ED_armature_ebone_find_shared_parent(), ED_armature_ebone_is_child_recursive(), ED_armature_edit_sync_selection(), ED_armature_pick_ebone(), ED_outliner_select_sync_from_edit_bone_tag(), bArmature::edbo, ELEM, Object::id, ID_RECALC_SYNC_TO_EVAL, wmEvent::mval, NC_OBJECT, ND_BONE_SELECT, Base::object, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::reports, RPT_WARNING, view3d_operator_needs_opengl(), and WM_event_add_notifier().
Referenced by ARMATURE_OT_shortest_path_pick().
|
static |
Definition at line 2229 of file armature_select.cc.
References BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, EBONE_SELECTABLE, ED_armature_ebone_selectflag_set(), and EditBone::parent.
Referenced by armature_shortest_path_pick_invoke().
Definition at line 1643 of file armature_select.cc.
References copy_v3_v3(), EditBone::head, mul_m4_v3(), normalize_v3(), sub_v3_v3v3(), EditBone::tail, and v2.
Referenced by select_similar_direction().
Definition at line 1600 of file armature_select.cc.
References EditBone::head, len_squared_v3v3(), mul_v3_mat3_m4v3(), EditBone::tail, and v2.
Referenced by select_similar_length().
| Base * ED_armature_base_and_bone_from_select_buffer | ( | const Span< Base * > | bases, |
| const uint | select_id, | ||
| Bone ** | r_bone ) |
Definition at line 134 of file armature_select.cc.
References bPoseChannel::bone, and ED_armature_base_and_pchan_from_select_buffer().
Referenced by do_pose_box_select().
| Base * ED_armature_base_and_ebone_from_select_buffer | ( | const Span< Base * > | bases, |
| const uint | select_id, | ||
| EditBone ** | r_ebone ) |
Definition at line 63 of file armature_select.cc.
References BLI_findlink(), Object::data, bArmature::edbo, and Base::object.
Referenced by do_armature_box_select(), ed_armature_pick_bone_from_selectbuffer_impl(), and get_nearest_editbonepoint().
| Base * ED_armature_base_and_pchan_from_select_buffer | ( | const Span< Base * > | bases, |
| const uint | select_id, | ||
| bPoseChannel ** | r_pchan ) |
Definition at line 109 of file armature_select.cc.
References BLI_findlink(), bPose::chanbase, Base::object, and Object::pose.
Referenced by do_object_box_select(), ED_armature_base_and_bone_from_select_buffer(), and ed_armature_pick_bone_from_selectbuffer_impl().
| bool ED_armature_edit_deselect_all | ( | Object * | obedit | ) |
Definition at line 891 of file armature_select.cc.
References BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, Object::data, bArmature::edbo, bArmature::flag, and LISTBASE_FOREACH.
Referenced by armature_bone_primitive_add_exec(), armature_click_extrude_exec(), armature_fill_bones_exec(), ED_armature_ebone_add_primitive(), ED_armature_edit_deselect_all_multi_ex(), blender::ed::object::jump_to_bone(), separate_armature_bones(), and separate_armature_exec().
Definition at line 924 of file armature_select.cc.
References ED_armature_edit_deselect_all().
Referenced by ED_armature_edit_deselect_all_visible_multi(), ED_armature_edit_select_pick_bone(), and blender::ed::outliner::tree_element_ebone_activate().
| bool ED_armature_edit_deselect_all_visible | ( | Object * | obedit | ) |
Definition at line 904 of file armature_select.cc.
References BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, Object::data, EBONE_VISIBLE, ED_armature_edit_sync_selection(), bArmature::edbo, bArmature::flag, and LISTBASE_FOREACH.
Referenced by armature_circle_select(), do_lasso_select_armature(), and ED_armature_edit_deselect_all_visible_multi_ex().
| bool ED_armature_edit_deselect_all_visible_multi | ( | bContext * | C | ) |
Definition at line 944 of file armature_select.cc.
References BKE_view_layer_array_from_bases_in_edit_mode_unique_data(), CTX_data_ensure_evaluated_depsgraph(), depsgraph, ED_armature_edit_deselect_all_multi_ex(), ED_view3d_viewcontext_init(), ViewContext::scene, ViewContext::v3d, and ViewContext::view_layer.
Definition at line 934 of file armature_select.cc.
References ED_armature_edit_deselect_all_visible().
Referenced by do_armature_box_select().
Perform a selection operation on elements which have been 'touched', use for lasso & border select but can be used elsewhere too.
Tagging is done via #EditBone.temp.i using: BONESEL_ROOT, BONESEL_TIP, BONESEL_BONE And optionally ignoring end-points using the BONESEL_ROOT, BONESEL_TIP right shifted 16 bits. (used when the values are clipped outside the view).
| sel_op | eSelectOp type. |
Definition at line 1224 of file armature_select.cc.
References armature_edit_select_op_apply(), BONE_CONNECTED, BONE_DONE, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, BONESEL_BONE, BONESEL_ROOT, BONESEL_TIP, ED_armature_edit_sync_selection(), bArmature::edbo, ELEM, and LISTBASE_FOREACH.
Referenced by do_armature_box_select(), and do_lasso_select_armature().
| bool ED_armature_edit_select_pick | ( | bContext * | C, |
| const int | mval[2], | ||
| const SelectPick_Params * | params ) |
Bone selection picking for armature edit-mode in the view3d.
Definition at line 1131 of file armature_select.cc.
References CTX_data_ensure_evaluated_depsgraph(), depsgraph, ED_armature_edit_select_pick_bone(), ED_view3d_viewcontext_init(), get_nearest_editbonepoint(), ViewContext::mval, and params.
Referenced by view3d_select_exec().
| bool ED_armature_edit_select_pick_bone | ( | bContext * | C, |
| Base * | basact, | ||
| EditBone * | ebone, | ||
| int | selmask, | ||
| const SelectPick_Params * | params ) |
Definition at line 959 of file armature_select.cc.
References bArmature::act_edbone, blender::ed::object::base_activate(), BKE_object_is_in_editmode(), BKE_view_layer_active_base_get(), BKE_view_layer_array_from_bases_in_edit_mode_unique_data(), BKE_view_layer_synced_ensure(), BLI_assert, BLI_assert_unreachable, BONE_CONNECTED, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), Object::data, DEG_id_tag_update(), EBONE_SELECTABLE, ED_armature_ebone_selectflag_get(), ED_armature_edit_deselect_all_multi_ex(), ED_armature_edit_sync_selection(), ED_outliner_select_sync_from_edit_bone_tag(), bArmature::edbo, EditBone::flag, bArmature::id, ID_RECALC_SYNC_TO_EVAL, NC_OBJECT, ND_BONE_SELECT, Base::object, params, EditBone::parent, SEL_OP_ADD, SEL_OP_AND, SEL_OP_SET, SEL_OP_SUB, SEL_OP_XOR, and WM_event_add_notifier().
Referenced by bone_select_menu_exec(), and ED_armature_edit_select_pick().
| Object * ED_armature_object_and_ebone_from_select_buffer | ( | const Span< Object * > | objects, |
| const uint | select_id, | ||
| EditBone ** | r_ebone ) |
Definition at line 86 of file armature_select.cc.
References BLI_findlink(), Object::data, and bArmature::edbo.
Definition at line 368 of file armature_select.cc.
References bPoseChannel::bone, ED_armature_pick_pchan(), and xy.
Referenced by pose_select_connected_invoke().
| Bone * ED_armature_pick_bone_from_selectbuffer | ( | const Span< Base * > | bases, |
| const GPUSelectResult * | hit_results, | ||
| const int | hits, | ||
| bool | findunsel, | ||
| bool | do_nearest, | ||
| Base ** | r_base ) |
Definition at line 287 of file armature_select.cc.
References bPoseChannel::bone, and ED_armature_pick_pchan_from_selectbuffer().
|
static |
Definition at line 157 of file armature_select.cc.
References bPoseChannel::bone, BONE_SELECTED, BONE_UNSELECTABLE, BONESEL_ANY, data, ED_armature_base_and_ebone_from_select_buffer(), ED_armature_base_and_pchan_from_select_buffer(), Bone::flag, and EditBone::flag.
Referenced by ed_armature_pick_bone_impl(), ED_armature_pick_ebone_from_selectbuffer(), and ED_armature_pick_pchan_from_selectbuffer().
|
static |
| xy | Cursor coordinates (area space). |
Definition at line 315 of file armature_select.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), BKE_object_pose_base_array_get(), BKE_view_layer_array_from_bases_in_edit_mode(), BLI_assert, BLI_rcti_init_pt_radius(), CTX_data_ensure_evaluated_depsgraph(), depsgraph, ed_armature_pick_bone_from_selectbuffer_impl(), ED_view3d_viewcontext_init(), ViewContext::obedit, ViewContext::scene, GPUSelectBuffer::storage, ViewContext::v3d, view3d_opengl_select_with_id_filter(), VIEW3D_SELECT_FILTER_NOP, VIEW3D_SELECT_PICK_NEAREST, ViewContext::view_layer, and xy.
Referenced by ED_armature_pick_ebone(), and ED_armature_pick_pchan().
Definition at line 354 of file armature_select.cc.
References ed_armature_pick_bone_impl(), and xy.
Referenced by armature_select_linked_pick_invoke(), armature_shortest_path_pick_invoke(), and blender::ui::sample_data_from_3d_view().
| EditBone * ED_armature_pick_ebone_from_selectbuffer | ( | const Span< Base * > | bases, |
| const GPUSelectResult * | hit_results, | ||
| const int | hits, | ||
| bool | findunsel, | ||
| bool | do_nearest, | ||
| Base ** | r_base ) |
Definition at line 263 of file armature_select.cc.
References ed_armature_pick_bone_from_selectbuffer_impl().
| bPoseChannel * ED_armature_pick_pchan | ( | bContext * | C, |
| const int | xy[2], | ||
| bool | findunsel, | ||
| Base ** | r_base ) |
Definition at line 361 of file armature_select.cc.
References ed_armature_pick_bone_impl(), and xy.
Referenced by ED_armature_pick_bone(), and blender::ui::sample_data_from_3d_view().
| bPoseChannel * ED_armature_pick_pchan_from_selectbuffer | ( | const Span< Base * > | bases, |
| const GPUSelectResult * | hit_results, | ||
| const int | hits, | ||
| bool | findunsel, | ||
| bool | do_nearest, | ||
| Base ** | r_base ) |
Definition at line 275 of file armature_select.cc.
References ed_armature_pick_bone_from_selectbuffer_impl().
Referenced by ED_armature_pick_bone_from_selectbuffer().
|
static |
Definition at line 640 of file armature_select.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), BKE_view_layer_array_from_bases_in_edit_mode_unique_data(), BLI_assert, BLI_findindex(), BLI_rcti_init_pt_radius(), EditBone::bone, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, BONE_UNSELECTABLE, BONESEL_BONE, BONESEL_ROOT, BONESEL_TIP, Object::data, EditBone::ebone, ED_armature_base_and_ebone_from_select_buffer(), bArmature::edbo, EditBone::flag, ViewContext::mval, ViewContext::obedit, Object::runtime, ViewContext::scene, selectbuffer_ret_hits_12(), selectbuffer_ret_hits_5(), GPUSelectBuffer::storage, ViewContext::v3d, view3d_opengl_select_cache_begin(), view3d_opengl_select_cache_end(), view3d_opengl_select_with_id_filter(), VIEW3D_SELECT_FILTER_NOP, VIEW3D_SELECT_PICK_ALL, ViewContext::view_layer, WM_cursor_test_motion_and_update(), and XRAY_ACTIVE.
Referenced by ED_armature_edit_select_pick().
Definition at line 1879 of file armature_select.cc.
References EditBone::ebone, ELEM, is_ancestor(), and EditBone::temp.
Referenced by is_ancestor(), and select_similar_children().
|
static |
Definition at line 1692 of file armature_select.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), EditBone::bone_collections, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), CTX_data_active_bone(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), EBONE_SELECTABLE, ED_armature_ebone_select_set(), bArmature::edbo, ID_RECALC_SYNC_TO_EVAL, LISTBASE_FOREACH, NC_OBJECT, ND_BONE_SELECT, and WM_event_add_notifier().
Referenced by armature_select_similar_exec().
|
static |
Definition at line 1732 of file armature_select.cc.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), EditBone::color, CTX_data_active_bone(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), EBONE_SELECTABLE, ED_armature_ebone_select_set(), bArmature::edbo, ID_RECALC_SYNC_TO_EVAL, LISTBASE_FOREACH, NC_OBJECT, ND_BONE_SELECT, and WM_event_add_notifier().
Referenced by armature_select_similar_exec().
|
static |
Definition at line 1892 of file armature_select.cc.
References CTX_data_active_bone(), CTX_data_edit_object(), Object::data, DEG_id_tag_update(), EBONE_SELECTABLE, ED_armature_ebone_select_set(), bArmature::edbo, Object::id, ID_RECALC_SYNC_TO_EVAL, is_ancestor(), LISTBASE_FOREACH, NC_OBJECT, ND_BONE_SELECT, and WM_event_add_notifier().
Referenced by armature_select_similar_exec().
|
static |
Definition at line 1914 of file armature_select.cc.
References CTX_data_active_bone(), CTX_data_edit_object(), Object::data, DEG_id_tag_update(), EBONE_SELECTABLE, ED_armature_ebone_select_set(), bArmature::edbo, Object::id, ID_RECALC_SYNC_TO_EVAL, LISTBASE_FOREACH, NC_OBJECT, ND_BONE_SELECT, and WM_event_add_notifier().
Referenced by armature_select_similar_exec().
|
static |
Use for matching any pose channel data.
Definition at line 1848 of file armature_select.cc.
References BKE_pose_channel_find_name(), CTX_data_active_bone(), CTX_data_edit_object(), Object::data, DEG_id_tag_update(), EBONE_SELECTABLE, ED_armature_ebone_select_set(), bArmature::edbo, Object::id, ID_RECALC_SYNC_TO_EVAL, LISTBASE_FOREACH, EditBone::name, NC_OBJECT, ND_BONE_SELECT, POINTER_OFFSET, Object::pose, and WM_event_add_notifier().
Referenced by armature_select_similar_exec().
Definition at line 1656 of file armature_select.cc.
References angle_v3v3(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), bone_direction_worldspace_get(), CTX_data_active_bone(), CTX_data_edit_object(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), EBONE_SELECTABLE, ED_armature_ebone_select_set(), bArmature::edbo, ID_RECALC_SYNC_TO_EVAL, LISTBASE_FOREACH, M_PI, NC_OBJECT, ND_BONE_SELECT, and WM_event_add_notifier().
Referenced by armature_select_similar_exec().
Definition at line 1608 of file armature_select.cc.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), bone_length_squared_worldspace_get(), CTX_data_active_bone(), CTX_data_edit_object(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), EBONE_SELECTABLE, ED_armature_ebone_select_set(), bArmature::edbo, ID_RECALC_SYNC_TO_EVAL, len, LISTBASE_FOREACH, NC_OBJECT, ND_BONE_SELECT, and WM_event_add_notifier().
Referenced by armature_select_similar_exec().
|
static |
Definition at line 1767 of file armature_select.cc.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), BLI_string_split_prefix(), CTX_data_active_bone(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), EBONE_SELECTABLE, ED_armature_ebone_select_set(), bArmature::edbo, ID_RECALC_SYNC_TO_EVAL, LISTBASE_FOREACH, MAXBONENAME, EditBone::name, NC_OBJECT, ND_BONE_SELECT, STREQ, and WM_event_add_notifier().
Referenced by armature_select_similar_exec().
|
static |
Definition at line 1930 of file armature_select.cc.
References CTX_data_active_bone(), CTX_data_edit_object(), Object::data, DEG_id_tag_update(), EBONE_SELECTABLE, ED_armature_ebone_select_set(), bArmature::edbo, Object::id, ID_RECALC_SYNC_TO_EVAL, LISTBASE_FOREACH, NC_OBJECT, ND_BONE_SELECT, EditBone::parent, and WM_event_add_notifier().
Referenced by armature_select_similar_exec().
|
static |
Definition at line 1807 of file armature_select.cc.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), BLI_string_split_suffix(), CTX_data_active_bone(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), EBONE_SELECTABLE, ED_armature_ebone_select_set(), bArmature::edbo, ID_RECALC_SYNC_TO_EVAL, LISTBASE_FOREACH, MAXBONENAME, EditBone::name, NC_OBJECT, ND_BONE_SELECT, STREQ, and WM_event_add_notifier().
Referenced by armature_select_similar_exec().
|
static |
Definition at line 622 of file armature_select.cc.
Referenced by get_nearest_editbonepoint().
|
static |
Definition at line 628 of file armature_select.cc.
References blender::MutableSpan< T >::copy_from(), and blender::MutableSpan< T >::slice().
Referenced by get_nearest_editbonepoint().
|
static |
Definition at line 1586 of file armature_select.cc.
Referenced by ARMATURE_OT_select_similar().