Blender
V3.3
|
#include <float.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "DNA_anim_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_key_types.h"
#include "DNA_mask_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "RNA_prototypes.h"
#include "BKE_action.h"
#include "BKE_context.h"
#include "BKE_fcurve.h"
#include "BKE_key.h"
#include "BKE_lib_id.h"
#include "BKE_nla.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "UI_view2d.h"
#include "ED_anim_api.h"
#include "ED_gpencil.h"
#include "ED_keyframes_edit.h"
#include "ED_keyframing.h"
#include "ED_markers.h"
#include "ED_mask.h"
#include "ED_screen.h"
#include "DEG_depsgraph.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "action_intern.h"
Go to the source code of this file.
Definition at line 133 of file action_data.c.
References C, CTX_wm_screen(), CTX_wm_space_data(), bScreen::id, NULL, ptr, RNA_id_pointer_create(), RNA_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), and RNA_struct_find_property().
Referenced by action_layer_next_exec(), action_layer_prev_exec(), action_stash_create_exec(), action_stash_exec(), and ED_animedit_unlink_action().
Definition at line 92 of file action_data.c.
References blender::compositor::area(), BKE_action_add(), BKE_id_copy(), BLI_assert, C, CTX_data_main(), CTX_wm_area(), GS, bAction::id, ID_AC, ID_KE, ID_OB, id_us_min(), bAction::idroot, if(), SpaceAction::mode, ID::name, SACTCONT_SHAPEKEY, SPACE_ACTION, and ID::us.
Referenced by action_new_exec(), and action_stash_create_exec().
Definition at line 707 of file action_data.c.
References NlaStrip::end, ListBase::first, IN_RANGE_INCL, NlaStrip::next, NULL, NlaStrip::prev, and NlaStrip::start.
Referenced by action_layer_next_exec(), and action_layer_prev_exec().
|
static |
Definition at line 815 of file action_data.c.
References actedit_change_action(), AnimData::action, action_layer_get_nlastrip(), action_layer_switch_strip(), AnimData::actstrip, ADT_NLA_EVAL_OFF, ADT_NLA_SOLO_TRACK, BKE_nla_tweakmode_exit(), BKE_nlatrack_find_tweaked(), BKE_report(), BKE_scene_ctime_get(), C, CTX_data_scene(), ED_actedit_animdata_from_context(), NlaTrack::flag, AnimData::flag, NlaTrack::next, NLATRACK_SOLO, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, scene, and NlaTrack::strips.
Referenced by ACTION_OT_layer_next().
Definition at line 779 of file action_data.c.
References ADT_NLA_EDIT_ON, C, ED_actedit_animdata_from_context(), ED_operator_action_active(), NlaTrack::flag, AnimData::flag, if(), ListBase::last, AnimData::nla_tracks, NLATRACK_DISABLED, and NULL.
Referenced by ACTION_OT_layer_next().
|
static |
Definition at line 926 of file action_data.c.
References actedit_change_action(), AnimData::action, action_layer_get_nlastrip(), action_layer_switch_strip(), AnimData::actstrip, BKE_nlatrack_find_tweaked(), BKE_report(), BKE_scene_ctime_get(), C, CTX_data_scene(), ED_actedit_animdata_from_context(), ListBase::last, AnimData::nla_tracks, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, NlaTrack::prev, wmOperator::reports, RPT_ERROR, scene, and NlaTrack::strips.
Referenced by ACTION_OT_layer_prev().
Definition at line 890 of file action_data.c.
References ADT_NLA_EDIT_ON, C, ED_actedit_animdata_from_context(), ED_operator_action_active(), ListBase::first, NlaTrack::flag, AnimData::flag, if(), AnimData::nla_tracks, NLATRACK_DISABLED, and NULL.
Referenced by ACTION_OT_layer_prev().
|
static |
Definition at line 732 of file action_data.c.
References AnimData::actstrip, ADT_NLA_EVAL_OFF, ADT_NLA_SOLO_TRACK, BKE_nla_tweakmode_enter(), BKE_nla_tweakmode_exit(), BLI_assert, NlaStrip::flag, NlaTrack::flag, AnimData::flag, NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_SELECT, NLATRACK_ACTIVE, NLATRACK_SELECTED, and NLATRACK_SOLO.
Referenced by action_layer_next_exec(), and action_layer_prev_exec().
|
static |
Definition at line 200 of file action_data.c.
References SpaceAction::action, AnimData::action, action_create_new(), BKE_nla_action_stash(), BLI_assert, C, PointerRNA::data, ED_actedit_animdata_from_context(), bAction::id, ID_IS_OVERRIDE_LIBRARY, if(), NA_ADDED, ID::name, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_FINISHED, PointerRNA::owner_id, ptr, RNA_id_pointer_create(), RNA_property_pointer_get(), RNA_property_pointer_set(), RNA_property_update(), PointerRNA::type, UI_context_active_but_prop_get_templateID(), and WM_event_add_notifier().
Referenced by ACTION_OT_new().
Definition at line 161 of file action_data.c.
References Key::adt, Object::adt, ADT_NLA_EDIT_ON, BKE_key_from_object(), C, CTX_data_active_object(), CTX_data_scene(), CTX_wm_space_data(), ED_operator_action_active(), ED_operator_nla_active(), AnimData::flag, Scene::flag, SpaceAction::mode, NULL, SACTCONT_ACTION, SACTCONT_SHAPEKEY, SCE_NLA_EDIT_ON, and scene.
Referenced by ACTION_OT_new().
void ACTION_OT_layer_next | ( | wmOperatorType * | ot | ) |
Definition at line 872 of file action_data.c.
References action_layer_next_exec(), action_layer_next_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by action_operatortypes().
void ACTION_OT_layer_prev | ( | wmOperatorType * | ot | ) |
Definition at line 971 of file action_data.c.
References action_layer_prev_exec(), action_layer_prev_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by action_operatortypes().
void ACTION_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 278 of file action_data.c.
References action_new_exec(), action_new_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by action_operatortypes().
void ACTION_OT_push_down | ( | wmOperatorType * | ot | ) |
Definition at line 358 of file action_data.c.
References action_pushdown_exec(), action_pushdown_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by action_operatortypes().
void ACTION_OT_stash | ( | wmOperatorType * | ot | ) |
Definition at line 413 of file action_data.c.
References action_pushdown_poll(), action_stash_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by action_operatortypes().
void ACTION_OT_stash_and_create | ( | wmOperatorType * | ot | ) |
Definition at line 521 of file action_data.c.
References action_stash_create_exec(), action_stash_create_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by action_operatortypes().
void ACTION_OT_unlink | ( | wmOperatorType * | ot | ) |
Definition at line 676 of file action_data.c.
References action_unlink_exec(), action_unlink_invoke(), action_unlink_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by action_operatortypes().
|
static |
Definition at line 321 of file action_data.c.
References SpaceAction::action, AnimData::action, action_has_motion(), BKE_nla_action_pushdown(), BKE_report(), C, CTX_data_main(), CTX_wm_space_data(), DEG_id_tag_update_ex(), ED_actedit_animdata_from_context(), bAction::id, ID_IS_OVERRIDE_LIBRARY, ID_RECALC_ANIMATION, NC_ANIMATION, ND_NLA_ACTCHANGE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_WARNING, and WM_event_add_notifier().
Referenced by ACTION_OT_push_down().
Definition at line 300 of file action_data.c.
References SpaceAction::action, ADT_NLA_EDIT_ON, C, CTX_wm_space_data(), ED_actedit_animdata_from_context(), ED_operator_action_active(), AnimData::flag, and NULL.
Referenced by ACTION_OT_push_down(), and ACTION_OT_stash().
|
static |
Definition at line 473 of file action_data.c.
References actedit_change_action(), SpaceAction::action, AnimData::action, action_create_new(), action_has_motion(), BKE_nla_action_stash(), BKE_report(), C, CTX_wm_space_data(), ED_actedit_animdata_from_context(), ID_IS_OVERRIDE_LIBRARY, NC_ANIMATION, ND_NLA_ACTCHANGE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, RPT_WARNING, and WM_event_add_notifier().
Referenced by ACTION_OT_stash_and_create().
Definition at line 441 of file action_data.c.
References ADT_NLA_EDIT_ON, C, CTX_data_scene(), CTX_wm_space_data(), ED_actedit_animdata_from_context(), ED_operator_action_active(), ELEM, AnimData::flag, Scene::flag, SpaceAction::mode, NULL, SACTCONT_ACTION, SACTCONT_SHAPEKEY, SCE_NLA_EDIT_ON, and scene.
Referenced by ACTION_OT_stash_and_create().
|
static |
Definition at line 375 of file action_data.c.
References actedit_change_action(), SpaceAction::action, AnimData::action, action_has_motion(), BKE_nla_action_stash(), BKE_report(), C, CTX_wm_space_data(), ED_actedit_animdata_from_context(), ID_IS_OVERRIDE_LIBRARY, NC_ANIMATION, ND_NLA_ACTCHANGE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, RPT_WARNING, and WM_event_add_notifier().
Referenced by ACTION_OT_stash().
|
static |
Definition at line 653 of file action_data.c.
References AnimData::action, C, ED_actedit_animdata_from_context(), ED_animedit_unlink_action(), NC_ANIMATION, ND_NLA_ACTCHANGE, NULL, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), and WM_main_add_notifier().
Referenced by ACTION_OT_unlink(), and action_unlink_invoke().
|
static |
Definition at line 668 of file action_data.c.
References action_unlink_exec(), C, KM_SHIFT, wmEvent::modifier, wmOperator::ptr, and RNA_boolean_set().
Referenced by ACTION_OT_unlink().
Definition at line 637 of file action_data.c.
References SpaceAction::action, C, CTX_wm_space_data(), ED_actedit_animdata_from_context(), ED_operator_action_active(), and NULL.
Referenced by ACTION_OT_unlink().
Definition at line 60 of file action_data.c.
References Key::adt, Object::adt, BKE_key_from_object(), C, CTX_data_active_object(), CTX_wm_space_data(), Key::id, Object::id, SpaceAction::mode, NULL, SACTCONT_ACTION, and SACTCONT_SHAPEKEY.
Referenced by action_layer_next_exec(), action_layer_next_poll(), action_layer_prev_exec(), action_layer_prev_poll(), action_new_exec(), action_pushdown_exec(), action_pushdown_poll(), action_stash_create_exec(), action_stash_create_poll(), action_stash_exec(), action_unlink_exec(), and action_unlink_poll().
void ED_animedit_unlink_action | ( | bContext * | C, |
ID * | id, | ||
AnimData * | adt, | ||
bAction * | act, | ||
ReportList * | reports, | ||
bool | force_delete | ||
) |
Definition at line 550 of file action_data.c.
References NlaStrip::act, actedit_change_action(), ADT_NLA_EDIT_ON, blender::compositor::area(), BKE_nla_tweakmode_exit(), BKE_nlastrip_free(), BKE_nlatrack_free(), BKE_reportf(), BLI_assert, C, CTX_data_scene(), CTX_wm_area(), DATA_, ListBase::first, AnimData::flag, Scene::flag, bAction::id, id_fake_user_clear(), NlaTrack::name, ID::name, NlaStrip::next, NlaTrack::next, AnimData::nla_tracks, NULL, PointerRNA_NULL, ptr, RNA_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), RNA_struct_find_property(), RPT_WARNING, SCE_NLA_EDIT_ON, scene, SPACE_ACTION, NlaTrack::strips, and ID::us.
Referenced by action_unlink_exec(), and nla_action_unlink_exec().