Blender V5.3
pose_transform.cc File Reference
#include "DNA_action_types.h"
#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_listbase.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_path_utils.hh"
#include "BLI_string_utf8.hh"
#include "BLI_string_utils.hh"
#include "BKE_action.hh"
#include "BKE_animsys.hh"
#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_pose.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_anim_api.hh"
#include "ED_anim_transformable.hh"
#include "ED_armature.hh"
#include "ED_keyframing.hh"
#include "ED_screen.hh"
#include "ANIM_armature.hh"
#include "ANIM_bone_collections.hh"
#include "ANIM_keyframing.hh"
#include "ANIM_keyingsets.hh"
#include "UI_interface_layout.hh"
#include "UI_resources.hh"
#include "armature_intern.hh"
#include "CLG_log.h"

Go to the source code of this file.

Classes

struct  blender::ApplyArmature_ParentState

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Local Utilities
static void blender::pose_copybuffer_filepath_get (char filepath[FILE_MAX], size_t filepath_maxncpy)
Apply Pose as Rest Pose
static void blender::applyarmature_fix_boneparents (const bContext *C, Scene *scene, Object *armob)
static void blender::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 blender::applyarmature_transfer_properties (EditBone *curbone, bke::PChanBone pchanbone, const bPoseChannel *pchan_eval)
static void blender::applyarmature_adjust_edit_position (bArmature *arm, bPoseChannel *pchan, const float delta_mat[4][4], float r_new_arm_mat[4][4])
static void blender::applyarmature_process_selected_recursive (bArmature *arm, bPose *pose, bPose *pose_eval, Bone *bone, Span< PointerRNA > selected, ApplyArmature_ParentState *pstate)
static void blender::applyarmature_reset_bone_constraint (const bConstraint *constraint)
static void blender::applyarmature_reset_bone_constraints (const bPoseChannel *pchan)
static void blender::applyarmature_reset_constraints (bPose *pose, const bool use_selected)
static wmOperatorStatus blender::apply_armature_pose2bones_exec (bContext *C, wmOperator *op)
static void blender::apply_armature_pose2bones_ui (bContext *C, wmOperator *op)
Pose-Mode Operators
void blender::POSE_OT_armature_apply (wmOperatorType *ot)
void blender::POSE_OT_visual_transform_apply (wmOperatorType *ot)
void blender::POSE_OT_copy (wmOperatorType *ot)
void blender::POSE_OT_paste (wmOperatorType *ot)
void blender::POSE_OT_scale_clear (wmOperatorType *ot)
void blender::POSE_OT_rot_clear (wmOperatorType *ot)
void blender::POSE_OT_loc_clear (wmOperatorType *ot)
void blender::POSE_OT_transforms_clear (wmOperatorType *ot)
void blender::POSE_OT_user_transforms_clear (wmOperatorType *ot)
Apply Visual Transform Operator

Set the current pose as the rest-pose.

static wmOperatorStatus blender::pose_visual_transform_apply_exec (bContext *C, wmOperator *)
Copy/Paste Utilities
static void blender::blend_bbone_values (const bPoseChannel &copy_bone, bPoseChannel &paste_bone, const float factor, const bool do_flip)
static void blender::blend_id_property (IDProperty &prop, const IDProperty &target, const float factor)
static void blender::blend_properties (IDProperty *copy_props, IDProperty *paste_props, const float factor)
static bPoseChannel * blender::pose_bone_blend_to (Object &paste_ob, const ed::AnimTransformable &copy_transformable, const bool selected_only, const bool flip, const float factor, bool *r_is_found=nullptr)
Copy Pose Operator
static wmOperatorStatus blender::pose_copy_exec (bContext *C, wmOperator *op)
Paste Pose Operator
static wmOperatorStatus blender::pose_paste_exec (bContext *C, wmOperator *op)
Clear Pose Transforms Utilities
static void blender::pchan_clear_scale (bPoseChannel *pchan)
static void blender::pchan_clear_scale_with_mirrored (const bPose *pose, bPoseChannel *pchan)
static void blender::pchan_clear_loc (bPoseChannel *pchan)
static void blender::pchan_clear_loc_with_mirrored (const bPose *pose, bPoseChannel *pchan)
static void blender::pchan_clear_rot (bPoseChannel *pchan)
static void blender::pchan_clear_rot_with_mirrored (const bPose *pose, bPoseChannel *pchan)
static void blender::pchan_clear_transforms (const bPose *pose, bPoseChannel *pchan)
static wmOperatorStatus blender::pose_clear_transform_generic_exec (bContext *C, wmOperator *op, void(*clear_func)(const bPose *, bPoseChannel *), const char default_ksName[])
Clear Pose Scale Operator
static wmOperatorStatus blender::pose_clear_scale_exec (bContext *C, wmOperator *op)
Clear Pose Rotation Operator
static wmOperatorStatus blender::pose_clear_rot_exec (bContext *C, wmOperator *op)
Clear Pose Location Operator
static wmOperatorStatus blender::pose_clear_loc_exec (bContext *C, wmOperator *op)
Clear Pose Transforms Operator
static wmOperatorStatus blender::pose_clear_transforms_exec (bContext *C, wmOperator *op)
Clear User Transforms Operator
static void blender::pose_bone_copy_transform_values (Object &paste_ob, const bPoseChannel &copy_bone, const bool selected_only)
static wmOperatorStatus blender::pose_clear_user_transforms_exec (bContext *C, wmOperator *op)

Variables

static CLG_LogRef LOG_POSE_PASTE = {"pose.paste"}

Variable Documentation

◆ LOG_POSE_PASTE

CLG_LogRef LOG_POSE_PASTE = {"pose.paste"}
static

Definition at line 69 of file pose_transform.cc.

Referenced by blender::pose_paste_exec().