|
Blender V5.0
|
#include <cstring>#include "AS_asset_representation.hh"#include "MEM_guardedalloc.h"#include "BLT_translation.hh"#include "DNA_armature_types.h"#include "BKE_action.hh"#include "BKE_anim_data.hh"#include "BKE_animsys.h"#include "BKE_armature.hh"#include "BKE_context.hh"#include "BKE_lib_id.hh"#include "BKE_object.hh"#include "BKE_pose_backup.h"#include "BKE_report.hh"#include "DEG_depsgraph.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_prototypes.hh"#include "WM_api.hh"#include "WM_types.hh"#include "UI_interface.hh"#include "ED_asset.hh"#include "ED_asset_menu_utils.hh"#include "ED_keyframing.hh"#include "ED_screen.hh"#include "ED_util.hh"#include "ANIM_action.hh"#include "ANIM_action_legacy.hh"#include "ANIM_armature.hh"#include "ANIM_keyframing.hh"#include "ANIM_keyingsets.hh"#include "ANIM_pose.hh"#include "ANIM_rna.hh"#include "armature_intern.hh"Go to the source code of this file.
Classes | |
| struct | PoseBlendData |
Enumerations | |
| enum | ePoseBlendState { POSE_BLEND_INIT , POSE_BLEND_BLENDING , POSE_BLEND_ORIGINAL , POSE_BLEND_CONFIRM , POSE_BLEND_CANCEL } |
| enum ePoseBlendState |
| Enumerator | |
|---|---|
| POSE_BLEND_INIT | |
| POSE_BLEND_BLENDING | |
| POSE_BLEND_ORIGINAL | |
| POSE_BLEND_CONFIRM | |
| POSE_BLEND_CANCEL | |
Definition at line 56 of file pose_lib_2.cc.
|
static |
Definition at line 377 of file pose_lib_2.cc.
References BKE_action_flip_with_pose(), BKE_id_copy_ex(), C, CTX_wm_interface_locked(), CTX_wm_manager(), bAction::id, LIB_ID_COPY_LOCALIZE, and WM_locked_interface_set().
Referenced by poselib_blend_init_data().
|
static |
Definition at line 306 of file pose_lib_2.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), C, blender::Vector< T, InlineBufferCapacity, Allocator >::contains(), CTX_data_active_object(), CTX_data_selected_objects(), Object::pose, and ptr.
Referenced by poselib_blend_init_data(), and poselib_blend_poll().
|
static |
Return the bAction that should be blended. This is either pbd->act or pbd->act_flipped, depending on is_flipped.
Definition at line 101 of file pose_lib_2.cc.
References PoseBlendData::act, PoseBlendData::act_flipped, and PoseBlendData::is_flipped.
Referenced by poselib_backup_posecopy(), poselib_blend_apply(), and poselib_keytag_pose().
|
static |
Definition at line 621 of file pose_lib_2.cc.
References C, and poselib_apply_invoke().
Referenced by POSELIB_OT_apply_pose_asset().
|
static |
Definition at line 607 of file pose_lib_2.cc.
References C, wmOperator::customdata, OPERATOR_CANCELLED, POSE_BLEND_CONFIRM, poselib_blend_apply(), poselib_blend_exit(), poselib_blend_free(), poselib_blend_init_data(), and PoseBlendData::state.
Referenced by poselib_apply_exec(), poselib_blend_exec(), and POSELIB_OT_apply_pose_asset().
|
static |
Definition at line 107 of file pose_lib_2.cc.
References BKE_pose_backup_create_selected_bones(), PoseBlendData::objects, PoseBlendData::pose_backup, POSE_BLEND_BLENDING, POSE_BLEND_INIT, poselib_action_to_blend(), and PoseBlendData::state.
Referenced by poselib_blend_init_data(), and poselib_toggle_flipped().
|
static |
Definition at line 183 of file pose_lib_2.cc.
References BKE_animsys_eval_context_construct(), BKE_pose_backup_restore(), PoseBlendData::blend_factor, C, CTX_data_depsgraph_pointer(), wmOperator::customdata, DEG_id_tag_update(), depsgraph, Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_POSE, PoseBlendData::needs_redraw, PoseBlendData::objects, blender::animrig::pose_apply_action(), PoseBlendData::pose_backup, POSE_BLEND_BLENDING, poselib_action_to_blend(), bAction::slot_array_num, PoseBlendData::state, and WM_event_add_notifier().
Referenced by poselib_apply_invoke(), poselib_blend_invoke(), and poselib_blend_modal().
|
static |
Definition at line 569 of file pose_lib_2.cc.
References C, wmOperator::customdata, POSE_BLEND_CANCEL, poselib_blend_exit(), and PoseBlendData::state.
Referenced by POSELIB_OT_blend_pose_asset().
|
static |
Definition at line 482 of file pose_lib_2.cc.
References PoseBlendData::area, ATTR_FALLTHROUGH, BKE_pose_backup_restore(), BKE_report(), PoseBlendData::blend_factor, BLI_assert_msg, C, CTX_wm_window(), wmOperator::customdata, DEG_id_tag_update(), ED_area_status_text(), ED_slider_destroy(), ED_workspace_status_text(), bPose::flag, Object::id, ID_RECALC_GEOMETRY, PoseBlendData::is_flipped, NC_OBJECT, ND_POSE, PoseBlendData::objects, Object::pose, PoseBlendData::pose_backup, POSE_BLEND_BLENDING, POSE_BLEND_CANCEL, POSE_BLEND_CONFIRM, POSE_BLEND_INIT, POSE_BLEND_ORIGINAL, POSE_DO_UNLOCK, poselib_keytag_pose(), wmOperator::ptr, wmOperator::reports, RNA_boolean_set(), RNA_float_set(), RPT_ERROR, PoseBlendData::scene, PoseBlendData::slider, PoseBlendData::state, WM_event_add_mousemove(), and WM_event_add_notifier().
Referenced by poselib_blend_exit().
|
static |
Definition at line 645 of file pose_lib_2.cc.
References C, and poselib_apply_invoke().
Referenced by POSELIB_OT_blend_pose_asset().
|
static |
Definition at line 551 of file pose_lib_2.cc.
References C, CTX_wm_window(), wmOperator::customdata, OPERATOR_CANCELLED, OPERATOR_FINISHED, POSE_BLEND_CANCEL, poselib_blend_cleanup(), poselib_blend_free(), PoseBlendData::state, and WM_cursor_modal_restore().
Referenced by poselib_apply_invoke(), poselib_blend_cancel(), and poselib_blend_modal().
|
static |
Definition at line 532 of file pose_lib_2.cc.
References PoseBlendData::act_flipped, BKE_id_free(), BKE_pose_backup_free(), wmOperator::customdata, PoseBlendData::pose_backup, and poselib_tempload_exit().
Referenced by poselib_apply_invoke(), poselib_blend_exit(), and poselib_blend_invoke().
|
static |
Definition at line 239 of file pose_lib_2.cc.
References wmOperator::customdata, ED_slider_factor_get(), ED_slider_modal(), ELEM, EVT_ESCKEY, EVT_LEFTCTRLKEY, EVT_PADENTER, EVT_RETKEY, EVT_RIGHTCTRLKEY, EVT_SPACEKEY, EVT_TABKEY, PoseBlendData::init_event_type, KM_NOTHING, KM_PRESS, KM_RELEASE, LEFTMOUSE, MOUSEMOVE, PoseBlendData::needs_redraw, OPERATOR_RUNNING_MODAL, POSE_BLEND_BLENDING, POSE_BLEND_CANCEL, POSE_BLEND_CONFIRM, POSE_BLEND_ORIGINAL, poselib_blend_set_factor(), poselib_toggle_flipped(), PoseBlendData::release_confirm_info, RIGHTMOUSE, PoseBlendData::slider, PoseBlendData::state, wmEvent::type, PoseBlendData::use_release_confirm, and wmEvent::val.
Referenced by poselib_blend_modal().
|
static |
Definition at line 395 of file pose_lib_2.cc.
References PoseBlendData::act, PoseBlendData::act_flipped, PoseBlendData::area, BKE_report(), PoseBlendData::blend_factor, BLI_assert, C, CTX_data_scene(), CTX_wm_area(), wmOperator::customdata, ED_slider_allow_increments_set(), ED_slider_allow_overshoot_set(), ED_slider_create(), ED_slider_factor_bounds_set(), ED_slider_factor_set(), ED_slider_init(), flip_pose(), get_poselib_objects(), PoseBlendData::init_event_type, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), PoseBlendData::is_flipped, KM_CTRL, KM_RELEASE, PoseBlendData::needs_redraw, PoseBlendData::objects, POSE_BLEND_INIT, POSE_DO_UNLOCK, POSE_LOCKED, poselib_backup_posecopy(), poselib_blend_init_get_action(), wmOperator::ptr, PoseBlendData::release_confirm_info, wmOperator::reports, RNA_boolean_get(), RNA_float_get(), RNA_property_boolean_get(), RNA_property_is_set(), RNA_struct_find_property(), RNA_struct_property_is_set(), RPT_ERROR, PoseBlendData::scene, PoseBlendData::slider, PoseBlendData::state, wmEvent::type, PoseBlendData::use_release_confirm, and WM_userdef_event_type_from_keymap_type().
Referenced by poselib_apply_invoke(), and poselib_blend_invoke().
|
static |
Definition at line 335 of file pose_lib_2.cc.
References BKE_report(), BKE_reportf(), C, CTX_data_main(), CTX_wm_asset(), wmOperator::customdata, ID_AC, blender::ed::asset::operator_asset_reference_props_get_asset_from_all_library(), blender::ed::asset::operator_asset_reference_props_is_set(), wmOperator::ptr, wmOperator::reports, RNA_string_get(), RPT_ERROR, PoseBlendData::temp_id_consumer, blender::ed::asset::temp_id_consumer_create(), and blender::ed::asset::temp_id_consumer_ensure_local_id().
Referenced by poselib_blend_init_data().
|
static |
Definition at line 627 of file pose_lib_2.cc.
References C, CTX_wm_window(), OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, poselib_blend_apply(), poselib_blend_free(), poselib_blend_init_data(), WM_CURSOR_EW_SCROLL, WM_cursor_modal_set(), and WM_event_add_modal_handler().
Referenced by POSELIB_OT_blend_pose_asset().
|
static |
Definition at line 577 of file pose_lib_2.cc.
References C, wmOperator::customdata, ED_slider_status_get(), ELEM, IFACE_, PoseBlendData::is_flipped, PoseBlendData::needs_redraw, POSE_BLEND_BLENDING, POSE_BLEND_CANCEL, POSE_BLEND_CONFIRM, poselib_blend_apply(), poselib_blend_exit(), poselib_blend_handle_event(), PoseBlendData::slider, PoseBlendData::state, and status.
Referenced by POSELIB_OT_blend_pose_asset().
|
static |
Definition at line 651 of file pose_lib_2.cc.
References C, get_poselib_objects(), and blender::Span< T >::is_empty().
Referenced by POSELIB_OT_apply_pose_asset(), and POSELIB_OT_blend_pose_asset().
|
static |
Definition at line 219 of file pose_lib_2.cc.
References PoseBlendData::blend_factor, and PoseBlendData::needs_redraw.
Referenced by poselib_blend_handle_event().
|
static |
Definition at line 121 of file pose_lib_2.cc.
References AnimData::action, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::animrig::autokeyframe_cfra_can_key(), blender::animrig::autokeyframe_pose_channel(), blender::bke::BKE_action_find_fcurves_with_bones(), BKE_animdata_from_id(), BKE_id_is_editable(), BKE_pose_backup_is_selection_relevant(), BKE_pose_channel_find_name(), blender::animrig::bone_is_selected(), C, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), CTX_data_main(), Object::data, blender::animrig::get_best_pose_slot_for_id(), blender::animrig::get_keyable_id_property_paths(), blender::animrig::get_rotation_mode_path(), ActionSlot::handle, bAction::id, Object::id, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, PoseBlendData::objects, Object::pose, PoseBlendData::pose_backup, poselib_action_to_blend(), RNA_pointer_create_discrete(), bPoseChannel::rotmode, and WM_event_add_notifier().
Referenced by poselib_blend_cleanup().
| void POSELIB_OT_apply_pose_asset | ( | wmOperatorType * | ot | ) |
Definition at line 665 of file pose_lib_2.cc.
References FLT_MAX, blender::ed::asset::operator_asset_reference_props_register(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, poselib_apply_exec(), poselib_apply_invoke(), poselib_blend_poll(), PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_float_factor(), and RNA_def_property_flag().
Referenced by ED_operatortypes_armature().
| void POSELIB_OT_blend_pose_asset | ( | wmOperatorType * | ot | ) |
Definition at line 703 of file pose_lib_2.cc.
References FLT_MAX, blender::ed::asset::operator_asset_reference_props_register(), OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, poselib_blend_cancel(), poselib_blend_exec(), poselib_blend_invoke(), poselib_blend_modal(), poselib_blend_poll(), PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_float_factor(), and RNA_def_property_flag().
Referenced by ED_operatortypes_armature().
|
static |
Definition at line 329 of file pose_lib_2.cc.
References PoseBlendData::temp_id_consumer, and blender::ed::asset::temp_id_consumer_free().
Referenced by poselib_blend_free().
|
static |
Definition at line 225 of file pose_lib_2.cc.
References BKE_pose_backup_free(), BKE_pose_backup_restore(), PoseBlendData::is_flipped, PoseBlendData::needs_redraw, PoseBlendData::pose_backup, and poselib_backup_posecopy().
Referenced by poselib_blend_handle_event().