|
Blender V4.3
|
#include <cmath>#include <cstdio>#include <cstring>#include "DNA_anim_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "MEM_guardedalloc.h"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "BKE_context.hh"#include "BKE_fcurve.hh"#include "BKE_lib_id.hh"#include "BKE_main.hh"#include "BKE_nla.hh"#include "BKE_report.hh"#include "ED_anim_api.hh"#include "ED_keyframes_edit.hh"#include "ED_markers.hh"#include "ED_screen.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "RNA_prototypes.hh"#include "UI_interface_icons.hh"#include "WM_api.hh"#include "WM_types.hh"#include "DEG_depsgraph_build.hh"#include "UI_view2d.hh"#include "ANIM_action.hh"#include "ANIM_action_legacy.hh"#include "nla_intern.hh"#include "nla_private.h"Go to the source code of this file.
Functions | |
Public Utilities | |
| void | ED_nla_postop_refresh (bAnimContext *ac) |
Enable Tweak-Mode Operator | |
| static int | nlaedit_enable_tweakmode_exec (bContext *C, wmOperator *op) |
| void | NLA_OT_tweakmode_enter (wmOperatorType *ot) |
Disable Tweak-Mode Operator | |
| bool | nlaedit_disable_tweakmode (bAnimContext *ac, bool do_solo) |
| static int | nlaedit_disable_tweakmode_exec (bContext *C, wmOperator *op) |
| void | NLA_OT_tweakmode_exit (wmOperatorType *ot) |
Calculate NLA Strip Range | |
| static void | get_nlastrip_extents (bAnimContext *ac, float *min, float *max, const bool only_sel) |
Automatic Preview-Range Operator | |
| static int | nlaedit_previewrange_exec (bContext *C, wmOperator *) |
| void | NLA_OT_previewrange_set (wmOperatorType *ot) |
View-All Operator | |
| static bool | nla_tracks_get_selected_extents (bAnimContext *ac, float *r_min, float *r_max) |
| static int | nlaedit_viewall (bContext *C, const bool only_sel) |
| static int | nlaedit_viewall_exec (bContext *C, wmOperator *) |
| static int | nlaedit_viewsel_exec (bContext *C, wmOperator *) |
| void | NLA_OT_view_all (wmOperatorType *ot) |
| void | NLA_OT_view_selected (wmOperatorType *ot) |
View-Frame Operator | |
| static int | nlaedit_viewframe_exec (bContext *C, wmOperator *op) |
| void | NLA_OT_view_frame (wmOperatorType *ot) |
Add Action-Clip Operator | |
Add a new Action-Clip strip to the active track (or the active block if no space in the track). | |
| static int | nlaedit_get_editable_tracks (bAnimContext *ac, ListBase *anim_data) |
| static int | nlaedit_add_actionclip_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | nlaedit_add_actionclip_exec (bContext *C, wmOperator *op) |
| void | NLA_OT_actionclip_add (wmOperatorType *ot) |
Add Transition Operator | |
Add a new transition strip between selected strips. | |
| static int | nlaedit_add_transition_exec (bContext *C, wmOperator *op) |
| void | NLA_OT_transition_add (wmOperatorType *ot) |
Add Sound Clip Operator | |
| static int | nlaedit_add_sound_exec (bContext *C, wmOperator *) |
| void | NLA_OT_soundclip_add (wmOperatorType *ot) |
Add Meta-Strip Operator | |
Add new meta-strips incorporating the selected strips. | |
| static int | nlaedit_add_meta_exec (bContext *C, wmOperator *) |
| void | NLA_OT_meta_add (wmOperatorType *ot) |
Remove Meta-Strip Operator | |
Separate out the strips held by the selected meta-strips. | |
| static int | nlaedit_remove_meta_exec (bContext *C, wmOperator *) |
| void | NLA_OT_meta_remove (wmOperatorType *ot) |
Duplicate Strips Operator | |
Duplicates the selected NLA-Strips, putting them on new tracks above the one the originals were housed in. | |
| static int | nlaedit_duplicate_exec (bContext *C, wmOperator *op) |
| static int | nlaedit_duplicate_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| void | NLA_OT_duplicate (wmOperatorType *ot) |
Delete Strips Operator | |
Deletes the selected NLA-Strips. | |
| static int | nlaedit_delete_exec (bContext *C, wmOperator *) |
| void | NLA_OT_delete (wmOperatorType *ot) |
Split Strips Operator | |
Splits the selected NLA-Strips into two strips at the midpoint of the strip. TODO's?
| |
| static void | nlaedit_split_strip_actclip (Main *bmain, AnimData *adt, NlaTrack *nlt, NlaStrip *strip, float cfra) |
| static void | nlaedit_split_strip_meta (NlaTrack *nlt, NlaStrip *strip) |
| static int | nlaedit_split_exec (bContext *C, wmOperator *) |
| void | NLA_OT_split (wmOperatorType *ot) |
Toggle Muting Operator | |
Toggles whether strips are muted or not. | |
| static int | nlaedit_toggle_mute_exec (bContext *C, wmOperator *) |
| void | NLA_OT_mute_toggle (wmOperatorType *ot) |
Swap Strips Operator | |
Tries to exchange strips within their owner tracks. | |
| static int | nlaedit_swap_exec (bContext *C, wmOperator *op) |
| void | NLA_OT_swap (wmOperatorType *ot) |
Move Strips Up Operator | |
Tries to move the selected strips into the track above if possible. | |
| static int | nlaedit_move_up_exec (bContext *C, wmOperator *) |
| void | NLA_OT_move_up (wmOperatorType *ot) |
Move Strips Down Operator | |
Tries to move the selected strips into the track above if possible. | |
| static int | nlaedit_move_down_exec (bContext *C, wmOperator *) |
| void | NLA_OT_move_down (wmOperatorType *ot) |
Sync Action Length Operator | |
Recalculate the extents of the action ranges used for the selected strips. | |
| static int | nlaedit_sync_actlen_exec (bContext *C, wmOperator *op) |
| void | NLA_OT_action_sync_length (wmOperatorType *ot) |
Make Single User | |
Ensure that each strip has its own action. | |
| static int | nlaedit_make_single_user_exec (bContext *C, wmOperator *) |
| static int | nlaedit_make_single_user_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| void | NLA_OT_make_single_user (wmOperatorType *ot) |
Apply Scale Operator | |
Reset the scaling of the selected strips to 1.0f. | |
| static short | bezt_apply_nlamapping (KeyframeEditData *ked, BezTriple *bezt) |
| static int | nlaedit_apply_scale_exec (bContext *C, wmOperator *) |
| void | NLA_OT_apply_scale (wmOperatorType *ot) |
Clear Scale Operator | |
Reset the scaling of the selected strips to 1.0f. | |
| static int | nlaedit_clear_scale_exec (bContext *C, wmOperator *) |
| void | NLA_OT_clear_scale (wmOperatorType *ot) |
Add F-Modifier Operator | |
| static const EnumPropertyItem * | nla_fmodifier_itemf (bContext *C, PointerRNA *, PropertyRNA *, bool *r_free) |
| static int | nla_fmodifier_add_exec (bContext *C, wmOperator *op) |
| void | NLA_OT_fmodifier_add (wmOperatorType *ot) |
Copy F-Modifiers Operator | |
| static int | nla_fmodifier_copy_exec (bContext *C, wmOperator *op) |
| void | NLA_OT_fmodifier_copy (wmOperatorType *ot) |
Paste F-Modifiers Operator | |
| static int | nla_fmodifier_paste_exec (bContext *C, wmOperator *op) |
| void | NLA_OT_fmodifier_paste (wmOperatorType *ot) |
Snap Strips Operator | |
Moves the start-point of the selected strips to the specified places. | |
| static const EnumPropertyItem | prop_nlaedit_snap_types [] |
| static int | nlaedit_snap_exec (bContext *C, wmOperator *op) |
| void | NLA_OT_snap (wmOperatorType *ot) |
|
static |
Definition at line 2150 of file nla_edit.cc.
References KeyframeEditData::data, nlastrip_get_frame(), NLATIME_CONVERT_MAP, and BezTriple::vec.
Referenced by nlaedit_apply_scale_exec().
| void ED_nla_postop_refresh | ( | bAnimContext * | ac | ) |
Perform validation & auto-blending/extend refreshes after some operations
space_nla/nla_edit.cc, not in animation/. Definition at line 59 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMFILTER_ANIMDATA, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, BKE_nla_validate_state(), bAnimContext::data, bAnimContext::datatype, and LISTBASE_FOREACH.
Referenced by nlaedit_add_actionclip_exec(), nlaedit_add_sound_exec(), nlaedit_add_transition_exec(), nlaedit_clear_scale_exec(), nlaedit_delete_exec(), nlaedit_duplicate_exec(), nlaedit_move_down_exec(), nlaedit_move_up_exec(), nlaedit_snap_exec(), nlaedit_split_exec(), nlaedit_swap_exec(), and special_aftertrans_update__nla().
|
static |
Definition at line 318 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, bAnimContext::data, bAnimContext::datatype, RenderData::efra, ListBase::first, float, LISTBASE_FOREACH, min, NLASTRIP_FLAG_SELECT, Scene::r, bAnimContext::scene, RenderData::sfra, and NlaTrack::strips.
Referenced by nlaedit_previewrange_exec(), and nlaedit_viewall().
|
static |
Definition at line 2554 of file nla_edit.cc.
References add_fmodifier(), ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, BKE_nlatrack_is_nonlocal_in_liboverride(), BKE_reportf(), bAnimContext::data, bAnimContext::datatype, LISTBASE_FOREACH, NA_EDITED, NlaTrack::name, NC_ANIMATION, ND_NLA, NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_SELECT, NLASTRIP_TYPE_SOUND, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RPT_ERROR, set_active_fmodifier(), NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_fmodifier_add().
|
static |
Definition at line 2667 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_fmodifiers_copy_to_buf(), ANIM_fmodifiers_copybuf_free(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, BKE_report(), bAnimContext::data, bAnimContext::datatype, LISTBASE_FOREACH, NLASTRIP_FLAG_ACTIVE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and NlaTrack::strips.
Referenced by NLA_OT_fmodifier_copy().
|
static |
Definition at line 2516 of file nla_edit.cc.
References FMODIFIER_NUM_TYPES, FMODIFIER_TYPE_CYCLES, get_fmodifier_typeinfo(), rna_enum_fmodifier_type_items, RNA_enum_from_value(), RNA_enum_item_add(), RNA_enum_item_end(), and FModifierTypeInfo::type.
Referenced by NLA_OT_fmodifier_add().
|
static |
Definition at line 2744 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_animdata_update(), ANIM_fmodifiers_paste_from_buf(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, BKE_nlatrack_is_nonlocal_in_liboverride(), BKE_report(), bAnimContext::data, bAnimContext::datatype, LISTBASE_FOREACH, NA_EDITED, NC_ANIMATION, ND_NLA, NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_fmodifier_paste().
| void NLA_OT_action_sync_length | ( | wmOperatorType * | ot | ) |
Definition at line 2013 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_sync_actlen_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by nla_operatortypes().
| void NLA_OT_actionclip_add | ( | wmOperatorType * | ot | ) |
Definition at line 746 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, nlaedit_add_actionclip_exec(), nlaedit_add_actionclip_invoke(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_ENUM_NO_TRANSLATE, RNA_action_itemf(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), rna_enum_dummy_NULL_items, and wmOperatorType::srna.
Referenced by nla_operatortypes().
| void NLA_OT_apply_scale | ( | wmOperatorType * | ot | ) |
Definition at line 2260 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_apply_scale_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
| void NLA_OT_clear_scale | ( | wmOperatorType * | ot | ) |
Definition at line 2326 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_clear_scale_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
| void NLA_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 1326 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_delete_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
| void NLA_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 1228 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, nlaedit_duplicate_exec(), nlaedit_duplicate_invoke(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by nla_operatortypes().
| void NLA_OT_fmodifier_add | ( | wmOperatorType * | ot | ) |
Definition at line 2631 of file nla_edit.cc.
References BLT_I18NCONTEXT_ID_ACTION, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, nla_fmodifier_add_exec(), nla_fmodifier_itemf(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_translation_context(), rna_enum_fmodifier_type_items, wmOperatorType::srna, and WM_menu_invoke().
Referenced by nla_operatortypes().
| void NLA_OT_fmodifier_copy | ( | wmOperatorType * | ot | ) |
Definition at line 2714 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nla_fmodifier_copy_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by nla_operatortypes().
| void NLA_OT_fmodifier_paste | ( | wmOperatorType * | ot | ) |
Definition at line 2807 of file nla_edit.cc.
References BLT_I18NCONTEXT_ID_ACTION, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nla_fmodifier_paste_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), RNA_def_property_translation_context(), and wmOperatorType::srna.
Referenced by nla_operatortypes().
| void NLA_OT_make_single_user | ( | wmOperatorType * | ot | ) |
Definition at line 2124 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, nlaedit_make_single_user_exec(), nlaedit_make_single_user_invoke(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_confirm_or_exec().
Referenced by nla_operatortypes().
| void NLA_OT_meta_add | ( | wmOperatorType * | ot | ) |
Definition at line 1051 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_add_meta_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
| void NLA_OT_meta_remove | ( | wmOperatorType * | ot | ) |
Definition at line 1116 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_remove_meta_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
| void NLA_OT_move_down | ( | wmOperatorType * | ot | ) |
Definition at line 1929 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_move_down_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
| void NLA_OT_move_up | ( | wmOperatorType * | ot | ) |
Definition at line 1838 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_move_up_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
| void NLA_OT_mute_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 1558 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_toggle_mute_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
| void NLA_OT_previewrange_set | ( | wmOperatorType * | ot | ) |
Definition at line 403 of file nla_edit.cc.
References wmOperatorType::description, ED_operator_nla_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_previewrange_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
| void NLA_OT_snap | ( | wmOperatorType * | ot | ) |
Definition at line 2489 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, nlaedit_snap_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_nlaedit_snap_types, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by nla_operatortypes().
| void NLA_OT_soundclip_add | ( | wmOperatorType * | ot | ) |
Definition at line 976 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_add_sound_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
| void NLA_OT_split | ( | wmOperatorType * | ot | ) |
Definition at line 1489 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_split_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
| void NLA_OT_swap | ( | wmOperatorType * | ot | ) |
Definition at line 1747 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_swap_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
| void NLA_OT_transition_add | ( | wmOperatorType * | ot | ) |
Definition at line 886 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_add_transition_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
| void NLA_OT_tweakmode_enter | ( | wmOperatorType * | ot | ) |
Definition at line 173 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_enable_tweakmode_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by nla_operatortypes().
| void NLA_OT_tweakmode_exit | ( | wmOperatorType * | ot | ) |
Definition at line 283 of file nla_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_disable_tweakmode_exec(), nlaop_poll_tweakmode_on(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by nla_operatortypes().
| void NLA_OT_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 542 of file nla_edit.cc.
References wmOperatorType::description, ED_operator_nla_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_viewall_exec(), ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
| void NLA_OT_view_frame | ( | wmOperatorType * | ot | ) |
Definition at line 585 of file nla_edit.cc.
References wmOperatorType::description, ED_operator_nla_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_viewframe_exec(), ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
| void NLA_OT_view_selected | ( | wmOperatorType * | ot | ) |
Definition at line 557 of file nla_edit.cc.
References wmOperatorType::description, ED_operator_nla_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_viewsel_exec(), ot, and wmOperatorType::poll.
Referenced by nla_operatortypes().
|
static |
Find the extents of the active track
| r_min | Bottom y-extent of track. |
| r_max | Top y-extent of track. |
Definition at line 431 of file nla_edit.cc.
References ACHANNEL_ROLE_CHANNEL, ACHANNEL_SETTING_SELECT, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_channel_get_typeinfo(), ANIM_channel_setting_get(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, bAnimChannelType::channel_role, bAnimContext::data, bAnimContext::datatype, ListBase::first, bAnimChannelType::has_setting, NLATRACK_FIRST_TOP, NLATRACK_HEIGHT, NLATRACK_STEP, and bAnimContext::sl.
Referenced by nlaedit_viewall().
|
static |
Definition at line 642 of file nla_edit.cc.
References blender::animrig::legacy::action_treat_as_legacy(), Main::actions, ANIM_animdata_freelist(), ANIM_animdata_get_context(), BKE_nlastrip_new(), BKE_nlastrip_validate_name(), BKE_nlatrack_add_strip(), BKE_nlatrack_new_tail(), BKE_nlatrack_set_active(), BKE_report(), BKE_reportf(), BLI_assert, BLI_assert_msg, BLI_findlink(), bAnimContext::bmain, CTX_data_main(), DEG_relations_tag_update(), ED_nla_postop_refresh(), NlaStrip::end, float, GS, bAction::id, ID_AC, ID_IS_OVERRIDE_LIBRARY, bAction::idroot, LISTBASE_FOREACH, NA_ADDED, ID::name, NC_ANIMATION, ND_NLA, AnimData::nla_tracks, nlaedit_add_tracks_empty(), nlaedit_get_editable_tracks(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, RPT_WARNING, bAnimContext::scene, NlaStrip::start, and WM_event_add_notifier().
Referenced by NLA_OT_actionclip_add().
|
static |
Definition at line 619 of file nla_edit.cc.
References ANIM_animdata_get_context(), BKE_report(), nlaedit_get_editable_tracks(), OPERATOR_CANCELLED, wmOperator::reports, RPT_ERROR, and WM_enum_search_invoke().
Referenced by NLA_OT_actionclip_add().
|
static |
Definition at line 1000 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, BKE_nlastrip_validate_name(), BKE_nlastrips_make_metas(), BKE_nlatrack_is_nonlocal_in_liboverride(), bAnimContext::data, bAnimContext::datatype, LISTBASE_FOREACH, NA_ADDED, NC_ANIMATION, ND_NLA, NLASTRIP_FLAG_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_meta_add().
|
static |
Definition at line 907 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_SEL, BKE_nla_add_soundstrip(), BKE_nlastrip_validate_name(), BKE_nlatrack_add_strip(), BKE_nlatrack_new_tail(), BKE_nlatrack_set_active(), RenderData::cfra, CTX_data_main(), bAnimContext::data, Object::data, bAnimContext::datatype, ED_nla_postop_refresh(), NlaStrip::end, GS, ID_IS_OVERRIDE_LIBRARY, ID_OB, LISTBASE_FOREACH, NA_ADDED, NC_ANIMATION, ND_NLA, AnimData::nla_tracks, OB_SPEAKER, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, bAnimContext::scene, NlaStrip::start, Object::type, and WM_event_add_notifier().
Referenced by NLA_OT_soundclip_add().
|
static |
Definition at line 780 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, BKE_nlastrip_validate_name(), BKE_report(), BLI_insertlinkafter(), bAnimContext::data, bAnimContext::datatype, ED_nla_postop_refresh(), ELEM, NlaStrip::end, ListBase::first, NlaStrip::flag, IS_EQF, ListBase::last, LISTBASE_FOREACH, NA_ADDED, NC_ANIMATION, ND_NLA, NlaStrip::next, NLASTRIP_FLAG_AUTO_BLENDS, NLASTRIP_FLAG_SELECT, NLASTRIP_TYPE_SOUND, NLASTRIP_TYPE_TRANSITION, OPERATOR_CANCELLED, OPERATOR_FINISHED, NlaStrip::repeat, wmOperator::reports, RPT_ERROR, NlaStrip::scale, NlaStrip::start, NlaTrack::strips, NlaStrip::type, and WM_event_add_notifier().
Referenced by NLA_OT_transition_add().
|
static |
Definition at line 2164 of file nla_edit.cc.
References ACT_FRAME_RANGE, bAnimContext::ads, ALE_ACT, ANIM_animchanneldata_keyframes_loop(), ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, bezt_apply_nlamapping(), BKE_fcurve_handles_recalc(), BKE_id_copy(), bAnimContext::bmain, CTX_data_main(), bAnimContext::data, KeyframeEditData::data, bAnimContext::datatype, DEG_relations_tag_update(), ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, id_us_min(), LISTBASE_FOREACH, NA_EDITED, NC_ANIMATION, ND_NLA, NLASTRIP_FLAG_SELECT, nlastrip_get_frame(), NLASTRIP_TYPE_CLIP, NLATIME_CONVERT_MAP, OPERATOR_CANCELLED, OPERATOR_FINISHED, NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_apply_scale().
|
static |
Definition at line 2283 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, bAnimContext::data, bAnimContext::datatype, ED_nla_postop_refresh(), LISTBASE_FOREACH, NA_EDITED, NC_ANIMATION, ND_NLA, NLASTRIP_FLAG_SELECT, NLASTRIP_TYPE_CLIP, OPERATOR_CANCELLED, OPERATOR_FINISHED, RNA_float_set(), RNA_pointer_create(), NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_clear_scale().
|
static |
Definition at line 1259 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, BKE_nla_tweakmode_exit(), BKE_nlastrip_remove_and_free(), BKE_nlatrack_is_nonlocal_in_liboverride(), bAnimContext::bmain, bAnimContext::data, bAnimContext::datatype, DEG_relations_tag_update(), ED_nla_postop_refresh(), ListBase::first, NlaStrip::flag, LISTBASE_FOREACH, NA_REMOVED, NC_ANIMATION, ND_NLA, NlaStrip::next, NLASTRIP_FLAG_SELECT, NLASTRIP_TYPE_TRANSITION, OPERATOR_CANCELLED, OPERATOR_FINISHED, NlaStrip::prev, NlaTrack::strips, NlaStrip::type, and WM_event_add_notifier().
Referenced by NLA_OT_delete().
| bool nlaedit_disable_tweakmode | ( | bAnimContext * | ac, |
| bool | do_solo ) |
NLA Editor internal API function for exiting tweak-mode.
Definition at line 213 of file nla_edit.cc.
References ADT_NLA_EDIT_ON, ADT_NLA_SOLO_TRACK, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMFILTER_ANIMDATA, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, BKE_nla_tweakmode_exit(), BKE_nlatrack_solo_toggle(), BKE_report(), BLI_listbase_is_empty(), bAnimContext::data, bAnimContext::datatype, AnimData::flag, Scene::flag, LISTBASE_FOREACH, NC_ANIMATION, ND_NLA_ACTCHANGE, bAnimContext::reports, RPT_ERROR, bAnimContext::scene, and WM_main_add_notifier().
Referenced by mouse_nla_tracks(), and nlaedit_disable_tweakmode_exec().
|
static |
Definition at line 261 of file nla_edit.cc.
References ANIM_animdata_get_context(), nlaedit_disable_tweakmode(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, and RNA_boolean_get().
Referenced by NLA_OT_tweakmode_exit().
|
static |
Definition at line 1140 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, BKE_nlastrip_copy(), BKE_nlastrip_validate_name(), BKE_nlatrack_add_strip(), BKE_nlatrack_new_after(), BKE_nlatrack_set_active(), bAnimContext::bmain, bAnimContext::data, bAnimContext::datatype, DEG_relations_tag_update(), ED_nla_postop_refresh(), ListBase::first, NlaStrip::flag, ID_IS_OVERRIDE_LIBRARY, LISTBASE_FOREACH_BACKWARD, NA_ADDED, NC_ANIMATION, ND_NLA, next, NlaStrip::next, NlaTrack::next, AnimData::nla_tracks, NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_duplicate(), and nlaedit_duplicate_invoke().
|
static |
Definition at line 1221 of file nla_edit.cc.
References nlaedit_duplicate_exec(), and OPERATOR_FINISHED.
Referenced by NLA_OT_duplicate().
|
static |
Definition at line 95 of file nla_edit.cc.
References AnimData::actstrip, ADT_NLA_EVAL_UPPER_TRACKS, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMFILTER_ANIMDATA, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMTYPE_ANIMDATA, BKE_nla_tweakmode_enter(), BKE_nlatrack_find_tweaked(), BKE_nlatrack_solo_toggle(), BKE_report(), BLI_assert, BLI_listbase_is_empty(), bAnimContext::data, bAnimContext::datatype, AnimData::flag, NlaTrack::flag, Scene::flag, LISTBASE_FOREACH, NC_ANIMATION, ND_NLA_ACTCHANGE, NLATRACK_SOLO, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, SCE_NLA_EDIT_ON, bAnimContext::scene, and WM_event_add_notifier().
Referenced by NLA_OT_tweakmode_enter().
|
static |
Definition at line 612 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIMFILTER_ACTIVE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, bAnimContext::data, and bAnimContext::datatype.
Referenced by nlaedit_add_actionclip_exec(), and nlaedit_add_actionclip_invoke().
|
static |
Definition at line 2044 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, BKE_id_copy(), bAnimContext::bmain, CTX_data_main(), bAnimContext::data, bAnimContext::datatype, DEG_relations_tag_update(), ID_REAL_USERS, id_us_min(), LISTBASE_FOREACH_BACKWARD, NA_ADDED, NC_ANIMATION, ND_NLA, NLASTRIP_FLAG_SELECT, NLASTRIP_TYPE_CLIP, OPERATOR_CANCELLED, OPERATOR_FINISHED, NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_make_single_user(), and nlaedit_make_single_user_invoke().
|
static |
Definition at line 2109 of file nla_edit.cc.
References ALERT_ICON_WARNING, IFACE_, nlaedit_make_single_user_exec(), wmOperator::ptr, RNA_boolean_get(), and WM_operator_confirm_ex().
Referenced by NLA_OT_make_single_user().
|
static |
Definition at line 1861 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, BKE_nlatrack_add_strip(), BKE_nlatrack_has_space(), BKE_nlatrack_is_nonlocal_in_liboverride(), BKE_nlatrack_remove_strip(), bAnimContext::data, bAnimContext::datatype, ED_nla_postop_refresh(), ListBase::first, ID_IS_OVERRIDE_LIBRARY, LISTBASE_FOREACH, NA_EDITED, NC_ANIMATION, ND_NLA, ND_NLA_ORDER, NlaStrip::next, NLASTRIP_FLAG_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, NlaTrack::prev, NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_move_down().
|
static |
Definition at line 1770 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, BKE_nlatrack_add_strip(), BKE_nlatrack_has_space(), BKE_nlatrack_is_nonlocal_in_liboverride(), BKE_nlatrack_remove_strip(), bAnimContext::data, bAnimContext::datatype, ED_nla_postop_refresh(), ListBase::first, ID_IS_OVERRIDE_LIBRARY, LISTBASE_FOREACH_BACKWARD, NA_EDITED, NC_ANIMATION, ND_NLA, ND_NLA_ORDER, NlaStrip::next, NlaTrack::next, NLASTRIP_FLAG_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_move_up().
|
static |
Definition at line 373 of file nla_edit.cc.
References ANIM_animdata_get_context(), get_nlastrip_extents(), max, min, NC_SCENE, ND_FRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, round_fl_to_int(), bAnimContext::scene, scene, SCER_PRV_RANGE, and WM_event_add_notifier().
Referenced by NLA_OT_previewrange_set().
|
static |
Definition at line 1074 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, BKE_nlastrips_clear_metas(), BKE_nlatrack_is_nonlocal_in_liboverride(), bAnimContext::data, bAnimContext::datatype, LISTBASE_FOREACH, NA_REMOVED, NC_ANIMATION, ND_NLA, OPERATOR_CANCELLED, OPERATOR_FINISHED, NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_meta_remove().
|
static |
Definition at line 2360 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, BKE_nlameta_flush_transforms(), BKE_nlastrips_clear_metas(), BKE_nlastrips_make_metas(), BKE_nlatrack_add_strip(), BKE_nlatrack_new_after(), BKE_nlatrack_set_active(), BLI_addtail(), BLI_remlink(), bAnimContext::data, bAnimContext::datatype, ED_markers_find_nearest_marker_time(), ED_nla_postop_refresh(), ListBase::first, float, floorf, FPS, ID_IS_OVERRIDE_LIBRARY, LISTBASE_FOREACH_BACKWARD, bAnimContext::markers, NA_ADDED, NA_EDITED, NC_ANIMATION, ND_NLA, NlaStrip::next, AnimData::nla_tracks, NLAEDIT_SNAP_CFRA, NLAEDIT_SNAP_NEAREST_FRAME, NLAEDIT_SNAP_NEAREST_MARKER, NLAEDIT_SNAP_NEAREST_SECOND, NLASTRIP_FLAG_TEMP_META, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), bAnimContext::scene, scene, NlaStrip::start, NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_snap().
|
static |
Definition at line 1427 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, BKE_nlatrack_is_nonlocal_in_liboverride(), bAnimContext::bmain, RenderData::cfra, bAnimContext::data, bAnimContext::datatype, ED_nla_postop_refresh(), ListBase::first, NlaStrip::flag, LISTBASE_FOREACH, NA_ADDED, NC_ANIMATION, ND_NLA, next, NlaStrip::next, nlaedit_split_strip_actclip(), nlaedit_split_strip_meta(), NLASTRIP_FLAG_SELECT, NLASTRIP_TYPE_CLIP, NLASTRIP_TYPE_META, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, bAnimContext::scene, NlaTrack::strips, NlaStrip::type, and WM_event_add_notifier().
Referenced by NLA_OT_split().
|
static |
Definition at line 1354 of file nla_edit.cc.
References NlaStrip::actend, NlaStrip::actstart, BKE_nlastrip_copy(), BKE_nlastrip_validate_name(), BLI_insertlinkafter(), NlaStrip::end, NlaStrip::flag, IS_EQF, len, NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_SYNC_LENGTH, nlastrip_get_frame(), NLATIME_CONVERT_UNMAP, NlaStrip::start, and NlaTrack::strips.
Referenced by nlaedit_split_exec().
Definition at line 1419 of file nla_edit.cc.
References BKE_nlastrips_clear_metastrip(), and NlaTrack::strips.
Referenced by nlaedit_split_exec().
|
static |
Definition at line 1581 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, BKE_nlameta_flush_transforms(), BKE_nlastrips_clear_metas(), BKE_nlastrips_has_space(), BKE_nlastrips_make_metas(), BKE_nlatrack_add_strip(), BKE_nlatrack_is_nonlocal_in_liboverride(), BKE_report(), BKE_reportf(), BLI_listbase_count_is_equal_to(), BLI_listbase_is_empty(), BLI_remlink(), bAnimContext::data, bAnimContext::datatype, ED_nla_postop_refresh(), ListBase::first, NlaStrip::flag, ID_IS_OVERRIDE_LIBRARY, LISTBASE_FOREACH, NA_EDITED, NlaTrack::name, NC_ANIMATION, ND_NLA, ND_NLA_ORDER, NlaStrip::next, NLASTRIP_FLAG_SELECT, NLASTRIP_FLAG_TEMP_META, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_WARNING, NlaStrip::strips, NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_swap().
|
static |
Definition at line 1952 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMFILTER_ACTIVE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, BKE_nlastrip_recalculate_bounds_sync_action(), bAnimContext::data, bAnimContext::datatype, LISTBASE_FOREACH, NA_EDITED, NC_ANIMATION, ND_NLA, NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_SELECT, NLASTRIP_TYPE_CLIP, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_action_sync_length().
|
static |
Definition at line 1514 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, bAnimContext::data, bAnimContext::datatype, NlaTrack::flag, LISTBASE_FOREACH, NA_EDITED, NC_ANIMATION, ND_NLA, NLASTRIP_FLAG_MUTED, NLASTRIP_FLAG_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_mute_toggle().
Definition at line 478 of file nla_edit.cc.
References ANIM_animdata_get_context(), BLI_rctf_size_x(), BLI_rcti_size_y(), CTX_wm_area(), CTX_wm_screen(), View2D::cur, ED_area_tag_redraw(), float, get_nlastrip_extents(), View2D::mask, nla_tracks_get_selected_extents(), OPERATOR_CANCELLED, OPERATOR_FINISHED, bAnimContext::region, UI_view2d_center_get(), UI_view2d_center_set(), UI_view2d_sync(), ARegion::v2d, V2D_LOCK_COPY, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by nlaedit_viewall_exec(), and nlaedit_viewsel_exec().
|
static |
Definition at line 530 of file nla_edit.cc.
References nlaedit_viewall().
Referenced by NLA_OT_view_all().
|
static |
Definition at line 578 of file nla_edit.cc.
References ANIM_center_frame(), OPERATOR_FINISHED, and WM_operator_smooth_viewtx_get().
Referenced by NLA_OT_view_frame().
|
static |
Definition at line 536 of file nla_edit.cc.
References nlaedit_viewall().
Referenced by NLA_OT_view_selected().
|
static |
Definition at line 2350 of file nla_edit.cc.
Referenced by NLA_OT_snap().