Blender V5.3
ED_armature.hh File Reference

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define BONESEL_ROOT   (1u << 29)
#define BONESEL_TIP   (1u << 30)
#define BONESEL_BONE   (1u << 31)
#define BONESEL_ANY   (BONESEL_TIP | BONESEL_ROOT | BONESEL_BONE)
#define EBONE_SELECTABLE(arm, ebone)
#define EBONE_EDITABLE(ebone)
#define BONE_SELECT_PARENT   0
#define BONE_SELECT_CHILD   1
#define ARM_GROUPS_NAME   1
#define ARM_GROUPS_ENVELOPE   2
#define ARM_GROUPS_AUTO   3

Functions

EditBone * blender::ED_armature_ebone_add (bArmature *arm, const char *name)
EditBone * blender::ED_armature_ebone_add_primitive (Object *obedit_arm, const float length, const bool view_aligned)
void blender::ED_armature_ebone_copy (EditBone *dest, const EditBone *source)
void blender::ED_operatortypes_armature ()
void blender::ED_operatormacros_armature ()
void blender::ED_keymap_armature (wmKeyConfig *keyconf)
Base * blender::ED_armature_base_and_ebone_from_select_buffer (Span< Base * > bases, unsigned int select_id, EditBone **r_ebone)
Object * blender::ED_armature_object_and_ebone_from_select_buffer (Span< Object * > objects, unsigned int select_id, EditBone **r_ebone)
Base * blender::ED_armature_base_and_pchan_from_select_buffer (Span< Base * > bases, unsigned int select_id, bPoseChannel **r_pchan)
Base * blender::ED_armature_base_and_bone_from_select_buffer (Span< Base * > bases, unsigned int select_id, Bone **r_bone)
bool blender::ED_armature_edit_deselect_all_multi_ex (Span< Base * > bases)
bool blender::ED_armature_edit_deselect_all_visible_multi_ex (Span< Base * > bases)
void blender::ED_object_vgroup_calc_from_armature (ReportList *reports, Depsgraph *, Scene *scene, Object *ob, Object *par, const int mode, const bool mirror)
bool blender::ED_armature_pose_select_pick_bone (const Main &bmain, const Scene *scene, ViewLayer *view_layer, View3D *v3d, Object *ob, bPoseChannel *pchan, const SelectPick_Params &params)
bool blender::ED_armature_pose_select_pick_with_buffer (const Main &bmain, const Scene *scene, ViewLayer *view_layer, View3D *v3d, Base *base, const GPUSelectResult *hit_results, const int hits, const SelectPick_Params &params, bool do_nearest)
void blender::ED_armature_pose_select_in_wpaint_mode (const Main &bmain, const Scene *scene, ViewLayer *view_layer, Base *base_select)
bool blender::ED_pose_deselect_all_multi_ex (Span< Base * > bases, int select_mode, bool ignore_visibility)
bool blender::ED_pose_deselect_all_multi (bContext *C, int select_mode, const bool ignore_visibility)
bool blender::ED_pose_deselect_all (Object *ob, int select_mode, const bool ignore_visibility)
void blender::ED_pose_bone_select_tag_update (Object *ob)
void blender::ED_pose_bone_select (Object *ob, bPoseChannel *pchan, bool select, bool change_active)
void blender::ED_mesh_deform_bind_callback (Object *object, MeshDeformModifierData *mmd, Mesh *cagemesh, float *vertexcos, int verts_num, float cagemat[4][4])
Object Tools Public API
bArmature * blender::ED_armature_context (const bContext *C)
void blender::ED_armature_origin_set (Main *bmain, Object *ob, const float cursor[3], int centermode, int around)
void blender::ED_armature_edit_transform (bArmature *arm, const float mat[4][4], const bool do_props)
void blender::ED_armature_transform (bArmature *arm, const float mat[4][4], const bool do_props)
Bone Roll Calculate Operator
float blender::ED_armature_ebone_roll_to_vector (const EditBone *bone, const float align_axis[3], const bool axis_only)
Unique Bone Name Utility (Edit Mode)
void blender::ED_armature_ebone_unique_name (ListBaseT< EditBone > *ebones, char *name, EditBone *bone)
Bone Renaming (Object & Edit Mode API)
void blender::ED_armature_bone_rename (Main *bmain, bArmature *arm, const char *oldnamep, const char *newnamep)
Bone Flipping (Object & Edit Mode API)
void blender::ED_armature_bones_flip_names (Main *bmain, bArmature *arm, ListBaseT< LinkData > *bones_names, const bool do_strip_numbers)
Edit Armature Join
Note
No operator define here as this is exported to the Object-level operator.
wmOperatorStatus blender::ED_armature_join_objects_exec (bContext *C, wmOperator *op)
Select Buffer Queries for PoseMode & EditMode
bool blender::ED_armature_selectresult_is_bone (const GPUSelectResult &hit_result)
Select Utility Functions
bool blender::ED_armature_edit_deselect_all (Object *obedit)
bool blender::ED_armature_edit_deselect_all_visible (Object *obedit)
bool blender::ED_armature_edit_deselect_all_visible_multi (bContext *C)
Select Cursor Pick API
bool blender::ED_armature_edit_select_pick_bone (bContext *C, Base *basact, EditBone *ebone, const eBone_Flag selmask, const SelectPick_Params &params)
bool blender::ED_armature_edit_select_pick (bContext *C, const int mval[2], const SelectPick_Params &params)
Select Op From Tagged
bool blender::ED_armature_edit_select_op_from_tagged (bArmature *arm, const int sel_op)
Implements ED Undo System
void blender::ED_armature_undosys_type (UndoType *ut)
Validation
void blender::ED_armature_edit_sync_selection (ListBaseT< EditBone > *edbo)
Bone Removal
void blender::ED_armature_ebone_remove_ex (bArmature *arm, EditBone *exBone, bool clear_connected)
void blender::ED_armature_ebone_remove (bArmature *arm, EditBone *exBone)
bool blender::ED_armature_ebone_is_child_recursive (EditBone *ebone_parent, EditBone *ebone_child)
EditBone * blender::ED_armature_ebone_find_shared_parent (EditBone *ebone_child[], const uint ebone_child_tot)
void blender::ED_armature_ebone_to_mat3 (EditBone *ebone, float r_mat[3][3])
void blender::ED_armature_ebone_to_mat4 (EditBone *ebone, float r_mat[4][4])
void blender::ED_armature_ebone_from_mat3 (EditBone *ebone, const float mat[3][3])
void blender::ED_armature_ebone_from_mat4 (EditBone *ebone, const float mat[4][4])
EditBone * blender::ED_armature_ebone_find_name (const ListBaseT< EditBone > *edbo, const char *name)
Mirroring
EditBone * blender::ED_armature_ebone_get_mirrored (const ListBaseT< EditBone > *edbo, EditBone *ebo)
void blender::ED_armature_ebone_transform_mirror_update (bArmature *arm, EditBone *ebo, bool check_select)
void blender::ED_armature_edit_transform_mirror_update (Object *obedit)
Armature EditMode Conversions
void blender::ED_armature_from_edit (Main *bmain, bArmature *arm)
void blender::ED_armature_to_edit (bArmature *arm)
void blender::ED_armature_edit_free (bArmature *arm)
Used by Undo for Armature EditMode
void blender::ED_armature_ebone_listbase_temp_clear (ListBaseT< EditBone > *lb)
void blender::ED_armature_ebone_listbase_free (ListBaseT< EditBone > *lb, const bool do_id_user)
void blender::ED_armature_ebone_listbase_copy (ListBaseT< EditBone > *lb_dst, ListBaseT< EditBone > *lb_src, const bool do_id_user)
Low Level Selection Functions

