Blender V4.3
pose_transform.cc 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_matrix.h"
#include "BLI_math_rotation.h"
#include "BLI_math_vector.h"
#include "BLI_string_utils.hh"
#include "BKE_action.hh"
#include "BKE_animsys.h"
#include "BKE_appdir.hh"
#include "BKE_armature.hh"
#include "BKE_blender_copybuffer.hh"
#include "BKE_blendfile.hh"
#include "BKE_context.hh"
#include "BKE_idprop.hh"
#include "BKE_layer.hh"
#include "BKE_lib_query.hh"
#include "BKE_main.hh"
#include "BKE_object.hh"
#include "BKE_report.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_prototypes.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_armature.hh"
#include "ED_keyframing.hh"
#include "ED_screen.hh"
#include "ANIM_bone_collections.hh"
#include "ANIM_keyframing.hh"
#include "ANIM_keyingsets.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "armature_intern.hh"

Go to the source code of this file.

Classes

struct  ApplyArmature_ParentState
 

Functions

Local Utilities
static void pose_copybuffer_filepath_get (char filepath[FILE_MAX], size_t filepath_maxncpy)
 
Apply Pose as Rest Pose
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, blender::Span< PointerRNA > 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)
 
Apply Visual Transform Operator

Set the current pose as the rest-pose.

static int pose_visual_transform_apply_exec (bContext *C, wmOperator *)
 
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)
 

Function Documentation

◆ apply_armature_pose2bones_exec()

◆ 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()

◆ 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()

◆ 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()

◆ pchan_clear_rot_with_mirrored()

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

◆ pchan_clear_scale()

◆ 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()

◆ 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()

◆ pose_clear_transforms_exec()

static int pose_clear_transforms_exec ( bContext * C,
wmOperator * op )
static

◆ pose_clear_user_transforms_exec()

◆ pose_copy_exec()

◆ pose_copybuffer_filepath_get()

static void pose_copybuffer_filepath_get ( char filepath[FILE_MAX],
size_t filepath_maxncpy )
static

Definition at line 64 of file pose_transform.cc.

References BKE_tempdir_base(), and BLI_path_join.

Referenced by pose_paste_exec().

◆ POSE_OT_armature_apply()

◆ POSE_OT_copy()

◆ POSE_OT_loc_clear()

◆ POSE_OT_paste()

◆ POSE_OT_rot_clear()

◆ POSE_OT_scale_clear()

◆ POSE_OT_transforms_clear()

◆ POSE_OT_user_transforms_clear()

◆ POSE_OT_visual_transform_apply()

◆ pose_paste_exec()

◆ pose_visual_transform_apply_exec()

◆ set_pose_keys()

static void set_pose_keys ( Object * ob)
static