Blender  V3.3
Classes
pose_transform.c File Reference
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_constraint_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_string_utils.h"
#include "BKE_action.h"
#include "BKE_animsys.h"
#include "BKE_appdir.h"
#include "BKE_armature.h"
#include "BKE_blender_copybuffer.h"
#include "BKE_context.h"
#include "BKE_deform.h"
#include "BKE_idprop.h"
#include "BKE_layer.h"
#include "BKE_main.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_prototypes.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_armature.h"
#include "ED_keyframing.h"
#include "ED_screen.h"
#include "ED_util.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "armature_intern.h"

Go to the source code of this file.

Classes

struct  ApplyArmature_ParentState
 

Functions

Apply Visual Transform Operator
static int pose_visual_transform_apply_exec (bContext *C, wmOperator *UNUSED(op))
 
void POSE_OT_visual_transform_apply (wmOperatorType *ot)
 
Copy/Paste Utilities
static void set_pose_keys (Object *ob)
 
static bPoseChannelpose_bone_do_paste (Object *ob, bPoseChannel *chan, const bool selOnly, const bool flip)
 
Copy Pose Operator
static int pose_copy_exec (bContext *C, wmOperator *op)
 
void POSE_OT_copy (wmOperatorType *ot)
 
Paste Pose Operator
static int pose_paste_exec (bContext *C, wmOperator *op)
 
void POSE_OT_paste (wmOperatorType *ot)
 
Clear Pose Transforms Utilities
static void pchan_clear_scale (bPoseChannel *pchan)
 
static void pchan_clear_scale_with_mirrored (const bPose *pose, bPoseChannel *pchan)
 
static void pchan_clear_loc (bPoseChannel *pchan)
 
static void pchan_clear_loc_with_mirrored (const bPose *pose, bPoseChannel *pchan)
 
static void pchan_clear_rot (bPoseChannel *pchan)
 
static void pchan_clear_rot_with_mirrored (const bPose *pose, bPoseChannel *pchan)
 
static void pchan_clear_transforms (const bPose *pose, bPoseChannel *pchan)
 
static int pose_clear_transform_generic_exec (bContext *C, wmOperator *op, void(*clear_func)(const bPose *, bPoseChannel *), const char default_ksName[])
 
Clear Pose Scale Operator
static int pose_clear_scale_exec (bContext *C, wmOperator *op)
 
void POSE_OT_scale_clear (wmOperatorType *ot)
 
Clear Pose Rotation Operator
static int pose_clear_rot_exec (bContext *C, wmOperator *op)
 
void POSE_OT_rot_clear (wmOperatorType *ot)
 
Clear Pose Location Operator
static int pose_clear_loc_exec (bContext *C, wmOperator *op)
 
void POSE_OT_loc_clear (wmOperatorType *ot)
 
Clear Pose Transforms Operator
static int pose_clear_transforms_exec (bContext *C, wmOperator *op)
 
void POSE_OT_transforms_clear (wmOperatorType *ot)
 
Clear User Transforms Operator
static int pose_clear_user_transforms_exec (bContext *C, wmOperator *op)
 
void POSE_OT_user_transforms_clear (wmOperatorType *ot)
 

Apply Pose as Rest Pose

typedef struct ApplyArmature_ParentState ApplyArmature_ParentState
 
static void applyarmature_fix_boneparents (const bContext *C, Scene *scene, Object *armob)
 
static void applyarmature_set_edit_position (EditBone *curbone, const float pose_mat[4][4], const float new_tail[3], float r_new_arm_mat[4][4])
 
static void applyarmature_transfer_properties (EditBone *curbone, bPoseChannel *pchan, const bPoseChannel *pchan_eval)
 
static void applyarmature_adjust_edit_position (bArmature *arm, bPoseChannel *pchan, const float delta_mat[4][4], float r_new_arm_mat[4][4])
 
static void applyarmature_process_selected_recursive (bArmature *arm, bPose *pose, bPose *pose_eval, Bone *bone, ListBase *selected, ApplyArmature_ParentState *pstate)
 
static void applyarmature_reset_bone_constraint (const bConstraint *constraint)
 
static void applyarmature_reset_bone_constraints (const bPoseChannel *pchan)
 
static void applyarmature_reset_constraints (bPose *pose, const bool use_selected)
 
static int apply_armature_pose2bones_exec (bContext *C, wmOperator *op)
 
static void apply_armature_pose2bones_ui (bContext *C, wmOperator *op)
 
void POSE_OT_armature_apply (wmOperatorType *ot)
 

Typedef Documentation

◆ ApplyArmature_ParentState

Function Documentation

◆ apply_armature_pose2bones_exec()

static int apply_armature_pose2bones_exec ( bContext C,
wmOperator op 
)
static

◆ apply_armature_pose2bones_ui()

