|
Blender V5.0
|
#include "DNA_armature_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "BLI_listbase.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_armature.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) |
| #define | EBONE_PREV_FLAG_SET(ebone, val) |
| #define | CHECK_PARENT(ebone) |
| #define | STRUCT_SIZE_AND_OFFSET(_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 | ) |
Definition at line 55 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 ) |
Definition at line 56 of file armature_select.cc.
Referenced by armature_select_mirror_exec(), and armature_select_more_less().
| #define STRUCT_SIZE_AND_OFFSET | ( | _struct, | |
| _member ) |
Referenced by armature_select_similar_exec().
| anonymous enum |
Definition at line 1578 of file armature_select.cc.
|
static |
Definition at line 1331 of file armature_select.cc.
References BONE_CONNECTED, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, BONE_UNSELECTABLE, C, 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 1541 of file armature_select.cc.
References armature_select_more_less(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), C, 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 1504 of file armature_select.cc.
References armature_select_more_less(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), C, 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 1160 of file armature_select.cc.
References BLI_assert, BONE_DONE, blender::animrig::bone_is_visible(), BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, BONESEL_BONE, BONESEL_ROOT, BONESEL_TIP, EBONE_SELECTABLE, 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 1391 of file armature_select.cc.
References armature_de_select_all_exec(), ED_operator_editarmature(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and WM_operator_properties_select_all().
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_select_hierarchy | ( | wmOperatorType * | ot | ) |
Definition at line 2115 of file armature_select.cc.
References armature_select_hierarchy_exec(), BONE_SELECT_CHILD, BONE_SELECT_PARENT, ED_operator_editarmature(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), and RNA_def_enum().
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_select_less | ( | wmOperatorType * | ot | ) |
Definition at line 1557 of file armature_select.cc.
References armature_de_select_less_exec(), ED_operator_editarmature(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_select_linked | ( | wmOperatorType * | ot | ) |
Definition at line 532 of file armature_select.cc.
References armature_select_linked_exec(), ED_operator_editarmature(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_select_linked_pick | ( | wmOperatorType * | ot | ) |
Definition at line 596 of file armature_select.cc.
References armature_select_linked_pick_invoke(), armature_select_linked_pick_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_select_mirror | ( | wmOperatorType * | ot | ) |
Definition at line 2208 of file armature_select.cc.
References armature_select_mirror_exec(), ED_operator_editarmature(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_select_more | ( | wmOperatorType * | ot | ) |
Definition at line 1520 of file armature_select.cc.
References armature_de_select_more_exec(), ED_operator_editarmature(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_select_similar | ( | wmOperatorType * | ot | ) |
Definition at line 2010 of file armature_select.cc.
References armature_select_similar_exec(), ED_operator_editarmature(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, prop_similar_types, RNA_def_enum(), RNA_def_float(), SIMEDBONE_LENGTH, and WM_menu_invoke().
Referenced by ED_operatortypes_armature().
| void ARMATURE_OT_shortest_path_pick | ( | wmOperatorType * | ot | ) |
Definition at line 2346 of file armature_select.cc.
References armature_shortest_path_pick_invoke(), ED_operator_editarmature(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_armature().
|
static |
Definition at line 2038 of file armature_select.cc.
References bArmature::act_edbone, BONE_CONNECTED, BONE_SELECT_PARENT, C, 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 1440 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 494 of file armature_select.cc.
References armature_select_linked_impl(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), BONE_DONE, blender::animrig::bone_is_visible(), BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), ED_outliner_select_sync_from_edit_bone_tag(), bArmature::edbo, 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 388 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 556 of file armature_select.cc.
References armature_select_linked_impl(), BKE_object_update_select_id(), BONE_DONE, C, 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_gpu().
Referenced by ARMATURE_OT_select_linked_pick().
|
static |
Definition at line 591 of file armature_select.cc.
References C, ED_operator_editarmature(), and ED_operator_view3d_active().
Referenced by ARMATURE_OT_select_linked_pick().
|
static |
Definition at line 2149 of file armature_select.cc.
References bArmature::act_edbone, BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), blender::animrig::bone_is_visible(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), EBONE_PREV_FLAG_GET, EBONE_PREV_FLAG_SET, EBONE_SELECTABLE, 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 1414 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 1460 of file armature_select.cc.
References armature_select_less(), armature_select_more(), blender::animrig::bone_is_visible(), BONE_SELECTED, Object::data, EBONE_PREV_FLAG_SET, 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 1955 of file armature_select.cc.
References BKE_report(), C, 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 2262 of file armature_select.cc.
References bArmature::act_edbone, armature_shortest_path_select(), BKE_object_update_select_id(), BKE_report(), C, 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_gpu(), and WM_event_add_notifier().
Referenced by ARMATURE_OT_shortest_path_pick().
|
static |
Definition at line 2234 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 1648 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 1605 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 133 of file armature_select.cc.
References bPoseChannel::bone, and ED_armature_base_and_pchan_from_select_buffer().
| Base * ED_armature_base_and_ebone_from_select_buffer | ( | const Span< Base * > | bases, |
| const uint | select_id, | ||
| EditBone ** | r_ebone ) |
Definition at line 62 of file armature_select.cc.
References BLI_findlink(), BONESEL_ANY, 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 108 of file armature_select.cc.
References BLI_findlink(), BONESEL_ANY, bPose::chanbase, Base::object, and Object::pose.
Referenced by do_pose_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 896 of file armature_select.cc.
References BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, Object::data, bArmature::edbo, 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 929 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 909 of file armature_select.cc.
References blender::animrig::bone_is_visible(), BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, Object::data, ED_armature_edit_sync_selection(), bArmature::edbo, 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 949 of file armature_select.cc.
References BKE_view_layer_array_from_bases_in_edit_mode_unique_data(), C, 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 939 of file armature_select.cc.
References ED_armature_edit_deselect_all_visible().
Referenced by do_armature_box_select().
| bool ED_armature_edit_select_op_from_tagged | ( | bArmature * | arm, |
| int | sel_op ) |
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 1229 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 1136 of file armature_select.cc.
References C, 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 964 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, C, 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 85 of file armature_select.cc.
References BLI_findlink(), BONESEL_ANY, Object::data, and bArmature::edbo.
Definition at line 367 of file armature_select.cc.
References bPoseChannel::bone, C, ED_armature_pick_pchan(), and xy.
| 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 286 of file armature_select.cc.
References bPoseChannel::bone, and ED_armature_pick_pchan_from_selectbuffer().
|
static |
Definition at line 156 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, bPoseChannel::flag, EditBone::flag, and POSE_SELECTED.
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 314 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(), C, 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_gpu_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 353 of file armature_select.cc.
References C, 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 262 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 360 of file armature_select.cc.
References C, ed_armature_pick_bone_impl(), and xy.
Referenced by ED_armature_pick_bone(), pose_select_connected_invoke(), 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 274 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 641 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(), BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, BONE_UNSELECTABLE, BONESEL_ANY, BONESEL_BONE, BONESEL_ROOT, BONESEL_TIP, Object::data, GPUSelectResult::depth, ED_armature_base_and_ebone_from_select_buffer(), bArmature::edbo, EditBone::flag, i, GPUSelectResult::id, ViewContext::mval, ViewContext::obedit, result, Object::runtime, ViewContext::scene, selectbuffer_ret_hits_12(), selectbuffer_ret_hits_5(), GPUSelectBuffer::storage, ViewContext::v3d, view3d_gpu_select_cache_begin(), view3d_gpu_select_cache_end(), view3d_gpu_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 1884 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 1697 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, C, 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 1737 of file armature_select.cc.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), C, 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 1897 of file armature_select.cc.
References C, 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 1919 of file armature_select.cc.
References C, 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 1853 of file armature_select.cc.
References BKE_pose_channel_find_name(), C, 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 1661 of file armature_select.cc.
References angle_v3v3(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), bone_direction_worldspace_get(), C, 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 1613 of file armature_select.cc.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), bone_length_squared_worldspace_get(), C, 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 1772 of file armature_select.cc.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), BLI_string_split_prefix(), C, 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 1935 of file armature_select.cc.
References C, 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 1812 of file armature_select.cc.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), BLI_string_split_suffix(), C, 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 623 of file armature_select.cc.
Referenced by get_nearest_editbonepoint().
|
static |
Definition at line 629 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 1591 of file armature_select.cc.
Referenced by ARMATURE_OT_select_similar(), MBALL_OT_select_similar(), MESH_OT_select_similar(), and select_similar_type_itemf().