135 EditBone *ebone, *newbone, *flipbone;
136 float mat[3][3], imat[3][3];
154 if (ebone ==
nullptr) {
162 if (ebone ==
nullptr) {
177 for (a = 0; a < 2; a++) {
179 if (flipbone ==
nullptr) {
182 std::swap(flipbone, ebone);
205 newbone->
tail[0] = -newbone->
tail[0];
208 copy_m3_m4(mat, obedit->object_to_world().ptr());
235 float tvec[3], oldcurs[3], mval_f[2];
265 ot->
name =
"Extrude to Cursor";
266 ot->
idname =
"ARMATURE_OT_click_extrude";
267 ot->
description =
"Create a new bone going from the last selected joint to the mouse position";
296 if (
STREQ(name, eBone->name)) {
320 const char *name_src = pchan_src->
name;
321 const char *name_dst =
static_cast<const char *
>(
BLI_ghash_lookup(name_map, name_src));
326 if (pchan_dst ==
nullptr) {
327 pchan_dst = pchan_src;
335 if (ob->
pose ==
nullptr) {
388 bool lookup_mirror_subtarget)
402 ListBase targets = {
nullptr,
nullptr};
406 if ((ct->tar == ob) && (ct->subtarget[0])) {
417 else if (lookup_mirror_subtarget) {
457 float max_axis_val = 0;
460 for (
int i = 0; i < 3; i++) {
461 float cur_val =
fabsf(mat[0][i]);
462 if (cur_val > max_axis_val) {
464 max_axis_val = cur_val;
474 if (act_con->
type < 10 && act_con->
type != max_axis) {
476 act_con->
min = -act_con->
min;
477 act_con->
max = -act_con->
max;
479 else if (act_con->
type == max_axis + 10) {
482 else if (act_con->
type == max_axis + 20) {
488 float min_vec[3], max_vec[3];
493 min_vec[0] = act_con->
min;
494 max_vec[0] = act_con->
max;
507 act_con->
min = min_vec[0];
508 act_con->
max = max_vec[0];
519 auto bone_name_filter = [&](
const FCurve &fcurve) ->
bool {
521 fcurve,
"pose.bones[", orig_bone->
name);
525 for (
const FCurve *old_curve : fcurves) {
527 char *old_path = new_curve->
rna_path;
537 for (i = 0, bezt = new_curve->
bezt; i < new_curve->
totvert; i++, bezt++) {
538 const size_t slength = strlen(new_curve->
rna_path);
562 bezt->
vec[0][1] *= -1;
563 bezt->
vec[1][1] *= -1;
564 bezt->
vec[2][1] *= -1;
571 if (agrp ==
nullptr) {
579 BLI_assert_msg(cbag,
"If there are F-Curves for this slot, there should be a channelbag");
606 float local_mat[4][4], imat[4][4];
608 float min_vec[3], max_vec[3];
610 min_vec[0] = limit->
xmin;
611 min_vec[1] = limit->
ymin;
612 min_vec[2] = limit->
zmin;
614 max_vec[0] = limit->
xmax;
615 max_vec[1] = limit->
ymax;
616 max_vec[2] = limit->
zmax;
632 local_mat[3][0] = local_mat[3][1] = local_mat[3][2] = 0;
645 min_vec[1] = max_vec[1] * -1;
646 min_vec[2] = max_vec[2] * -1;
648 max_vec[1] = min_copy[1] * -1;
649 max_vec[2] = min_copy[2] * -1;
652 float min_x_copy = min_vec[0];
654 min_vec[0] = max_vec[0] * -1;
655 max_vec[0] = min_x_copy * -1;
662 limit->
xmin = min_vec[0];
663 limit->
ymin = min_vec[1];
664 limit->
zmin = min_vec[2];
666 limit->
xmax = max_vec[0];
667 limit->
ymax = max_vec[1];
668 limit->
zmax = max_vec[2];
677 float target_mat[4][4], own_mat[4][4], imat[4][4];
691 float old_min, old_max;
713 own_mat[3][0] = own_mat[3][1] = own_mat[3][2] = 0;
741 float imat_rot[4][4];
756 target_mat[3][0] = target_mat[3][1] = target_mat[3][2] = 0;
774 for (
int i = 0; i < 3; i++) {
793 for (
int i = 0; i < 3; i++) {
801 trans->
to_min[i] = temp_vec[i];
820 for (
int i = 0; i < 3; i++) {
911 switch (curcon->type) {
943 if (ob->
pose ==
nullptr) {
949 if (pchan->
custom !=
nullptr) {
965 shape_ob = shape_ob == pchan->
custom ? nullptr : shape_ob;
967 if (shape_ob !=
nullptr) {
984 float limit_min = pose_bone->
limitmin[2];
986 pose_bone->
limitmax[2] = -limit_min;
992 if (src_bone->
prop) {
1018 memcpy(dest, source,
sizeof(*dest));
1033 if (name !=
nullptr) {
1040 copy_pchan(cur_bone, e_bone, src_ob, dst_ob);
1063 for (
Object *ob : objects) {
1066 EditBone *ebone_first_dupe =
nullptr;
1090 ebone_iter && ebone_iter != ebone_first_dupe;
1091 ebone_iter = ebone_iter->
next)
1096 char *new_bone_name = ebone_iter->
name;
1098 if (do_flip_names) {
1100 new_bone_name_buff, ebone_iter->
name,
false,
sizeof(new_bone_name_buff));
1105 new_bone_name = new_bone_name_buff;
1111 if (!ebone_first_dupe) {
1112 ebone_first_dupe = ebone;
1119 ebone_iter && ebone_iter != ebone_first_dupe;
1120 ebone_iter = ebone_iter->
next)
1125 if (!ebone_iter->
parent) {
1142 ebone->
flag &= ~BONE_CONNECTED;
1165 ebone_iter && ebone_iter != ebone_first_dupe;
1166 ebone_iter = ebone_iter->
next)
1187 ot->
name =
"Duplicate Selected Bone(s)";
1188 ot->
idname =
"ARMATURE_OT_duplicate";
1189 ot->
description =
"Make copies of the selected bones within the same armature";
1203 "Try to flip names of the bones, if possible, instead of adding a number extension");
1209 if (bone ==
nullptr) {
1217 return (mirror !=
nullptr) ? mirror : bone;
1238 for (
Object *obedit : objects) {
1241 EditBone *ebone_first_dupe =
nullptr;
1261 if (ebone_iter ==
nullptr) {
1267 if (
STREQ(name_flip, ebone_iter->
name)) {
1285 axis_delta = ebone->
head[axis] - ebone_iter->
head[axis];
1286 if (axis_delta == 0.0f) {
1288 axis_delta = ebone->
tail[axis] - ebone_iter->
tail[axis];
1290 if (axis_delta == 0.0f) {
1300 if (((axis_delta < 0.0f) ? -1 : 1) == direction) {
1316 ebone_iter && ebone_iter != ebone_first_dupe;
1317 ebone_iter = ebone_iter->
next)
1320 if (ebone_iter->
temp.
ebone !=
nullptr) {
1340 if (!
STREQ(name_flip, ebone_iter->
name)) {
1345 if (!ebone_first_dupe) {
1346 ebone_first_dupe = ebone;
1354 ebone_iter && ebone_iter != ebone_first_dupe;
1355 ebone_iter = ebone_iter->
next)
1364 ebone->
flag = (ebone->
flag & ~flag_copy) | (ebone_iter->
flag & flag_copy);
1366 if (ebone_iter->
parent ==
nullptr) {
1371 ebone->
flag &= ~BONE_CONNECTED;
1377 if (ebone_parent == ebone_iter->
parent) {
1383 if (ebone->
head[axis] != 0.0f) {
1386 ebone->
flag &= ~BONE_CONNECTED;
1390 ebone->
parent = ebone_parent;
1425 ebone_iter && ebone_iter != ebone_first_dupe;
1426 ebone_iter = ebone_iter->
next)
1435 ebone_iter && ebone_iter != ebone_first_dupe;
1436 ebone_iter = ebone_iter->
next)
1464 {-1,
"NEGATIVE_X", 0,
"-X to +X",
""},
1465 {+1,
"POSITIVE_X", 0,
"+X to -X",
""},
1466 {0,
nullptr, 0,
nullptr,
nullptr},
1471 ot->
idname =
"ARMATURE_OT_symmetrize";
1472 ot->
description =
"Enforce symmetry, make copies of the selection or use existing";
1483 arm_symmetrize_direction_items,
1486 "Which sides to copy from and to (when both are selected)");
1499 bool changed_multi =
false;
1509 for (
Object *ob : objects) {
1511 bool forked_iter = forked;
1513 EditBone *newbone =
nullptr, *ebone, *flipbone, *first =
nullptr;
1515 ExtrudePoint do_extrude;
1523 ebone->
flag &= ~BONE_ROOTSEL;
1531 for (ebone =
static_cast<EditBone *
>(arm->
edbo->
first); ((ebone) && (ebone != first));
1532 ebone = ebone->next)
1536 do_extrude = SKIP_EXTRUDE;
1538 do_extrude = TIP_EXTRUDE;
1542 if (ebone->parent && (ebone->parent->flag &
BONE_TIPSEL)) {
1546 do_extrude = ROOT_EXTRUDE;
1556 forked_iter =
false;
1562 if ((flipbone ==
nullptr) && (forked_iter)) {
1567 for (a = 0; a < 2; a++) {
1569 if (flipbone ==
nullptr) {
1572 std::swap(flipbone, ebone);
1578 if (do_extrude == TIP_EXTRUDE) {
1590 else if (do_extrude == ROOT_EXTRUDE) {
1602 newbone->
color = ebone->color;
1604 newbone->
weight = ebone->weight;
1605 newbone->
dist = ebone->dist;
1606 newbone->
xwidth = ebone->xwidth;
1607 newbone->
zwidth = ebone->zwidth;
1608 newbone->
rad_head = ebone->rad_tail;
1609 newbone->
rad_tail = ebone->rad_tail;
1611 newbone->
layer = ebone->layer;
1614 newbone->
roll1 = ebone->roll1;
1615 newbone->
roll2 = ebone->roll2;
1620 newbone->
ease1 = ebone->ease1;
1621 newbone->
ease2 = ebone->ease2;
1628 if (flipbone && forked_iter) {
1645 if (a == 1 && flipbone) {
1646 std::swap(flipbone, ebone);
1656 if (totbone == 1 && first) {
1667 changed_multi =
true;
1676 if (!changed_multi) {
1689 ot->
idname =
"ARMATURE_OT_extrude";
1690 ot->
description =
"Create new bones from the selected joints";
1712 float obmat[3][3], curs[3], viewmat[3][3], totmat[3][3], imat[3][3];
1721 mul_m4_v3(obedit->world_to_object().ptr(), curs);
1730 copy_m3_m4(viewmat, obedit->object_to_world().ptr());
1745 "Bone that is not visible due to its bone collections MUST be assigned to at "
1746 "least one of them.");
1771 ot->
idname =
"ARMATURE_OT_bone_primitive_add";
1772 ot->
description =
"Add a new bone located at the 3D cursor";
1805 EditBone *last_bone_before_cutting =
static_cast<EditBone *
>(arm->edbo->last);
1807 "If there is no bone before subdividing, which bone is being subdivided here?");
1809 for (i = cuts + 1; i > 1; i--) {
1811 float cutratio = 1.0f /
float(i);
1812 float cutratioI = 1.0f - cutratio;
1827 val3[0] = val1[0] * cutratio + val2[0] * cutratioI;
1828 val3[1] = val1[1] * cutratio + val2[1] * cutratioI;
1829 val3[2] = val1[2] * cutratio + val2[2] * cutratioI;
1835 newbone->
rad_head = ((ebone->rad_head * cutratio) + (ebone->rad_tail * cutratioI));
1836 ebone->rad_tail = newbone->
rad_head;
1839 newbone->
prop =
nullptr;
1843 if (tbone->parent == ebone) {
1844 tbone->parent = newbone;
1866 new_bones.
first = last_bone_before_cutting->
next;
1867 new_bones.
last =
static_cast<EditBone *
>(arm->edbo->last);
1888 ot->
idname =
"ARMATURE_OT_subdivide";
1889 ot->
description =
"Break selected bones into chains of smaller bones";
1899 prop =
RNA_def_int(
ot->
srna,
"number_cuts", 1, 1, 1000,
"Number of Cuts",
"", 1, 10);
Functions and classes to work with Actions.
C++ functions to deal with Armature collections (i.e. the successor of bone layers).
bool ANIM_bonecoll_is_visible_editbone(const bArmature *armature, const EditBone *ebone)
void ANIM_armature_bonecoll_assign_active(const bArmature *armature, EditBone *ebone)
bool ANIM_armature_bonecoll_assign_editbone(BoneCollection *bcoll, EditBone *ebone)
Blender kernel action and pose functionality.
void BKE_pose_channel_copy_data(bPoseChannel *pchan, const bPoseChannel *pchan_from)
void BKE_pose_channels_hash_free(bPose *pose) ATTR_NONNULL(1)
void action_groups_add_channel(bAction *act, bActionGroup *agrp, FCurve *fcurve)
void BKE_pose_channels_hash_ensure(bPose *pose) ATTR_NONNULL(1)
bPoseChannel * BKE_pose_channel_find_name(const bPose *pose, const char *name)
void BKE_pose_channel_free(bPoseChannel *pchan) ATTR_NONNULL(1)
bPoseChannel * BKE_pose_channel_ensure(bPose *pose, const char *name) ATTR_NONNULL(2)
bActionGroup * action_groups_add_new(bAction *act, const char name[])
bActionGroup * BKE_action_group_find_name(bAction *act, const char name[])
void BKE_constraint_targets_flush(struct bConstraint *con, struct ListBase *targets, bool no_copy)
void BKE_constraint_mat_convertspace(struct Object *ob, struct bPoseChannel *pchan, struct bConstraintOb *cob, float mat[4][4], short from, short to, bool keep_scale)
int BKE_constraint_targets_get(struct bConstraint *con, struct ListBase *r_targets)
void BKE_constraint_custom_object_space_init(struct bConstraintOb *cob, struct bConstraint *con)
#define CTX_DATA_BEGIN_WITH_ID(C, Type, instance, member, Type_id, instance_id)
#define CTX_DATA_COUNT(C, member)
Scene * CTX_data_scene(const bContext *C)
Object * CTX_data_edit_object(const bContext *C)
Main * CTX_data_main(const bContext *C)
RegionView3D * CTX_wm_region_view3d(const bContext *C)
ARegion * CTX_wm_region(const bContext *C)
View3D * CTX_wm_view3d(const bContext *C)
ViewLayer * CTX_data_view_layer(const bContext *C)
FCurve * BKE_fcurve_copy(const FCurve *fcu)
IDProperty * IDP_CopyProperty(const IDProperty *prop) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
blender::Vector< Object * > BKE_view_layer_array_from_objects_in_edit_mode_unique_data(const Scene *scene, ViewLayer *view_layer, const View3D *v3d)
ID * BKE_libblock_find_name(Main *bmain, short type, const char *name, const std::optional< Library * > lib=std::nullopt) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
#define BLI_assert_msg(a, msg)
GHash * BLI_ghash_str_new(const char *info) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
void * BLI_ghash_lookup(const GHash *gh, const void *key) ATTR_WARN_UNUSED_RESULT
void BLI_ghash_insert(GHash *gh, void *key, void *val)
void BLI_ghash_free(GHash *gh, GHashKeyFreeFP keyfreefp, GHashValFreeFP valfreefp)
#define LISTBASE_FOREACH(type, var, list)
#define LISTBASE_FOREACH_BACKWARD(type, var, list)
void void void void void void BLI_duplicatelist(struct ListBase *dst, const struct ListBase *src) ATTR_NONNULL(1
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void mul_m3_v3(const float M[3][3], float r[3])
void unit_m3(float m[3][3])
void copy_m3_m4(float m1[3][3], const float m2[4][4])
bool invert_m3_m3(float inverse[3][3], const float mat[3][3])
void unit_m4(float m[4][4])
void mul_m4_v3(const float M[4][4], float r[3])
bool invert_m4_m4(float inverse[4][4], const float mat[4][4])
void mul_m3_m3m3(float R[3][3], const float A[3][3], const float B[3][3])
float angle_wrap_rad(float angle)
MINLINE void copy_v2fl_v2i(float r[2], const int a[2])
MINLINE float len_v3v3(const float a[3], const float b[3]) ATTR_WARN_UNUSED_RESULT
MINLINE void sub_v3_v3v3(float r[3], const float a[3], const float b[3])
MINLINE void copy_v3_v3(float r[3], const float a[3])
MINLINE void add_v3_v3v3(float r[3], const float a[3], const float b[3])
MINLINE void copy_v3_fl(float r[3], float f)
MINLINE void zero_v3(float r[3])
int bool bool bool BLI_strn_endswith(const char *__restrict str, const char *__restrict end, size_t str_len) ATTR_NONNULL(1
#define STRNCPY(dst, src)
char char size_t char * BLI_strncat(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
size_t BLI_string_flip_side_name(char *name_dst, const char *name_src, bool strip_number, size_t name_dst_maxncpy) ATTR_NONNULL(1
char * BLI_string_replaceN(const char *__restrict str, const char *__restrict substr_old, const char *__restrict substr_new) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
void DEG_id_tag_update(ID *id, unsigned int flags)
@ ID_RECALC_ANIMATION_NO_FLUSH
@ BONE_RELATIVE_PARENTING
@ CONSTRAINT_TYPE_TRACKTO
@ CONSTRAINT_TYPE_TRANSFORM
@ CONSTRAINT_TYPE_SHRINKWRAP
@ CONSTRAINT_TYPE_ROTLIMIT
@ CONSTRAINT_TYPE_KINEMATIC
@ CONSTRAINT_TYPE_LOCLIMIT
@ CONSTRAINT_TYPE_LOCKTRACK
@ CONSTRAINT_TYPE_DAMPTRACK
Object is a sort of wrapper for general info.
#define EBONE_VISIBLE(arm, ebone)
#define EBONE_SELECTABLE(arm, ebone)
void ED_outliner_select_sync_from_edit_bone_tag(bContext *C)
bool ED_operator_editarmature(bContext *C)
void ED_view3d_win_to_3d(const View3D *v3d, const ARegion *region, const float depth_pt[3], const float mval[2], float r_out[3])
Read Guarded memory(de)allocation.
@ OPTYPE_DEPENDS_ON_CURSOR
static void updateDuplicateKinematicConstraintSettings(bConstraint *curcon)
EditBone * ED_armature_ebone_add(bArmature *arm, const char *name)
void ARMATURE_OT_subdivide(wmOperatorType *ot)
static void updateDuplicateConstraintDampTrackSettings(bConstraint *curcon)
EditBone * duplicateEditBone(EditBone *cur_bone, const char *name, ListBase *editbones, Object *ob)
static int armature_duplicate_selected_exec(bContext *C, wmOperator *op)
static void track_axis_x_swap(int &value)
static EditBone * get_named_editbone(ListBase *edbo, const char *name)
static int armature_extrude_exec(bContext *C, wmOperator *op)
static void updateDuplicateSubtarget(EditBone *dup_bone, ListBase *editbones, Object *ob, bool lookup_mirror_subtarget)
EditBone * ED_armature_ebone_add_primitive(Object *obedit_arm, float length, bool view_aligned)
static EditBone * get_symmetrized_bone(bArmature *arm, EditBone *bone)
static void updateDuplicateConstraintLockTrackSettings(bConstraint *curcon)
void ED_armature_ebone_copy(EditBone *dest, const EditBone *source)
static bPoseChannel * pchan_duplicate_map(const bPose *pose, GHash *name_map, bPoseChannel *pchan_src)
static void updateDuplicateTransformConstraintSettings(Object *ob, bPoseChannel *pchan, bConstraint *curcon)
void ARMATURE_OT_click_extrude(wmOperatorType *ot)
static void updateDuplicateConstraintSettings(EditBone *dup_bone, EditBone *orig_bone, Object *ob)
static void updateDuplicateActionConstraintSettings(EditBone *dup_bone, EditBone *orig_bone, Object *ob, bPoseChannel *pchan, bConstraint *curcon)
static void updateDuplicateConstraintShrinkwrapSettings(bConstraint *curcon)
static int armature_click_extrude_exec(bContext *C, wmOperator *)
void ARMATURE_OT_duplicate(wmOperatorType *ot)
void ARMATURE_OT_symmetrize(wmOperatorType *ot)
void ARMATURE_OT_extrude(wmOperatorType *ot)
static int armature_symmetrize_exec(bContext *C, wmOperator *op)
static int armature_click_extrude_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static int armature_subdivide_exec(bContext *C, wmOperator *op)
static void mirror_pose_bone(Object &ob, EditBone &ebone)
void postEditBoneDuplicate(ListBase *editbones, Object *ob)
static void updateDuplicateConstraintTrackToSettings(bConstraint *curcon)
void ARMATURE_OT_bone_primitive_add(wmOperatorType *ot)
static void updateDuplicateLocRotConstraintSettings(Object *ob, bPoseChannel *pchan, bConstraint *curcon)
static int armature_bone_primitive_add_exec(bContext *C, wmOperator *op)
void preEditBoneDuplicate(ListBase *editbones)
static void updateDuplicateCustomBoneShapes(bContext *C, EditBone *dup_bone, Object *ob)
static void copy_pchan(EditBone *src_bone, EditBone *dst_bone, Object *src_ob, Object *dst_ob)
EditBone * add_points_bone(Object *obedit, float head[3], float tail[3])
EditBone * duplicateEditBoneObjects(EditBone *cur_bone, const char *name, ListBase *editbones, Object *src_ob, Object *dst_ob)
void ED_armature_ebone_unique_name(ListBase *ebones, char *name, EditBone *bone)
bool ED_armature_edit_deselect_all(Object *obedit)
void ED_armature_edit_transform_mirror_update(Object *obedit)
EditBone * ED_armature_ebone_find_name(const ListBase *edbo, const char *name)
void ED_armature_ebone_listbase_temp_clear(ListBase *lb)
void ED_armature_edit_sync_selection(ListBase *edbo)
void ED_armature_ebone_select_set(EditBone *ebone, bool select)
EditBone * ED_armature_ebone_get_mirrored(const ListBase *edbo, EditBone *ebo)
SIMD_FORCE_INLINE btScalar length() const
Return the length of the vector.
bool is_action_legacy() const
bActionGroup & channel_group_ensure(StringRefNull name)
bool fcurve_assign_to_channel_group(FCurve &fcurve, bActionGroup &to_group)
void fcurve_append(FCurve &fcurve)
draw_view in_light_buf[] float
draw_view push_constant(Type::INT, "radiance_src") .push_constant(Type capture_info_buf storage_buf(1, Qualifier::READ, "ObjectBounds", "bounds_buf[]") .push_constant(Type draw_view int
void *(* MEM_mallocN)(size_t len, const char *str)
void MEM_freeN(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
bool fcurve_matches_collection_path(const FCurve &fcurve, StringRefNull collection_rna_path, StringRefNull data_name)
Vector< FCurve * > fcurves_in_action_slot_filtered(bAction *act, slot_handle_t slot_handle, FunctionRef< bool(const FCurve &fcurve)> predicate)
const animrig::ChannelBag * channelbag_for_action_slot(const Action &action, slot_handle_t slot_handle)
void RNA_string_get(PointerRNA *ptr, const char *name, char *value)
int RNA_int_get(PointerRNA *ptr, const char *name)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
int RNA_enum_get(PointerRNA *ptr, const char *name)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
struct BoneCollection * bcoll
ListBase bone_collections
eBone_BBoneMappingMode bbone_mapping_mode
ObjectRuntimeHandle * runtime
int32_t action_slot_handle
struct BoneCollection * active_collection
struct EditBone * act_edbone
struct bArmature_Runtime runtime
struct Depsgraph * depsgraph
float custom_scale_xyz[3]
float custom_rotation_euler[3]
struct bPoseChannel * custom_tx
struct bPoseChannel * bbone_next
float custom_translation[3]
struct bPoseChannel * bbone_prev
bool(* poll)(bContext *C) ATTR_WARN_UNUSED_RESULT
int(* invoke)(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
int(* exec)(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
void WM_reportf(eReportType type, const char *format,...)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
int WM_operator_flag_only_pass_through_on_press(int retval, const wmEvent *event)