|
Blender V4.3
|
#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_math_vector.h"#include "BLT_translation.hh"#include "DNA_anim_types.h"#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_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(), 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 78 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 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, 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().
|
static |
Definition at line 377 of file pose_edit.cc.
References animviz_free_motionpath(), bPose::avs, BONE_SELECTED, bPose::chanbase, DEG_id_tag_update(), ELEM, Object::id, ID_RECALC_SYNC_TO_EVAL, LISTBASE_FOREACH, bAnimVizSettings::path_bakeflag, and Object::pose.
Referenced by pose_clear_paths_exec().
Definition at line 59 of file pose_edit.cc.
References BKE_object_pose_armature_get(), blender::ed::object::context_active_object(), CTX_data_active_object(), CTX_wm_area(), and SPACE_PROPERTIES.
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_calc_motionpaths(), animviz_depsgraph_build(), animviz_get_object_motionpaths(), ANIMVIZ_RECALC_PATHS, bPose::avs, BLI_freelistN(), 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(), recalcData_pose(), and special_aftertrans_update__pose().
Definition at line 665 of file pose_edit.cc.
References ANIM_bone_in_visible_collection(), BONE_HIDDEN_P, BONE_SELECTED, count, Object::data, Bone::flag, POINTER_AS_INT, and ptr.
Referenced by pose_hide_exec().
|
static |
Definition at line 556 of file pose_edit.cc.
References bone_autoside_name(), 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, and WM_event_add_notifier().
Referenced by POSE_OT_autoside_names().
|
static |
Definition at line 615 of file pose_edit.cc.
References BKE_rotMode_change_values(), 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 238 of file pose_edit.cc.
References animviz_motionpath_compute_range(), animviz_verify_motionpaths(), bPose::avs, BKE_object_pose_armature_get(), 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(), 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(), CTX_data_active_object(), ELEM, IFACE_, OPERATOR_CANCELLED, Object::pose, wmOperator::ptr, RNA_enum_get(), RNA_enum_set(), RNA_pointer_create(), and WM_operator_props_dialog_popup().
Referenced by POSE_OT_paths_calculate().
|
static |
Definition at line 408 of file pose_edit.cc.
References BKE_object_pose_armature_get(), CTX_data_active_object(), ED_pose_clear_paths(), ELEM, NC_OBJECT, ND_POSE, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::pose, wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by POSE_OT_paths_clear().
|
static |
Definition at line 427 of file pose_edit.cc.
References ptr, RNA_boolean_get(), and TIP_.
Referenced by POSE_OT_paths_clear().
|
static |
Definition at line 500 of file pose_edit.cc.
References BLI_addtail(), BLI_freelistN(), BLI_genericNodeN(), 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 792 of file pose_edit.cc.
References blender::animrig::autokeyframe_pose_channel(), 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 682 of file pose_edit.cc.
References BKE_object_pose_array_get_unique(), bone_looper(), bArmature::bonebase, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), ListBase::first, hide_pose_bone_fn(), bArmature::id, ID_RECALC_SYNC_TO_EVAL, NC_OBJECT, ND_BONE_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, POINTER_FROM_INT, 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 585 of file pose_edit.cc.
References wmOperatorType::description, ED_operator_posemode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, pose_autoside_names_exec(), wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_armature().
| void POSE_OT_flip_names | ( | wmOperatorType * | ot | ) |
Definition at line 532 of file pose_edit.cc.
References wmOperatorType::description, ED_operator_posemode_local(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, pose_flip_names_exec(), RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_armature().
| void POSE_OT_hide | ( | wmOperatorType * | ot | ) |
Definition at line 709 of file pose_edit.cc.
References wmOperatorType::description, ED_operator_posemode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, pose_hide_exec(), RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_armature().
| void POSE_OT_paths_calculate | ( | wmOperatorType * | ot | ) |
Definition at line 284 of file pose_edit.cc.
References wmOperatorType::description, ED_operator_posemode_exclusive(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MOTIONPATH_BAKE_HEADS, MOTIONPATH_RANGE_SCENE, MOTIONPATH_TYPE_RANGE, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, pose_calculate_paths_exec(), pose_calculate_paths_invoke(), RNA_def_enum(), rna_enum_motionpath_bake_location_items, rna_enum_motionpath_display_type_items, rna_enum_motionpath_range_items, and wmOperatorType::srna.
Referenced by ED_operatortypes_armature().
| void POSE_OT_paths_clear | ( | wmOperatorType * | ot | ) |
Definition at line 438 of file pose_edit.cc.
References ED_operator_posemode_exclusive(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::get_description, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, pose_clear_paths_exec(), pose_clear_paths_get_description(), wmOperatorType::prop, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_armature().
| void POSE_OT_paths_range_update | ( | wmOperatorType * | ot | ) |
Definition at line 483 of file pose_edit.cc.
References wmOperatorType::description, ED_operator_posemode_exclusive(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and pose_update_paths_range_exec().
Referenced by ED_operatortypes_armature().
| void POSE_OT_paths_update | ( | wmOperatorType * | ot | ) |
Definition at line 359 of file pose_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, pose_update_paths_exec(), and pose_update_paths_poll().
Referenced by ED_operatortypes_armature().
| void POSE_OT_quaternions_flip | ( | wmOperatorType * | ot | ) |
Definition at line 828 of file pose_edit.cc.
References wmOperatorType::description, ED_operator_posemode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and pose_flip_quats_exec().
Referenced by ED_operatortypes_armature().
| void POSE_OT_reveal | ( | wmOperatorType * | ot | ) |
Definition at line 771 of file pose_edit.cc.
References wmOperatorType::description, ED_operator_posemode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, pose_reveal_exec(), RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_armature().
| void POSE_OT_rotation_mode_set | ( | wmOperatorType * | ot | ) |
Definition at line 642 of file pose_edit.cc.
References wmOperatorType::description, ED_operator_posemode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, pose_bone_rotmode_exec(), wmOperatorType::prop, RNA_def_enum(), rna_enum_object_rotation_mode_items, wmOperatorType::srna, 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 747 of file pose_edit.cc.
References BKE_object_pose_array_get_unique(), bone_looper(), bArmature::bonebase, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), ListBase::first, bArmature::id, ID_RECALC_PARAMETERS, NC_OBJECT, ND_BONE_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, POINTER_FROM_INT, wmOperator::ptr, RNA_boolean_get(), select(), show_pose_bone_cb(), and WM_event_add_notifier().
Referenced by POSE_OT_reveal().
|
static |
Definition at line 333 of file pose_edit.cc.
References animviz_motionpath_compute_range(), animviz_verify_motionpaths(), BKE_object_pose_armature_get(), 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 323 of file pose_edit.cc.
References bPose::avs, 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 463 of file pose_edit.cc.
References bPose::avs, BKE_object_pose_armature_get(), 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().
Definition at line 727 of file pose_edit.cc.
References ANIM_bone_in_visible_collection(), BONE_HIDDEN_P, BONE_SELECTED, BONE_UNSELECTABLE, count, Object::data, Bone::flag, POINTER_AS_INT, select(), and SET_FLAG_FROM_TEST.
Referenced by pose_reveal_exec().