Blender
V3.3
|
#include <math.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_dlrbTree.h"
#include "BLI_string_utils.h"
#include "BLT_translation.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BKE_action.h"
#include "BKE_animsys.h"
#include "BKE_armature.h"
#include "BKE_fcurve.h"
#include "BKE_idprop.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_object.h"
#include "BKE_context.h"
#include "BKE_report.h"
#include "DEG_depsgraph.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "RNA_prototypes.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "ED_anim_api.h"
#include "ED_armature.h"
#include "ED_keyframes_edit.h"
#include "ED_keyframes_keylist.h"
#include "ED_keyframing.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "armature_intern.h"
Go to the source code of this file.
Classes | |
struct | tPoseLib_PreviewData |
struct | tPoseLib_Backup |
Typedefs | |
typedef struct tPoseLib_PreviewData | tPoseLib_PreviewData |
typedef struct tPoseLib_Backup | tPoseLib_Backup |
Enumerations | |
enum | { PL_PREVIEW_ERROR = -1 , PL_PREVIEW_RUNNING , PL_PREVIEW_CONFIRM , PL_PREVIEW_CANCEL , PL_PREVIEW_RUNONCE } |
enum | { PL_PREVIEW_NOREDRAW = 0 , PL_PREVIEW_REDRAWALL , PL_PREVIEW_REDRAWHEADER } |
enum | { PL_PREVIEW_FIRSTTIME = (1 << 0) , PL_PREVIEW_SHOWORIGINAL = (1 << 1) , PL_PREVIEW_ANY_BONE_SELECTED = (1 << 2) } |
typedef struct tPoseLib_Backup tPoseLib_Backup |
typedef struct tPoseLib_PreviewData tPoseLib_PreviewData |
anonymous enum |
Enumerator | |
---|---|
PL_PREVIEW_ERROR | |
PL_PREVIEW_RUNNING | |
PL_PREVIEW_CONFIRM | |
PL_PREVIEW_CANCEL | |
PL_PREVIEW_RUNONCE |
Definition at line 901 of file pose_lib.c.
anonymous enum |
Enumerator | |
---|---|
PL_PREVIEW_NOREDRAW | |
PL_PREVIEW_REDRAWALL | |
PL_PREVIEW_REDRAWHEADER |
Definition at line 910 of file pose_lib.c.
anonymous enum |
Enumerator | |
---|---|
PL_PREVIEW_FIRSTTIME | |
PL_PREVIEW_SHOWORIGINAL | |
PL_PREVIEW_ANY_BONE_SELECTED |
Definition at line 917 of file pose_lib.c.
Definition at line 61 of file pose_lib.c.
Referenced by poselib_preview_cleanup().
Definition at line 144 of file pose_lib.c.
References blender::compositor::area(), BKE_object_pose_armature_get(), C, CTX_data_active_object(), CTX_wm_area(), ED_object_context(), NULL, and SPACE_PROPERTIES.
Referenced by has_poselib_pose_data_for_editing_poll(), has_poselib_pose_data_poll(), poselib_add_exec(), poselib_add_menu_invoke(), poselib_add_menu_invoke__replacemenu(), poselib_add_poll(), poselib_move_exec(), poselib_new_exec(), poselib_preview_init_data(), poselib_remove_exec(), poselib_rename_invoke(), poselib_sanitize_exec(), poselib_stored_pose_itemf(), and poselib_unlink_exec().
Definition at line 171 of file pose_lib.c.
References BKE_id_is_editable(), C, CTX_data_main(), get_poselib_object(), bAction::id, and Object::poselib.
Referenced by POSELIB_OT_action_sanitize(), POSELIB_OT_pose_move(), POSELIB_OT_pose_remove(), and POSELIB_OT_pose_rename().
Definition at line 162 of file pose_lib.c.
References C, get_poselib_object(), and Object::poselib.
Referenced by POSELIB_OT_apply_pose(), POSELIB_OT_browse_interactive(), and POSELIB_OT_unlink().
|
static |
Definition at line 465 of file pose_lib.c.
References bAction::active_marker, ANIM_apply_keyingset(), ANIM_builtin_keyingset_get_named(), ANIM_KS_WHOLE_CHARACTER_SELECTED_ID, BLI_addtail(), BLI_listbase_count(), BLI_strncpy(), BLI_uniquename(), C, CTX_data_main(), DATA_, DEG_id_tag_update(), ELEM, ListBase::first, get_poselib_object(), bAction::id, ID_RECALC_COPY_ON_WRITE, bAction::markers, MEM_callocN, MODIFYKEY_MODE_INSERT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::pose, poselib_validate(), wmOperator::ptr, RNA_int_get(), and RNA_string_get().
Referenced by POSELIB_OT_pose_add().
|
static |
Definition at line 418 of file pose_lib.c.
References C, RenderData::cfra, CTX_data_scene(), ELEM, ListBase::first, get_poselib_object(), if(), IFACE_, bAction::markers, wmOperatorType::name, NULL, OPERATOR_CANCELLED, OPERATOR_INTERFACE, Object::pose, Object::poselib, poselib_add_menu_invoke__replacemenu(), poselib_get_free_index(), Scene::r, scene, wmOperator::type, UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), uiItemIntO(), uiItemMenuF(), uiLayoutSetOperatorContext(), and WM_OP_EXEC_DEFAULT.
Referenced by POSELIB_OT_pose_add().
|
static |
Definition at line 395 of file pose_lib.c.
References BLI_assert, C, ListBase::first, TimeMarker::frame, get_poselib_object(), bAction::markers, TimeMarker::name, TimeMarker::next, NULL, ot, Object::poselib, RNA_int_set(), RNA_string_set(), uiItemFullO_ptr(), uiLayoutSetOperatorContext(), WM_OP_EXEC_DEFAULT, and WM_operatortype_find().
Referenced by poselib_add_menu_invoke().
Definition at line 377 of file pose_lib.c.
References BKE_id_is_editable(), C, CTX_data_main(), ED_operator_posemode(), get_poselib_object(), bAction::id, NULL, and Object::poselib.
Referenced by POSELIB_OT_pose_add().
|
static |
Definition at line 1025 of file pose_lib.c.
References tPoseLib_PreviewData::act, ALE_GROUP, ANIM_animchanneldata_keyframes_loop(), ANIM_editkeyframes_ok(), animsys_evaluate_action_group(), tPoseLib_PreviewData::arm, BEZT_OK_FRAMERANGE, BKE_animsys_eval_context_construct_at(), BKE_pose_channel_find_name(), BKE_pose_is_layer_visible(), bPoseChannel::bone, BONE_HIDDEN_P, BONE_SELECTED, KeyframeEditData::f1, KeyframeEditData::f2, ListBase::first, tPoseLib_PreviewData::flag, Bone::flag, float(), TimeMarker::frame, bAction::groups, tPoseLib_PreviewData::marker, bActionGroup::name, bActionGroup::next, NULL, tPoseLib_Backup::pchan, PL_PREVIEW_ANY_BONE_SELECTED, tPoseLib_PreviewData::pose, ptr, and tPoseLib_PreviewData::rna_ptr.
Referenced by poselib_preview_apply().
|
static |
Definition at line 1001 of file pose_lib.c.
References tPoseLib_PreviewData::backups, BLI_freelinkN(), ListBase::first, IDP_FreeProperty(), tPoseLib_Backup::next, and tPoseLib_Backup::oldprops.
Referenced by poselib_preview_cleanup().
|
static |
Definition at line 936 of file pose_lib.c.
References tPoseLib_PreviewData::act, tPoseLib_PreviewData::backups, BKE_pose_channel_find_name(), BLI_addtail(), BONE_SELECTED, bPose::chanbase, ListBase::first, tPoseLib_PreviewData::flag, bAction::groups, IDP_CopyProperty(), LISTBASE_FOREACH, MEM_callocN, bActionGroup::name, bActionGroup::next, NULL, tPoseLib_Backup::olddata, tPoseLib_Backup::oldprops, tPoseLib_Backup::pchan, PL_PREVIEW_ANY_BONE_SELECTED, tPoseLib_PreviewData::pose, bPoseChannel::prop, and tPoseLib_PreviewData::totcount.
Referenced by poselib_preview_init_data().
|
static |
Definition at line 982 of file pose_lib.c.
References tPoseLib_PreviewData::backups, ListBase::first, IDP_SyncGroupValues(), tPoseLib_Backup::next, tPoseLib_Backup::olddata, tPoseLib_Backup::oldprops, tPoseLib_Backup::pchan, and bPoseChannel::prop.
Referenced by poselib_preview_apply(), and poselib_preview_cleanup().
|
static |
Definition at line 134 of file pose_lib.c.
References bAction::active_marker, BLI_findlink(), bAction::markers, and NULL.
Referenced by poselib_preview_init_data().
|
static |
Overview: This tool allows animators to store a set of frequently used poses to dump into the active action to help in "budget" productions to quickly block out new actions. It acts as a kind of "glorified clipboard for poses", allowing for naming of poses.
Features:
Definition at line 89 of file pose_lib.c.
References ELEM, ListBase::first, TimeMarker::frame, high(), low(), bAction::markers, TimeMarker::next, and NULL.
Referenced by poselib_add_menu_invoke().
Definition at line 180 of file pose_lib.c.
References BKE_action_add(), ELEM, bAction::id, ID_OB, id_us_min(), bAction::idroot, NULL, Object::pose, and Object::poselib.
Referenced by poselib_new_exec(), and poselib_validate().
|
static |
Definition at line 1088 of file pose_lib.c.
References tPoseLib_PreviewData::act, ANIM_apply_keyingset(), ANIM_get_keyingset_for_autokeying(), ANIM_KS_WHOLE_CHARACTER_ID, ANIM_relative_keyingset_add_source(), autokeyframe_cfra_can_key(), BKE_pose_channel_find_name(), BLI_freelistN(), bPoseChannel::bone, BONE_SELECTED, C, RenderData::cfra, ListBase::first, tPoseLib_PreviewData::flag, Bone::flag, bAction::groups, Object::id, MODIFYKEY_MODE_INSERT, NA_EDITED, bActionGroup::name, NC_ANIMATION, ND_KEYFRAME, bActionGroup::next, NULL, tPoseLib_PreviewData::ob, tPoseLib_Backup::pchan, PL_PREVIEW_ANY_BONE_SELECTED, tPoseLib_PreviewData::pose, Scene::r, scene, and WM_event_add_notifier().
Referenced by poselib_preview_cleanup().
|
static |
Definition at line 763 of file pose_lib.c.
References bAction::active_marker, BKE_report(), BKE_reportf(), BLI_findlink(), BLI_listbase_link_move(), C, get_poselib_object(), if(), bAction::markers, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::poselib, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_property_enum_get(), RNA_property_is_set(), RNA_struct_find_property(), RPT_ERROR, and WM_event_add_notifier().
Referenced by POSELIB_OT_pose_move().
|
static |
Definition at line 213 of file pose_lib.c.
References C, CTX_data_main(), get_poselib_object(), NC_OBJECT, ND_POSE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, poselib_init_new(), and WM_event_add_notifier().
Referenced by POSELIB_OT_new().
void POSELIB_OT_action_sanitize | ( | wmOperatorType * | ot | ) |
Definition at line 357 of file pose_lib.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, has_poselib_pose_data_for_editing_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and poselib_sanitize_exec().
Referenced by ED_operatortypes_armature().
void POSELIB_OT_apply_pose | ( | wmOperatorType * | ot | ) |
Definition at line 1876 of file pose_lib.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, has_poselib_pose_data_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, poselib_preview_exec(), wmOperatorType::prop, RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_armature().
void POSELIB_OT_browse_interactive | ( | wmOperatorType * | ot | ) |
Definition at line 1829 of file pose_lib.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, has_poselib_pose_data_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, poselib_preview_cancel(), poselib_preview_exec(), poselib_preview_invoke(), poselib_preview_modal(), wmOperatorType::prop, RNA_def_float_factor(), RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_armature().
void POSELIB_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 232 of file pose_lib.c.
References wmOperatorType::description, ED_operator_posemode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and poselib_new_exec().
Referenced by ED_operatortypes_armature().
void POSELIB_OT_pose_add | ( | wmOperatorType * | ot | ) |
Definition at line 522 of file pose_lib.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, poselib_add_exec(), poselib_add_menu_invoke(), poselib_add_poll(), RNA_def_int(), RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_armature().
void POSELIB_OT_pose_move | ( | wmOperatorType * | ot | ) |
Definition at line 812 of file pose_lib.c.
References wmOperatorType::description, DummyRNA_NULL_items, wmOperatorType::exec, wmOperatorType::flag, has_poselib_pose_data_for_editing_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, poselib_move_exec(), poselib_stored_pose_itemf(), wmOperatorType::prop, PROP_ENUM_NO_TRANSLATE, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_armature().
void POSELIB_OT_pose_remove | ( | wmOperatorType * | ot | ) |
Definition at line 643 of file pose_lib.c.
References wmOperatorType::description, DummyRNA_NULL_items, wmOperatorType::exec, wmOperatorType::flag, has_poselib_pose_data_for_editing_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, poselib_remove_exec(), poselib_stored_pose_itemf(), wmOperatorType::prop, PROP_ENUM_NO_TRANSLATE, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_armature().
void POSELIB_OT_pose_rename | ( | wmOperatorType * | ot | ) |
Definition at line 734 of file pose_lib.c.
References wmOperatorType::description, DummyRNA_NULL_items, wmOperatorType::exec, wmOperatorType::flag, has_poselib_pose_data_for_editing_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, poselib_rename_exec(), poselib_rename_invoke(), poselib_stored_pose_itemf(), wmOperatorType::prop, PROP_ENUM_NO_TRANSLATE, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_armature().
void POSELIB_OT_unlink | ( | wmOperatorType * | ot | ) |
Definition at line 270 of file pose_lib.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, has_poselib_pose_data_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and poselib_unlink_exec().
Referenced by ED_operatortypes_armature().
|
static |
Definition at line 1127 of file pose_lib.c.
References tPoseLib_PreviewData::act, tPoseLib_PreviewData::area, BKE_animsys_eval_context_construct(), BLI_findindex(), BLI_snprintf(), BLI_strncpy(), C, CTX_data_depsgraph_pointer(), wmOperator::customdata, DEG_id_tag_update(), depsgraph, ED_area_status_text(), ED_workspace_status_text(), tPoseLib_PreviewData::flag, tPoseLib_PreviewData::headerstr, Object::id, ID_RECALC_GEOMETRY, if(), tPoseLib_PreviewData::marker, bAction::markers, TimeMarker::name, NC_OBJECT, ND_POSE, NULL, tPoseLib_PreviewData::ob, PL_PREVIEW_FIRSTTIME, PL_PREVIEW_NOREDRAW, PL_PREVIEW_REDRAWALL, PL_PREVIEW_RUNNING, PL_PREVIEW_SHOWORIGINAL, poselib_apply_pose(), poselib_backup_restore(), wmOperator::ptr, tPoseLib_PreviewData::redraw, RNA_int_set(), tPoseLib_PreviewData::search_cursor, tPoseLib_PreviewData::searchstr, tPoseLib_PreviewData::state, TIP_, and WM_event_add_notifier().
Referenced by poselib_preview_exec(), poselib_preview_invoke(), and poselib_preview_modal().
|
static |
Definition at line 1748 of file pose_lib.c.
References C, and poselib_preview_exit().
Referenced by POSELIB_OT_browse_interactive().
|
static |
Definition at line 1681 of file pose_lib.c.
References tPoseLib_PreviewData::act, action_set_activemarker(), tPoseLib_PreviewData::area, BLI_findindex(), BLI_freelistN(), C, wmOperator::customdata, DEG_id_tag_update(), ED_area_status_text(), ED_workspace_status_text(), ID_RECALC_GEOMETRY, IS_AUTOKEY_MODE, tPoseLib_PreviewData::marker, MEM_freeN, NC_OBJECT, ND_POSE, NORMAL, NULL, tPoseLib_PreviewData::ob, PL_PREVIEW_CANCEL, PL_PREVIEW_CONFIRM, tPoseLib_PreviewData::pose, POSE_DO_UNLOCK, poselib_backup_free_data(), poselib_backup_restore(), poselib_keytag_pose(), scene, tPoseLib_PreviewData::scene, tPoseLib_PreviewData::searchp, tPoseLib_PreviewData::state, and WM_event_add_notifier().
Referenced by poselib_preview_exec(), poselib_preview_exit(), and poselib_preview_invoke().
|
static |
Definition at line 1800 of file pose_lib.c.
References C, wmOperator::customdata, if(), OPERATOR_CANCELLED, PL_PREVIEW_CONFIRM, PL_PREVIEW_ERROR, PL_PREVIEW_RUNONCE, poselib_preview_apply(), poselib_preview_cleanup(), poselib_preview_exit(), poselib_preview_init_data(), and tPoseLib_PreviewData::state.
Referenced by POSELIB_OT_apply_pose(), and POSELIB_OT_browse_interactive().
|
static |
Definition at line 1733 of file pose_lib.c.
References C, wmOperator::customdata, ELEM, OPERATOR_CANCELLED, OPERATOR_FINISHED, PL_PREVIEW_CANCEL, PL_PREVIEW_ERROR, poselib_preview_cleanup(), and tPoseLib_PreviewData::state.
Referenced by poselib_preview_cancel(), poselib_preview_exec(), and poselib_preview_modal().
|
static |
Definition at line 1212 of file pose_lib.c.
References tPoseLib_PreviewData::act, BLI_addtail(), BLI_freelistN(), BLI_listbase_is_empty(), BLI_strcasestr(), LinkData::data, ListBase::first, ListBase::last, tPoseLib_PreviewData::marker, bAction::markers, MEM_callocN, TimeMarker::name, LinkData::next, TimeMarker::next, next, NULL, LinkData::prev, TimeMarker::prev, tPoseLib_PreviewData::searchold, tPoseLib_PreviewData::searchp, tPoseLib_PreviewData::searchstr, and STREQ.
Referenced by poselib_preview_handle_event(), and poselib_preview_handle_search().
|
static |
Definition at line 1377 of file pose_lib.c.
References tPoseLib_PreviewData::act, bAction::active_marker, BLI_listbase_count(), BLI_strncpy(), wmOperator::customdata, ELEM, EVT_DOWNARROWKEY, EVT_ENDKEY, EVT_ESCKEY, EVT_HOMEKEY, EVT_LEFTARROWKEY, EVT_PAD0, EVT_PAD1, EVT_PAD2, EVT_PAD3, EVT_PAD4, EVT_PAD5, EVT_PAD6, EVT_PAD7, EVT_PAD8, EVT_PAD9, EVT_PADENTER, EVT_PADMINUS, EVT_PADPLUSKEY, EVT_PAGEDOWNKEY, EVT_PAGEUPKEY, EVT_RETKEY, EVT_RIGHTARROWKEY, EVT_SPACEKEY, EVT_TABKEY, EVT_UPARROWKEY, ListBase::first, tPoseLib_PreviewData::flag, KM_NOTHING, KM_PRESS, ListBase::last, LEFTMOUSE, tPoseLib_PreviewData::marker, bAction::markers, MIDDLEMOUSE, MOUSEMOVE, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, PL_PREVIEW_CANCEL, PL_PREVIEW_CONFIRM, PL_PREVIEW_REDRAWALL, PL_PREVIEW_REDRAWHEADER, PL_PREVIEW_SHOWORIGINAL, poselib_preview_get_next(), poselib_preview_handle_search(), tPoseLib_PreviewData::redraw, ret, RIGHTMOUSE, tPoseLib_PreviewData::search_cursor, tPoseLib_PreviewData::searchold, tPoseLib_PreviewData::searchstr, tPoseLib_PreviewData::state, wmEvent::type, wmEvent::val, WHEELDOWNMOUSE, WHEELUPMOUSE, WM_event_utf8_to_ascii(), and WM_key_event_string().
Referenced by poselib_preview_modal().
|
static |
Definition at line 1312 of file pose_lib.c.
References EVT_BACKSPACEKEY, EVT_DELKEY, len, PL_PREVIEW_REDRAWALL, poselib_preview_get_next(), tPoseLib_PreviewData::redraw, tPoseLib_PreviewData::search_cursor, and tPoseLib_PreviewData::searchstr.
Referenced by poselib_preview_handle_event().
|
static |
Definition at line 1604 of file pose_lib.c.
References tPoseLib_PreviewData::act, tPoseLib_PreviewData::area, tPoseLib_PreviewData::arm, BKE_report(), BLI_findlink(), C, CTX_data_scene(), CTX_wm_area(), wmOperator::customdata, Object::data, ELEM, ListBase::first, tPoseLib_PreviewData::flag, bPose::flag, get_poselib_object(), tPoseLib_PreviewData::headerstr, Object::id, tPoseLib_PreviewData::marker, bAction::markers, MEM_callocN, NULL, tPoseLib_PreviewData::ob, PL_PREVIEW_ERROR, PL_PREVIEW_FIRSTTIME, PL_PREVIEW_REDRAWALL, PL_PREVIEW_RUNNING, PL_PREVIEW_SHOWORIGINAL, tPoseLib_PreviewData::pose, Object::pose, POSE_DO_UNLOCK, POSE_LOCKED, Object::poselib, poselib_backup_posecopy(), poselib_get_active_pose(), wmOperator::ptr, tPoseLib_PreviewData::redraw, wmOperator::reports, RNA_id_pointer_create(), RNA_int_get(), tPoseLib_PreviewData::rna_ptr, RPT_ERROR, RPT_WARNING, tPoseLib_PreviewData::scene, tPoseLib_PreviewData::search_cursor, tPoseLib_PreviewData::searchold, tPoseLib_PreviewData::searchstr, and tPoseLib_PreviewData::state.
Referenced by poselib_preview_exec(), and poselib_preview_invoke().
|
static |
Definition at line 1776 of file pose_lib.c.
References C, wmOperator::customdata, if(), OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, PL_PREVIEW_ERROR, poselib_preview_apply(), poselib_preview_cleanup(), poselib_preview_init_data(), tPoseLib_PreviewData::state, and WM_event_add_modal_handler().
Referenced by POSELIB_OT_browse_interactive().
|
static |
Definition at line 1754 of file pose_lib.c.
References C, wmOperator::customdata, PL_PREVIEW_RUNNING, poselib_preview_apply(), poselib_preview_exit(), poselib_preview_handle_event(), tPoseLib_PreviewData::redraw, ret, and tPoseLib_PreviewData::state.
Referenced by POSELIB_OT_browse_interactive().
|
static |
Definition at line 580 of file pose_lib.c.
References bAction::active_marker, BKE_fcurve_delete_key(), BKE_fcurve_handles_recalc(), BKE_report(), BKE_reportf(), BLI_findlink(), BLI_freelinkN(), C, bAction::curves, DEG_id_tag_update(), ListBase::first, get_poselib_object(), bAction::id, ID_RECALC_COPY_ON_WRITE, if(), IS_EQF, bAction::markers, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::poselib, wmOperator::ptr, wmOperator::reports, RNA_property_enum_get(), RNA_property_is_set(), RNA_struct_find_property(), RPT_ERROR, BezTriple::vec, and WM_event_add_notifier().
Referenced by POSELIB_OT_pose_remove().
|
static |
Definition at line 697 of file pose_lib.c.
References BKE_object_pose_armature_get(), BKE_report(), BLI_findlink(), BLI_strncpy(), BLI_uniquename(), C, CTX_data_active_object(), DATA_, if(), bAction::markers, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::poselib, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_string_get(), RPT_ERROR, and WM_event_add_notifier().
Referenced by POSELIB_OT_pose_rename().
|
static |
Definition at line 669 of file pose_lib.c.
References bAction::active_marker, BKE_report(), BLI_findlink(), C, get_poselib_object(), if(), bAction::markers, NULL, OPERATOR_CANCELLED, Object::poselib, wmOperator::ptr, wmOperator::reports, RNA_enum_set(), RNA_string_set(), RPT_ERROR, and WM_operator_props_popup_confirm().
Referenced by POSELIB_OT_pose_rename().
|
static |
Definition at line 293 of file pose_lib.c.
References action_to_keylist(), BKE_report(), BLI_addtail(), BLI_freelinkN(), BLI_snprintf(), C, ED_keylist_create(), ED_keylist_free(), ED_keylist_listbase(), ListBase::first, get_poselib_object(), if(), IS_EQ, LISTBASE_FOREACH, bAction::markers, MEM_callocN, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::poselib, wmOperator::reports, RPT_WARNING, and WM_event_add_notifier().
Referenced by POSELIB_OT_action_sanitize().
|
static |
Definition at line 547 of file pose_lib.c.
References C, get_poselib_object(), NULL, and Object::poselib.
Referenced by POSELIB_OT_pose_move(), POSELIB_OT_pose_remove(), and POSELIB_OT_pose_rename().
|
static |
Definition at line 251 of file pose_lib.c.
References C, ELEM, get_poselib_object(), bAction::id, id_us_min(), NC_OBJECT, ND_POSE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::poselib, and WM_event_add_notifier().
Referenced by POSELIB_OT_unlink().
Definition at line 199 of file pose_lib.c.
References ELEM, NULL, Object::pose, Object::poselib, and poselib_init_new().
Referenced by poselib_add_exec().