which hide connected-parent flag behavior which gets tricky to handle in selection operators. (no flushing in ED_armature_ebone_select.*, that should be explicit).

int blender::ED_armature_ebone_selectflag_get (const EditBone *ebone)
void blender::ED_armature_ebone_selectflag_set (EditBone *ebone, eBone_Flag flag)
void blender::ED_armature_ebone_select_set (EditBone *ebone, bool select)
void blender::ED_armature_ebone_selectflag_enable (EditBone *ebone, eBone_Flag flag)
void blender::ED_armature_ebone_selectflag_disable (EditBone *ebone, eBone_Flag flag)
Pose Mode Enter/Exit
Object * blender::ED_pose_object_from_context (bContext *C)
bool blender::ED_object_posemode_exit_ex (Main *bmain, Object *ob)
bool blender::ED_object_posemode_exit (bContext *C, Object *ob)
bool blender::ED_object_posemode_enter_ex (Main *bmain, Object *ob)
bool blender::ED_object_posemode_enter (bContext *C, Object *ob)
Motion Paths
void blender::ED_pose_recalculate_paths (bContext *C, Scene *scene, Object *ob)
Cursor Pick API
EditBone * blender::ED_armature_pick_ebone (bContext *C, const int xy[2], bool findunsel, Base **r_base)
bPoseChannel * blender::ED_armature_pick_pchan (bContext *C, const int xy[2], bool findunsel, Base **r_base)
Bone * blender::ED_armature_pick_bone (bContext *C, const int xy[2], bool findunsel, Base **r_base)

Macro Definition Documentation

◆ ARM_GROUPS_AUTO

◆ ARM_GROUPS_ENVELOPE

◆ ARM_GROUPS_NAME

#define ARM_GROUPS_NAME   1

◆ BONE_SELECT_CHILD

#define BONE_SELECT_CHILD   1

◆ BONE_SELECT_PARENT

◆ BONESEL_ANY

◆ BONESEL_BONE

◆ BONESEL_ROOT

◆ BONESEL_TIP

◆ EBONE_EDITABLE

◆ EBONE_SELECTABLE