static void apply_armature_pose2bones_ui ( bContext C,
wmOperator op 
)
static

◆ applyarmature_adjust_edit_position()

static void applyarmature_adjust_edit_position ( bArmature arm,
bPoseChannel pchan,
const float  delta_mat[4][4],
float  r_new_arm_mat[4][4] 
)
static

◆ applyarmature_fix_boneparents()

static void applyarmature_fix_boneparents ( const bContext C,
Scene scene,
Object armob 
)
static

◆ applyarmature_process_selected_recursive()

static void applyarmature_process_selected_recursive ( bArmature arm,
bPose pose,
bPose pose_eval,
Bone bone,
ListBase selected,
ApplyArmature_ParentState pstate 
)
static

◆ applyarmature_reset_bone_constraint()

static void applyarmature_reset_bone_constraint ( const bConstraint constraint)
static

◆ applyarmature_reset_bone_constraints()

static void applyarmature_reset_bone_constraints ( const bPoseChannel pchan)
static

◆ applyarmature_reset_constraints()

static void applyarmature_reset_constraints ( bPose pose,
const bool  use_selected 
)
static

◆ applyarmature_set_edit_position()

static void applyarmature_set_edit_position ( EditBone curbone,
const float  pose_mat[4][4],
const float  new_tail[3],
float  r_new_arm_mat[4][4] 
)
static

◆ applyarmature_transfer_properties()

static void applyarmature_transfer_properties ( EditBone curbone,
bPoseChannel pchan,
const bPoseChannel pchan_eval 
)
static

◆ pchan_clear_loc()

static void pchan_clear_loc ( bPoseChannel pchan)
static

◆ pchan_clear_loc_with_mirrored()

static void pchan_clear_loc_with_mirrored ( const bPose pose,
bPoseChannel pchan 
)
static

◆ pchan_clear_rot()

static void pchan_clear_rot ( bPoseChannel pchan)
static

◆ pchan_clear_rot_with_mirrored()

static void pchan_clear_rot_with_mirrored ( const bPose pose,
bPoseChannel pchan 
)
static

◆ pchan_clear_scale()

static void pchan_clear_scale ( bPoseChannel pchan)
static

◆ pchan_clear_scale_with_mirrored()

static void pchan_clear_scale_with_mirrored ( const bPose pose,
bPoseChannel pchan 
)
static

◆ pchan_clear_transforms()

static void pchan_clear_transforms ( const bPose pose,
bPoseChannel pchan 
)
static

◆ pose_bone_do_paste()

static bPoseChannel* pose_bone_do_paste ( Object ob,
bPoseChannel chan,
const bool  selOnly,
const bool  flip 
)
static

◆ pose_clear_loc_exec()

static int pose_clear_loc_exec ( bContext C,
wmOperator op 
)
static

◆ pose_clear_rot_exec()

static int pose_clear_rot_exec ( bContext C,
wmOperator op 
)
static

◆ pose_clear_scale_exec()

static int pose_clear_scale_exec ( bContext C,
wmOperator op 
)
static

◆ pose_clear_transform_generic_exec()

static int pose_clear_transform_generic_exec ( bContext C,
wmOperator op,
void(*)(const bPose *, bPoseChannel *)  clear_func,
const char  default_ksName[] 
)
static

◆ pose_clear_transforms_exec()

static int pose_clear_transforms_exec ( bContext C,
wmOperator op 
)
static

◆ pose_clear_user_transforms_exec()

static int pose_clear_user_transforms_exec ( bContext C,
wmOperator op 
)
static

◆ pose_copy_exec()

static int pose_copy_exec ( bContext C,
wmOperator op 
)
static

◆ POSE_OT_armature_apply()

void POSE_OT_armature_apply ( wmOperatorType ot)

◆ POSE_OT_copy()

void POSE_OT_copy ( wmOperatorType ot)

◆ POSE_OT_loc_clear()

void POSE_OT_loc_clear ( wmOperatorType ot)

◆ POSE_OT_paste()

void POSE_OT_paste ( wmOperatorType ot)

◆ POSE_OT_rot_clear()

void POSE_OT_rot_clear ( wmOperatorType ot)

◆ POSE_OT_scale_clear()

void POSE_OT_scale_clear ( wmOperatorType ot)

◆ POSE_OT_transforms_clear()

void POSE_OT_transforms_clear ( wmOperatorType ot)

◆ POSE_OT_user_transforms_clear()

void POSE_OT_user_transforms_clear ( wmOperatorType ot)

◆ POSE_OT_visual_transform_apply()

void POSE_OT_visual_transform_apply ( wmOperatorType ot)

◆ pose_paste_exec()

static int pose_paste_exec ( bContext C,
wmOperator op 
)
static

◆ pose_visual_transform_apply_exec()

static int pose_visual_transform_apply_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ set_pose_keys()

static void set_pose_keys ( Object ob)
static