|
Blender V5.0
|
#include "BLI_listbase.h"#include "BLI_math_vector.h"#include "BLI_string_utf8.h"#include "BLT_translation.hh"#include "DNA_armature_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "BKE_anim_visualization.h"#include "BKE_armature.hh"#include "BKE_context.hh"#include "BKE_layer.hh"#include "BKE_lib_id.hh"#include "BKE_object.hh"#include "BKE_report.hh"#include "DEG_depsgraph.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "RNA_prototypes.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_anim_api.hh"#include "ED_armature.hh"#include "ED_keyframing.hh"#include "ED_object.hh"#include "ED_screen.hh"#include "ANIM_armature.hh"#include "ANIM_bone_collections.hh"#include "ANIM_keyframing.hh"#include "armature_intern.hh"Go to the source code of this file.
Pose Mode API's and Operators for Pose Mode armatures.
Definition in file pose_edit.cc.
Definition at line 98 of file pose_edit.cc.
References BKE_id_is_editable(), BKE_report(), C, CTX_data_main(), CTX_wm_reports(), ED_object_posemode_enter_ex(), Object::id, NC_SCENE, ND_MODE, NS_MODE_POSE, RPT_WARNING, and WM_event_add_notifier().
Referenced by blender::ed::object::posemode_exec().
This function is used to process the necessary updates for.
Definition at line 77 of file pose_edit.cc.
References BKE_id_is_editable(), BLI_assert, DEG_id_tag_update_ex(), Object::id, ID_RECALC_SYNC_TO_EVAL, Object::mode, OB_ARMATURE, OB_MODE_POSE, Object::restore_mode, and Object::type.
Referenced by blender::ed::outliner::do_outliner_item_posemode_toggle(), ED_editors_init(), ED_object_posemode_enter(), blender::ed::object::ed_object_posemode_set_for_weight_paint_ex(), and blender::ed::object::posemode_exec().
Definition at line 126 of file pose_edit.cc.
References C, CTX_data_main(), ED_object_posemode_exit_ex(), NC_SCENE, ND_MODE, NS_MODE_OBJECT, and WM_event_add_notifier().
Referenced by blender::ed::object::posemode_exec().
Definition at line 113 of file pose_edit.cc.
References DEG_id_tag_update_ex(), Object::id, ID_RECALC_SYNC_TO_EVAL, Object::mode, OB_MODE_POSE, and Object::restore_mode.
Referenced by blender::ed::outliner::do_outliner_item_posemode_toggle(), blender::ed::object::ed_object_mode_generic_exit_ex(), ED_object_posemode_exit(), blender::ed::object::ed_object_posemode_set_for_weight_paint_ex(), and blender::ed::object::posemode_exec().
Definition at line 58 of file pose_edit.cc.
References BKE_object_pose_armature_get(), C, blender::ed::object::context_active_object(), CTX_data_active_object(), CTX_wm_area(), SPACE_PROPERTIES, and ScrArea::spacetype.
Referenced by add_or_move_to_collection_exec(), and ED_operator_posemode_context().
| void ED_pose_recalculate_paths | ( | bContext * | C, |
| Scene * | scene, | ||
| Object * | ob, | ||
| ePosePathCalcRange | range ) |
For the object with pose/action: update paths for those that have got them This should selectively update paths that exist...
To be called from various tools that do incremental updates.
Definition at line 152 of file pose_edit.cc.
References animviz_build_motionpath_targets(), animviz_calc_motionpaths(), animviz_depsgraph_build(), animviz_free_motionpath_targets(), ANIMVIZ_RECALC_PATHS, bPose::avs, C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_view_layer(), DEG_graph_free(), DEG_id_tag_update(), depsgraph, Object::id, ID_RECALC_SYNC_TO_EVAL, Object::pose, POSE_PATH_CALC_RANGE_CURRENT_FRAME, pose_path_convert_range(), bAnimVizSettings::recalc, TIMEIT_END, and TIMEIT_START.
Referenced by pose_calculate_paths_exec(), pose_clear_transform_generic_exec(), pose_paste_exec(), pose_update_paths_exec(), poseAnim_mapping_autoKeyframe(), blender::ed::transform::recalcData_pose(), and blender::ed::transform::special_aftertrans_update__pose().
|
static |
Definition at line 558 of file pose_edit.cc.
References bone_autoside_name(), C, CTX_DATA_BEGIN_WITH_ID, CTX_DATA_END, CTX_data_main(), DEG_id_tag_update(), ED_armature_bone_rename(), ID_RECALC_GEOMETRY, MAXBONENAME, NC_OBJECT, ND_POSE, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), STRNCPY_UTF8, and WM_event_add_notifier().
Referenced by POSE_OT_autoside_names().
|
static |
Definition at line 617 of file pose_edit.cc.
References BKE_rotMode_change_values(), C, CTX_DATA_BEGIN_WITH_ID, CTX_DATA_END, DEG_id_tag_update(), ID_RECALC_GEOMETRY, NC_OBJECT, ND_BONE_SELECT, ND_TRANSFORM, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by POSE_OT_rotation_mode_set().
|
static |
For the object with pose/action: create path curves for selected bones This recalculates the WHOLE path within the pchan->pathsf and pchan->pathef range.
Definition at line 240 of file pose_edit.cc.
References animviz_motionpath_compute_range(), animviz_verify_motionpaths(), bPose::avs, BKE_object_pose_armature_get(), C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_scene(), ED_pose_recalculate_paths(), ELEM, NC_OBJECT, ND_POSE, OPERATOR_CANCELLED, OPERATOR_FINISHED, bAnimVizSettings::path_range, bAnimVizSettings::path_type, Object::pose, POSE_PATH_CALC_RANGE_FULL, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_enum_set(), RNA_pointer_create_discrete(), TIMEIT_END, TIMEIT_START, and WM_event_add_notifier().
Referenced by POSE_OT_paths_calculate().
|
static |
Definition at line 210 of file pose_edit.cc.
References bPose::avs, BKE_object_pose_armature_get(), C, CTX_data_active_object(), ELEM, IFACE_, OPERATOR_CANCELLED, Object::pose, wmOperator::ptr, RNA_enum_get(), RNA_enum_set(), RNA_pointer_create_discrete(), and WM_operator_props_dialog_popup().
Referenced by POSE_OT_paths_calculate().
|
static |
Definition at line 379 of file pose_edit.cc.
References animviz_free_motionpath(), bPose::avs, bPose::chanbase, DEG_id_tag_update(), ELEM, Object::id, ID_RECALC_SYNC_TO_EVAL, LISTBASE_FOREACH, MOTIONPATH_BAKE_HAS_PATHS, bAnimVizSettings::path_bakeflag, Object::pose, and POSE_SELECTED.
Referenced by pose_clear_paths_exec().
|
static |
Definition at line 410 of file pose_edit.cc.
References BKE_object_pose_armature_get(), C, CTX_data_active_object(), ELEM, NC_OBJECT, ND_POSE, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::pose, pose_clear_paths(), wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by POSE_OT_paths_clear().
|
static |
Definition at line 429 of file pose_edit.cc.
References ptr, RNA_boolean_get(), and TIP_.
Referenced by POSE_OT_paths_clear().
|
static |
Definition at line 502 of file pose_edit.cc.
References BLI_addtail(), BLI_freelistN(), BLI_genericNodeN(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), ED_armature_bones_flip_names(), FOREACH_OBJECT_IN_MODE_BEGIN, FOREACH_OBJECT_IN_MODE_END, FOREACH_PCHAN_SELECTED_IN_OBJECT_BEGIN, FOREACH_PCHAN_SELECTED_IN_OBJECT_END, ID_RECALC_GEOMETRY, NC_OBJECT, ND_POSE, OB_ARMATURE, OB_MODE_POSE, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by POSE_OT_flip_names().
|
static |
Definition at line 778 of file pose_edit.cc.
References blender::animrig::autokeyframe_pose_channel(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), FOREACH_OBJECT_IN_MODE_BEGIN, FOREACH_OBJECT_IN_MODE_END, FOREACH_PCHAN_SELECTED_IN_OBJECT_BEGIN, FOREACH_PCHAN_SELECTED_IN_OBJECT_END, ID_RECALC_GEOMETRY, NC_OBJECT, ND_TRANSFORM, negate_v4(), OB_ARMATURE, OB_MODE_POSE, OPERATOR_CANCELLED, OPERATOR_FINISHED, ROT_MODE_QUAT, and WM_event_add_notifier().
Referenced by POSE_OT_quaternions_flip().
|
static |
Definition at line 668 of file pose_edit.cc.
References ANIM_bone_in_visible_collection(), BKE_object_pose_array_get_unique(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), bArmature::id, ID_RECALC_SYNC_TO_EVAL, LISTBASE_FOREACH, NC_OBJECT, ND_BONE_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, PCHAN_DRAW_HIDDEN, POSE_SELECTED, wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by POSE_OT_hide().
| void POSE_OT_autoside_names | ( | wmOperatorType * | ot | ) |
Definition at line 587 of file pose_edit.cc.
References ED_operator_posemode(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, pose_autoside_names_exec(), RNA_def_enum(), and WM_menu_invoke().
Referenced by ED_operatortypes_armature().
| void POSE_OT_flip_names | ( | wmOperatorType * | ot | ) |
Definition at line 534 of file pose_edit.cc.
References ED_operator_posemode_local(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, pose_flip_names_exec(), and RNA_def_boolean().
Referenced by ED_operatortypes_armature().
| void POSE_OT_hide | ( | wmOperatorType * | ot | ) |
Definition at line 702 of file pose_edit.cc.
References ED_operator_posemode(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, pose_hide_exec(), and RNA_def_boolean().
Referenced by ED_operatortypes_armature().
| void POSE_OT_paths_calculate | ( | wmOperatorType * | ot | ) |
Definition at line 286 of file pose_edit.cc.
References ED_operator_posemode_exclusive(), MOTIONPATH_BAKE_HEADS, MOTIONPATH_RANGE_SCENE, MOTIONPATH_TYPE_RANGE, OPTYPE_REGISTER, OPTYPE_UNDO, ot, pose_calculate_paths_exec(), pose_calculate_paths_invoke(), RNA_def_enum(), rna_enum_motionpath_bake_location_items, rna_enum_motionpath_display_type_items, and rna_enum_motionpath_range_items.
Referenced by ED_operatortypes_armature().
| void POSE_OT_paths_clear | ( | wmOperatorType * | ot | ) |
Definition at line 440 of file pose_edit.cc.
References ED_operator_posemode_exclusive(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, pose_clear_paths_exec(), pose_clear_paths_get_description(), PROP_SKIP_SAVE, RNA_def_boolean(), and RNA_def_property_flag().
Referenced by ED_operatortypes_armature().
| void POSE_OT_paths_range_update | ( | wmOperatorType * | ot | ) |
Definition at line 485 of file pose_edit.cc.
References ED_operator_posemode_exclusive(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and pose_update_paths_range_exec().
Referenced by ED_operatortypes_armature().
| void POSE_OT_paths_update | ( | wmOperatorType * | ot | ) |
Definition at line 361 of file pose_edit.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, pose_update_paths_exec(), and pose_update_paths_poll().
Referenced by ED_operatortypes_armature().
| void POSE_OT_quaternions_flip | ( | wmOperatorType * | ot | ) |
Definition at line 814 of file pose_edit.cc.
References ED_operator_posemode(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and pose_flip_quats_exec().
Referenced by ED_operatortypes_armature().
| void POSE_OT_reveal | ( | wmOperatorType * | ot | ) |
Definition at line 757 of file pose_edit.cc.
References ED_operator_posemode(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, pose_reveal_exec(), and RNA_def_boolean().
Referenced by ED_operatortypes_armature().
| void POSE_OT_rotation_mode_set | ( | wmOperatorType * | ot | ) |
Definition at line 644 of file pose_edit.cc.
References ED_operator_posemode(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, pose_bone_rotmode_exec(), RNA_def_enum(), rna_enum_object_rotation_mode_items, and WM_menu_invoke().
Referenced by ED_operatortypes_armature().
|
static |
Definition at line 139 of file pose_edit.cc.
References ANIMVIZ_CALC_RANGE_CHANGED, ANIMVIZ_CALC_RANGE_CURRENT_FRAME, ANIMVIZ_CALC_RANGE_FULL, POSE_PATH_CALC_RANGE_CHANGED, POSE_PATH_CALC_RANGE_CURRENT_FRAME, and POSE_PATH_CALC_RANGE_FULL.
Referenced by ED_pose_recalculate_paths().
|
static |
Definition at line 721 of file pose_edit.cc.
References ANIM_bone_in_visible_collection(), BKE_object_pose_array_get_unique(), BONE_UNSELECTABLE, C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), bArmature::id, ID_RECALC_PARAMETERS, LISTBASE_FOREACH, NC_OBJECT, ND_BONE_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, PCHAN_DRAW_HIDDEN, POSE_SELECTED, wmOperator::ptr, RNA_boolean_get(), select, SET_FLAG_FROM_TEST, and WM_event_add_notifier().
Referenced by POSE_OT_reveal().
|
static |
Definition at line 335 of file pose_edit.cc.
References animviz_motionpath_compute_range(), animviz_verify_motionpaths(), BKE_object_pose_armature_get(), C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_scene(), ED_pose_recalculate_paths(), ELEM, NC_OBJECT, ND_POSE, OPERATOR_CANCELLED, OPERATOR_FINISHED, POSE_PATH_CALC_RANGE_FULL, wmOperator::reports, and WM_event_add_notifier().
Referenced by POSE_OT_paths_update().
|
static |
Definition at line 325 of file pose_edit.cc.
References bPose::avs, C, CTX_data_active_object(), ED_operator_posemode_exclusive(), MOTIONPATH_BAKE_HAS_PATHS, bAnimVizSettings::path_bakeflag, and Object::pose.
Referenced by POSE_OT_paths_update().
|
static |
Definition at line 465 of file pose_edit.cc.
References bPose::avs, BKE_object_pose_armature_get(), C, CTX_data_active_object(), CTX_data_scene(), DEG_id_tag_update(), ELEM, Object::id, ID_RECALC_SYNC_TO_EVAL, NC_OBJECT, ND_POSE, OPERATOR_CANCELLED, OPERATOR_FINISHED, bAnimVizSettings::path_ef, bAnimVizSettings::path_sf, PEFRA, Object::pose, PSFRA, and WM_event_add_notifier().
Referenced by POSE_OT_paths_range_update().