54#define EBONE_PREV_FLAG_GET(ebone) ((void)0, (ebone)->temp.i)
55#define EBONE_PREV_FLAG_SET(ebone, val) ((ebone)->temp.i = val)
64 if ((hit_result.
id & 0xFFFF0000) == 0) {
80 const uint hit_object = select_id & 0xFFFF;
84 for (
Base *base_iter : bases) {
85 if (base_iter->object->runtime->select_id == hit_object) {
90 if (base !=
nullptr) {
100 const uint select_id,
103 const uint hit_object = select_id & 0xFFFF;
107 for (
Object *object_iter : objects) {
108 if (object_iter->runtime->select_id == hit_object) {
123 const uint select_id,
126 const uint hit_object = select_id & 0xFFFF;
127 Base *base =
nullptr;
130 for (
Base *base_iter : bases) {
131 if (base_iter->object->runtime->select_id == hit_object) {
136 if (base !=
nullptr) {
148 const uint select_id,
153 *r_bone = pchan ? pchan->bone_get(*base->
object) :
nullptr;
179 void *firstunSel =
nullptr, *firstSel =
nullptr, *
data;
180 Base *firstunSel_base =
nullptr, *firstSel_base =
nullptr;
181 bool takeNext =
false;
182 int minsel = 0xffffffff, minunsel = 0xffffffff;
185 qsort(hit_results_sorted.
data(),
186 hit_results_sorted.
size(),
195 uint hit_id = hit_result.id;
197 Base *base =
nullptr;
202 if (is_editmode ==
false) {
204 if (pchan !=
nullptr) {
240 if (minsel > hit_result.depth) {
242 firstSel_base = base;
243 minsel = hit_result.depth;
249 firstSel_base = base;
256 if (minunsel > hit_result.depth) {
258 firstunSel_base = base;
259 minunsel = hit_result.depth;
265 firstunSel_base = base;
277 *r_base = firstunSel_base;
280 *r_base = firstSel_base;
291 const bool is_editmode =
true;
293 is_editmode, bases, {hit_results, hits}, findunsel, do_nearest, r_base));
303 const bool is_editmode =
false;
305 is_editmode, bases, {hit_results, hits}, findunsel, do_nearest, r_base));
316 bases, hit_results, hits, findunsel, do_nearest, r_base);
317 return pchan ? pchan->bone_get(*(*r_base)->object) :
nullptr;
337 const bool is_editmode,
bContext *
C,
const int xy[2],
bool findunsel,
Base **r_base)
350 const int select_id_ignore = -1;
360 if (vc.
obedit !=
nullptr) {
369 is_editmode, bases, buffer.
storage.
as_span().take_front(hits), findunsel,
true, r_base);
378 const bool is_editmode =
true;
385 const bool is_editmode =
false;
393 return pchan ? pchan->bone_get(*(*r_base)->object) :
nullptr;
413 bool changed =
false;
427#define CHECK_PARENT(ebone) \
429 (((ebone)->flag & BONE_CONNECTED) && \
430 ((ebone)->parent ? EBONE_SELECTABLE(arm, (ebone)->parent) : false))
438 if (ebone_iter.
temp.i & TOUCH) {
445 ebone_iter.
temp.i |= TOUCH | LINK;
448 for (
EditBone *ebone = &ebone_iter; ebone;
455 ebone->
temp.i |= (TOUCH | LINK);
458 ebone->
temp.i |= TOUCH;
473 if (ebone_iter.
temp.i & TOUCH) {
478 EditBone *ebone_touched_parent =
nullptr;
479 for (
EditBone *ebone = &ebone_iter; ebone;
482 if (ebone->
temp.i & TOUCH) {
483 ebone_touched_parent = ebone;
486 ebone->
temp.i |= TOUCH;
489 if ((ebone_touched_parent !=
nullptr) && (ebone_touched_parent->
temp.i & LINK)) {
490 for (
EditBone *ebone = &ebone_iter; ebone != ebone_touched_parent; ebone = ebone->
parent) {
491 if ((ebone->
temp.i & LINK) == 0) {
492 ebone->
temp.i |= LINK;
521 bool changed_multi =
false;
527 for (
Object *ob : objects) {
528 bArmature *arm = id_cast<bArmature *>(ob->data);
545 changed_multi =
true;
559 ot->
name =
"Select Linked All";
560 ot->
idname =
"ARMATURE_OT_select_linked";
561 ot->
description =
"Select all bones linked by parent/child connections to the current selection";
571 RNA_def_boolean(ot->
srna,
"all_forks",
false,
"All Forks",
"Follow forks in the parents chain");
590 Base *base =
nullptr;
593 if (ebone_active ==
nullptr) {
623 ot->
name =
"Select Linked";
624 ot->
idname =
"ARMATURE_OT_select_linked_pick";
625 ot->
description =
"(De)select bones linked by parent/child connections under the mouse cursor";
637 RNA_def_boolean(ot->
srna,
"all_forks",
false,
"All Forks",
"Follow forks in the parents chain");
656 const int ofs = hits12;
674 Result result_cycle{};
675 result_cycle.select_id = -1;
676 result_cycle.base =
nullptr;
677 result_cycle.ebone =
nullptr;
678 Result result_bias{};
679 result_bias.select_id = -1;
680 result_bias.base =
nullptr;
681 result_bias.ebone =
nullptr;
686 EditBone *ebone_active_orig = id_cast<bArmature *>(obedit_orig->
data)->act_edbone;
687 if (ebone_active_orig &&
690 ebone_active_orig =
nullptr;
693 if (ebone_active_orig ==
nullptr) {
706 const int select_id_ignore = -1;
726 else if (hits12 > 0) {
758 bases, hit_result.
id, &result_bias.ebone);
760 BLI_assert(result_bias.base && result_bias.ebone);
761 if (result_bias.base !=
nullptr && result_bias.ebone !=
nullptr) {
762 result_bias.select_id = hit_result.
id;
767 int bias_max = INT_MIN;
783 } offset, test, best;
791 cycle_order.offset.ob = ob_index;
792 cycle_order.offset.bone = bone_index;
794 cycle_order.best.as_u32 = 0;
798 for (
int i = 0; i < hits; i++) {
804 const uint select_id = hit_result.
id;
805 Base *base =
nullptr;
851 if (bias > bias_max) {
854 min_depth = hit_result.
depth;
855 result_bias.select_id = select_id;
856 result_bias.base = base;
857 result_bias.ebone = ebone;
859 else if (bias == bias_max && do_nearest) {
860 if (min_depth > hit_result.
depth) {
861 min_depth = hit_result.
depth;
862 result_bias.select_id = select_id;
863 result_bias.base = base;
864 result_bias.ebone = ebone;
871 cycle_order.test.ob = select_id & 0xFFFF;
872 cycle_order.test.bone = (select_id &
~BONESEL_ANY) >> 16;
873 if (ebone == ebone_active_orig) {
874 BLI_assert(cycle_order.test.ob == cycle_order.offset.ob);
875 BLI_assert(cycle_order.test.bone == cycle_order.offset.bone);
881 cycle_order.test.as_u32 -= cycle_order.offset.as_u32;
887 if ((cycle_order.best.as_u32 == 0) ||
888 (cycle_order.test.as_u32 && (cycle_order.test.as_u32 < cycle_order.best.as_u32)))
890 cycle_order.best = cycle_order.test;
891 result_cycle.select_id = select_id;
892 result_cycle.base = base;
893 result_cycle.ebone = ebone;
899 result = (use_cycle && result_cycle.ebone) ? &result_cycle : &result_bias;
901 if (
result->select_id != -1) {
931 bool changed =
false;
944 bool changed =
false;
963 bool changed_multi =
false;
964 for (
Base *base : bases) {
965 Object *obedit = base->object;
968 return changed_multi;
973 bool changed_multi =
false;
974 for (
Base *base : bases) {
975 Object *obedit = base->object;
978 return changed_multi;
1006 bool changed =
false;
1025 *bmain, scene, view_layer, v3d);
1121 ebone->
flag |= selmask;
1125 ebone->
flag &= ~selmask;
1129 if (ebone->
flag & selmask) {
1130 ebone->
flag &= ~selmask;
1133 ebone->
flag |= selmask;
1138 ebone->
flag |= selmask;
1169 return changed || found;
1178 Base *basact =
nullptr;
1181 vc.
mval[0] = mval[0];
1182 vc.
mval[1] = mval[1];
1205 bool changed =
false;
1206 bool is_point_done =
false;
1207 int points_proj_tot = 0;
1216 if (sel_op_result != -1) {
1221 is_point_done |= is_inside;
1227 const bool is_inside = is_inside_flag &
BONESEL_TIP;
1229 if (sel_op_result != -1) {
1234 is_point_done |= is_inside;
1238 if ((is_point_done ==
false) && (points_proj_tot == 2)) {
1243 if (sel_op_result != -1) {
1253 changed |= is_point_done;
1255 if (ebone_flag_prev != ebone->
flag) {
1257 ebone->
flag = ebone_flag_prev;
1267 bool changed =
false;
1294 if (ebone.
temp.i != 0) {
1309 arm, &ebone,
eSelectOp(sel_op), is_ignore_flag, is_inside_flag);
1318 const int tmp_i = ebone.
temp.i;
1348 if (is_parent_tip_changed ==
false) {
1434 ot->
name =
"(De)select All";
1435 ot->
idname =
"ARMATURE_OT_select_all";
1436 ot->
description =
"Toggle selection status of all bones";
1526 if (more ==
false) {
1532 ebone.
temp.p =
nullptr;
1551 for (
Object *ob : objects) {
1564 ot->
name =
"Select More";
1565 ot->
idname =
"ARMATURE_OT_select_more";
1566 ot->
description =
"Select those bones connected to the initial selection";
1589 for (
Object *ob : objects) {
1602 ot->
name =
"Select Less";
1603 ot->
idname =
"ARMATURE_OT_select_less";
1604 ot->
description =
"Deselect those bones at the boundary of each selection region";
1644 {0,
nullptr, 0,
nullptr,
nullptr},
1670 for (
Object *ob : objects) {
1671 bArmature *arm = id_cast<bArmature *>(ob->data);
1672 bool changed =
false;
1677 if ((len_iter > len_min) && (len_iter < len_max)) {
1697 mul_m4_v3(ob->object_to_world().ptr(), v1);
1717 for (
Object *ob : objects) {
1718 bArmature *arm = id_cast<bArmature *>(ob->data);
1719 bool changed =
false;
1756 for (
Object *ob : objects) {
1757 bArmature *arm = id_cast<bArmature *>(ob->data);
1758 bool changed =
false;
1793 for (
Object *ob : objects) {
1794 bArmature *arm = id_cast<bArmature *>(ob->data);
1795 bool changed =
false;
1803 if (bone_color != active_bone_color) {
1830 if (prefix_act[0] ==
'\0') {
1836 for (
Object *ob : objects) {
1837 bArmature *arm = id_cast<bArmature *>(ob->data);
1838 bool changed =
false;
1845 if (
STREQ(prefix_act, prefix_other)) {
1871 if (suffix_act[0] ==
'\0') {
1877 for (
Object *ob : objects) {
1878 bArmature *arm = id_cast<bArmature *>(ob->data);
1879 bool changed =
false;
1886 if (
STREQ(suffix_act, suffix_other)) {
1911 if (pchan_active ==
nullptr) {
1915 const char *data_active =
reinterpret_cast<const char *
> POINTER_OFFSET(pchan_active, offset);
1920 const char *data_test =
reinterpret_cast<const char *
> POINTER_OFFSET(pchan, offset);
1921 if (memcmp(data_active, data_test, bytes_size) == 0) {
1934 if (
ELEM(bone->
temp.ebone, ancestor,
nullptr)) {
1938 if (!
ELEM(bone->
temp.ebone->
temp.ebone,
nullptr, ancestor)) {
1989 if (ebone_act->
parent ==
nullptr) {
2015#define STRUCT_SIZE_AND_OFFSET(_struct, _member) \
2016 sizeof(_struct::_member), offsetof(_struct, _member)
2051#undef STRUCT_SIZE_AND_OFFSET
2061 ot->
name =
"Select Similar";
2062 ot->
idname =
"ARMATURE_OT_select_similar";
2068 ot->
description =
"Select similar bones by property types";
2075 RNA_def_float(ot->
srna,
"threshold", 0.1f, 0.0f, 1.0f,
"Threshold",
"", 0.0f, 1.0f);
2092 bool changed =
false;
2096 if (ebone_active ==
nullptr) {
2101 if (ebone_active->
parent) {
2104 ebone_parent = ebone_active->
parent;
2123 for (pass = 0; pass < 2 && (ebone_child ==
nullptr); pass++) {
2127 if (ebone_iter.
parent == ebone_active) {
2129 ebone_child = &ebone_iter;
2149 if (changed ==
false) {
2168 {0,
nullptr, 0,
nullptr,
nullptr},
2172 ot->
name =
"Select Hierarchy";
2173 ot->
idname =
"ARMATURE_OT_select_hierarchy";
2174 ot->
description =
"Select immediate parent/children of selected bones";
2207 for (
Object *ob : objects) {
2208 bArmature *arm = id_cast<bArmature *>(ob->data);
2210 EditBone *ebone_mirror_act =
nullptr;
2226 flag_new |= flag_mirror;
2229 ebone_mirror_act = ebone_mirror;
2233 if (active_only && !
ELEM(arm->
act_edbone, &ebone, ebone_mirror)) {
2242 if (ebone_mirror_act) {
2260 ot->
name =
"Select Mirror";
2261 ot->
idname =
"ARMATURE_OT_select_mirror";
2273 ot->
srna,
"only_active",
false,
"Active Only",
"Only operate on the active bone");
2288 if (!use_parent && (ebone_child == ebone_parent)) {
2301 if (ebone_child == ebone_parent) {
2305 ebone_child = ebone_child->
parent;
2318 EditBone *ebone_isect_parent =
nullptr;
2321 Base *base_dst =
nullptr;
2330 if (
ELEM(
nullptr, ebone_src, ebone_dst) || (ebone_src == ebone_dst)) {
2334 if (base_dst && base_dst->
object != obedit) {
2339 ebone_isect_child[0] = ebone_src;
2340 ebone_isect_child[1] = ebone_dst;
2347 std::swap(ebone_src, ebone_dst);
2357 if (ebone_isect_parent) {
2398 ot->
name =
"Pick Shortest Path";
2399 ot->
idname =
"ARMATURE_OT_shortest_path_pick";
2400 ot->
description =
"Select shortest path between two bones";
Functions to deal with Armatures.
C++ functions to deal with Armature collections (i.e. the successor of bone layers).
C++ part of the BoneColor DNA struct.
Blender kernel action and pose functionality.
#define CTX_DATA_BEGIN(C, Type, instance, member)
General operations, lookup, etc. for blender objects.
Object is a sort of wrapper for general info.
#define BONE_SELECT_CHILD
#define BONE_SELECT_PARENT
#define EBONE_SELECTABLE(arm, ebone)
#define CHECK_PARENT(ebone)
#define EBONE_PREV_FLAG_GET(ebone)
#define EBONE_PREV_FLAG_SET(ebone, val)
#define STRUCT_SIZE_AND_OFFSET(_struct, _member)
#define BLI_assert_unreachable()
#define SET_FLAG_FROM_TEST(value, test, flag)
#define POINTER_OFFSET(v, ofs)
constexpr MutableSpan slice(const int64_t start, const int64_t size) const
bool contains(const Key &key) const
Span< T > as_span() const
constexpr void copy_from(Span< T > values) const
#define storage(slot, qualifiers)
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
bool bone_is_visible(const bArmature *armature, const Bone *bone)
void base_activate(bContext *C, Base *base)
void WM_main_add_notifier(uint type, void *reference)
void ARMATURE_OT_select_linked(wmOperatorType *ot)
Vector< Base * > BKE_object_pose_base_array_get(const Main &bmain, const Scene *scene, ViewLayer *view_layer, View3D *v3d)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
MINLINE float len_squared_v3v3(const float a[3], const float b[3]) ATTR_WARN_UNUSED_RESULT
static float bone_length_squared_worldspace_get(Object *ob, EditBone *ebone)
static int selectbuffer_ret_hits_12(MutableSpan< GPUSelectResult >, const int hits12)
wmOperatorStatus WM_menu_invoke(bContext *C, wmOperator *op, const wmEvent *)
static void select_similar_bone_collection(bContext *C)
Base * ED_armature_base_and_ebone_from_select_buffer(const Span< Base * > bases, const uint select_id, EditBone **r_ebone)
int RNA_enum_get(PointerRNA *ptr, const char *name)
static void bone_direction_worldspace_get(Object *ob, EditBone *ebone, float *r_dir)
void view3d_gpu_select_cache_end()
static void select_similar_suffix(bContext *C)
void ARMATURE_OT_select_similar(wmOperatorType *ot)
bool ED_armature_edit_select_pick(bContext *C, const int mval[2], const SelectPick_Params ¶ms)
static void * ed_armature_pick_bone_from_selectbuffer_impl(const bool is_editmode, const Span< Base * > bases, const Span< GPUSelectResult > hit_results, bool findunsel, bool do_nearest, Base **r_base)
void ARMATURE_OT_select_more(wmOperatorType *ot)
ViewContext ED_view3d_viewcontext_init(bContext *C, Depsgraph *depsgraph)
static wmOperatorStatus armature_select_hierarchy_exec(bContext *C, wmOperator *op)
MINLINE void copy_v3_v3(float r[3], const float a[3])
static int selectbuffer_ret_hits_5(MutableSpan< GPUSelectResult > hit_results, const int hits12, const int hits5)
static void select_similar_bone_color(bContext *C)
bool ED_armature_selectresult_is_bone(const GPUSelectResult &hit_result)
void ED_armature_ebone_selectflag_disable(EditBone *ebone, eBone_Flag flag)
void ED_armature_ebone_selectflag_enable(EditBone *ebone, eBone_Flag flag)
void BKE_object_update_select_id(Main *bmain)
bool ED_armature_ebone_is_child_recursive(EditBone *ebone_parent, EditBone *ebone_child)
void ARMATURE_OT_shortest_path_pick(wmOperatorType *ot)
Bone * ED_armature_pick_bone(bContext *C, const int xy[2], bool findunsel, Base **r_base)
bool ED_armature_edit_deselect_all_visible_multi_ex(const Span< Base * > bases)
float angle_v3v3(const float a[3], const float b[3]) ATTR_WARN_UNUSED_RESULT
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
void ARMATURE_OT_select_hierarchy(wmOperatorType *ot)
void mul_v3_mat3_m4v3(float r[3], const float mat[4][4], const float vec[3])
void view3d_operator_needs_gpu(const bContext *C)
static void * ed_armature_pick_bone_impl(const bool is_editmode, bContext *C, const int xy[2], bool findunsel, Base **r_base)
Base * BKE_view_layer_active_base_get(ViewLayer *view_layer)
bool ED_operator_editarmature(bContext *C)
int gpu_select_buffer_depth_id_cmp(const void *sel_a_p, const void *sel_b_p)
bPoseChannel * ED_armature_pick_pchan_from_selectbuffer(Span< Base * > bases, const GPUSelectResult *hit_results, int hits, bool findunsel, bool do_nearest, Base **r_base)
static wmOperatorStatus armature_shortest_path_pick_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static const EnumPropertyItem prop_similar_types[]
ViewLayer * CTX_data_view_layer(const bContext *C)
void WM_operator_properties_select_all(wmOperatorType *ot)
void view3d_gpu_select_cache_begin()
static void select_similar_data_pchan(bContext *C, const size_t bytes_size, const int offset)
@ VIEW3D_SELECT_FILTER_NOP
@ VIEW3D_SELECT_FILTER_OBJECT_MODE_LOCK_SAME_TYPE
bool ED_armature_edit_select_op_from_tagged(bArmature *arm, const int sel_op)
EditBone * CTX_data_active_bone(const bContext *C)
static wmOperatorStatus armature_de_select_more_exec(bContext *C, wmOperator *)
static void select_similar_children(bContext *C)
static bool armature_select_linked_pick_poll(bContext *C)
void mul_m4_v3(const float M[4][4], float r[3])
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
Base * ED_armature_base_and_pchan_from_select_buffer(const Span< Base * > bases, const uint select_id, bPoseChannel **r_pchan)
static void select_similar_siblings(bContext *C)
EditBone * ED_armature_ebone_find_shared_parent(EditBone *ebone_child[], const uint ebone_child_tot)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
EditBone * ED_armature_pick_ebone(bContext *C, const int xy[2], bool findunsel, Base **r_base)
static void select_similar_length(bContext *C, const float thresh)
EditBone * ED_armature_ebone_get_mirrored(const ListBaseT< EditBone > *edbo, EditBone *ebo)
bPoseChannel * ED_armature_pick_pchan(bContext *C, const int xy[2], bool findunsel, Base **r_base)
static wmOperatorStatus armature_select_mirror_exec(bContext *C, wmOperator *op)
bool ED_armature_edit_select_pick_bone(bContext *C, Base *basact, EditBone *ebone, const eBone_Flag selmask, const SelectPick_Params ¶ms)
int ED_select_op_action_deselected(eSelectOp sel_op, bool is_select, bool is_inside)
Vector< GPUSelectResult, 2500 > GPUSelectStorage
void ED_armature_ebone_selectflag_set(EditBone *ebone, eBone_Flag flag)
void DEG_id_tag_update(ID *id, unsigned int flags)
void BKE_report(ReportList *reports, eReportType type, const char *message)
BMesh const char void * data
void ED_armature_edit_sync_selection(ListBaseT< EditBone > *edbo)
Depsgraph * CTX_data_ensure_evaluated_depsgraph(const bContext *C, bool rna_write_check=false)
@ VIEW3D_SELECT_PICK_NEAREST
Object * CTX_data_edit_object(const bContext *C)
void ARMATURE_OT_select_less(wmOperatorType *ot)
void ARMATURE_OT_select_all(wmOperatorType *ot)
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
bool ED_operator_view3d_active(bContext *C)
static wmOperatorStatus armature_de_select_all_exec(bContext *C, wmOperator *op)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
void void BLI_string_split_prefix(const char *string, size_t string_maxlen, char *r_pre, char *r_body) ATTR_NONNULL(1
static wmOperatorStatus armature_select_similar_exec(bContext *C, wmOperator *op)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
static wmOperatorStatus armature_de_select_less_exec(bContext *C, wmOperator *)
int view3d_gpu_select_with_id_filter(const ViewContext *vc, GPUSelectBuffer *buffer, const rcti *input, eV3DSelectMode select_mode, eV3DSelectObjectFilter select_filter, uint select_id)
static void armature_select_more_less(Object *ob, bool more)
static wmOperatorStatus armature_select_linked_pick_invoke(bContext *C, wmOperator *op, const wmEvent *event)
bool BKE_object_is_in_editmode(const Object *ob)
static EditBone * get_nearest_editbonepoint(ViewContext *vc, bool findunsel, bool use_cycle, Base **r_base, eBone_Flag *r_selmask)
bool ED_armature_edit_deselect_all_visible(Object *obedit)
MINLINE float normalize_v3(float n[3])
void ARMATURE_OT_select_mirror(wmOperatorType *ot)
int ED_armature_ebone_selectflag_get(const EditBone *ebone)
void ARMATURE_OT_select_linked_pick(wmOperatorType *ot)
MINLINE void sub_v3_v3v3(float r[3], const float a[3], const float b[3])
Main * CTX_data_main(const bContext *C)
static bool armature_shortest_path_select(bArmature *arm, EditBone *ebone_parent, EditBone *ebone_child, bool use_parent, bool is_test)
EditBone * ED_armature_pick_ebone_from_selectbuffer(Span< Base * > bases, const GPUSelectResult *hit_results, int hits, bool findunsel, bool do_nearest, Base **r_base)
static bool armature_edit_select_op_apply(bArmature *arm, EditBone *ebone, const eSelectOp sel_op, int is_ignore_flag, int is_inside_flag)
ATTR_WARN_UNUSED_RESULT const BMVert * v2
Base * ED_armature_base_and_bone_from_select_buffer(const Span< Base * > bases, const uint select_id, Bone **r_bone)
static void is_ancestor(EditBone *bone, EditBone *ancestor)
static void select_similar_direction(bContext *C, const float thresh)
void BLI_string_split_suffix(const char *string, size_t string_maxlen, char *r_body, char *r_suf) ATTR_NONNULL(1
@ SIMEDBONE_CHILDREN_IMMEDIATE
Vector< Object * > BKE_view_layer_array_from_objects_in_edit_mode_unique_data(const Main &bmain, const Scene *scene, ViewLayer *view_layer, const View3D *v3d)
Bone * ED_armature_pick_bone_from_selectbuffer(Span< Base * > bases, const GPUSelectResult *hit_results, int hits, bool findunsel, bool do_nearest, Base **r_base)
void ED_outliner_select_sync_from_edit_bone_tag(bContext *C)
Vector< Base * > BKE_view_layer_array_from_bases_in_edit_mode_unique_data(const Main &bmain, const Scene *scene, ViewLayer *view_layer, const View3D *v3d)
Scene * CTX_data_scene(const bContext *C)
static wmOperatorStatus armature_select_linked_exec(bContext *C, wmOperator *op)
bool WM_cursor_test_motion_and_update(const int mval[2])
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
bool ED_armature_edit_deselect_all_multi_ex(const Span< Base * > bases)
Vector< Base * > BKE_view_layer_array_from_bases_in_edit_mode(const Main &bmain, const Scene *scene, ViewLayer *view_layer, const View3D *v3d)
void BLI_rcti_init_pt_radius(struct rcti *rect, const int xy[2], int size)
static void armature_select_more(bArmature *arm, EditBone *ebone)
static void armature_select_less(bArmature *, EditBone *ebone)
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
Object * ED_armature_object_and_ebone_from_select_buffer(const Span< Object * > objects, const uint select_id, EditBone **r_ebone)
void ED_armature_ebone_select_set(EditBone *ebone, bool select)
float RNA_float_get(PointerRNA *ptr, const char *name)
bPoseChannel * BKE_pose_channel_find_name(const bPose *pose, const char *name)
static void select_similar_prefix(bContext *C)
static bool armature_select_linked_impl(Object *ob, const bool select, const bool all_forks)
View3D * CTX_wm_view3d(const bContext *C)
static void select_similar_children_immediate(bContext *C)
bool ED_armature_edit_deselect_all(Object *obedit)
bool ED_armature_edit_deselect_all_visible_multi(bContext *C)
struct BoneCollection * bcoll
union blender::EditBone::@252003325204232231327014100071366025164067232113 temp
ListBaseT< BoneCollectionReference > bone_collections
bke::ObjectRuntime * runtime
ListBaseT< EditBone > * edbo
struct EditBone * act_edbone
ListBaseT< bPoseChannel > chanbase
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports