Blender
V3.3
|
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "DNA_anim_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "BKE_action.h"
#include "BKE_context.h"
#include "BKE_fcurve.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_nla.h"
#include "BKE_report.h"
#include "BKE_screen.h"
#include "ED_anim_api.h"
#include "ED_keyframes_edit.h"
#include "ED_markers.h"
#include "ED_screen.h"
#include "ED_transform.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 "DEG_depsgraph_build.h"
#include "UI_interface.h"
#include "UI_view2d.h"
#include "nla_intern.h"
#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 *UNUSED(op)) |
void | NLA_OT_previewrange_set (wmOperatorType *ot) |
View-All Operator | |
static bool | nla_channels_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 *UNUSED(op)) |
static int | nlaedit_viewsel_exec (bContext *C, wmOperator *UNUSED(op)) |
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_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 *UNUSED(op)) |
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 *UNUSED(op)) |
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 *UNUSED(op)) |
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 *UNUSED(event)) |
void | NLA_OT_duplicate (wmOperatorType *ot) |
Delete Strips Operator | |
Deletes the selected NLA-Strips. | |
static int | nlaedit_delete_exec (bContext *C, wmOperator *UNUSED(op)) |
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 *UNUSED(op)) |
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 *UNUSED(op)) |
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 *UNUSED(op)) |
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 *UNUSED(op)) |
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 *UNUSED(op)) |
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 *UNUSED(op)) |
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 *UNUSED(op)) |
void | NLA_OT_clear_scale (wmOperatorType *ot) |
Add F-Modifier Operator | |
static const EnumPropertyItem * | nla_fmodifier_itemf (bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), 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 2142 of file nla_edit.c.
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
Definition at line 59 of file nla_edit.c.
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, bAnimListElem::data, bAnimContext::datatype, filter(), ListBase::first, bAnimListElem::next, NULL, and bAnimListElem::update.
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 314 of file nla_edit.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, RenderData::efra, filter(), ListBase::first, float(), max, max_ff(), min, min_ff(), bAnimListElem::next, NLASTRIP_FLAG_SELECT, NULL, Scene::r, bAnimContext::scene, RenderData::sfra, and NlaTrack::strips.
Referenced by nlaedit_previewrange_exec(), and nlaedit_viewall().
|
static |
Find the extents of the active channel
r_min | Bottom y-extent of channel. |
r_max | Top y-extent of channel. |
Definition at line 430 of file nla_edit.c.
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, filter(), ListBase::first, bAnimChannelType::has_setting, bAnimListElem::next, NLACHANNEL_FIRST_TOP, NLACHANNEL_HEIGHT, NLACHANNEL_STEP, NULL, and bAnimContext::sl.
Referenced by nlaedit_viewall().
|
static |
Definition at line 2553 of file nla_edit.c.
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(), C, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, filter(), ListBase::first, bAnimListElem::id, if(), NA_EDITED, NlaTrack::name, NC_ANIMATION, ND_NLA, bAnimListElem::next, NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_SELECT, NLASTRIP_TYPE_SOUND, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RPT_ERROR, set_active_fmodifier(), NlaTrack::strips, type, bAnimListElem::update, and WM_event_add_notifier().
Referenced by NLA_OT_fmodifier_add().
|
static |
Definition at line 2666 of file nla_edit.c.
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(), C, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, filter(), ListBase::first, bAnimListElem::next, NLASTRIP_FLAG_ACTIVE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and NlaTrack::strips.
Referenced by NLA_OT_fmodifier_copy().
|
static |
Definition at line 2515 of file nla_edit.c.
References C, FMODIFIER_NUM_TYPES, FMODIFIER_TYPE_CYCLES, get_fmodifier_typeinfo(), NULL, 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 2746 of file nla_edit.c.
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(), C, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, filter(), ListBase::first, bAnimListElem::id, if(), NA_EDITED, NC_ANIMATION, ND_NLA, bAnimListElem::next, NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_SELECT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, NlaTrack::strips, bAnimListElem::update, and WM_event_add_notifier().
Referenced by NLA_OT_fmodifier_paste().
void NLA_OT_action_sync_length | ( | wmOperatorType * | ot | ) |
Definition at line 2018 of file nla_edit.c.
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 728 of file nla_edit.c.
References wmOperatorType::description, DummyRNA_NULL_items, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, nlaedit_add_actionclip_exec(), 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(), wmOperatorType::srna, and WM_enum_search_invoke().
Referenced by nla_operatortypes().
void NLA_OT_apply_scale | ( | wmOperatorType * | ot | ) |
Definition at line 2253 of file nla_edit.c.
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 2324 of file nla_edit.c.
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 1327 of file nla_edit.c.
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 1226 of file nla_edit.c.
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 2633 of file nla_edit.c.
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 2716 of file nla_edit.c.
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 2811 of file nla_edit.c.
References 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, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by nla_operatortypes().
void NLA_OT_make_single_user | ( | wmOperatorType * | ot | ) |
Definition at line 2117 of file nla_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, nlaedit_make_single_user_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_confirm().
Referenced by nla_operatortypes().
void NLA_OT_meta_add | ( | wmOperatorType * | ot | ) |
Definition at line 1042 of file nla_edit.c.
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 1109 of file nla_edit.c.
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 1931 of file nla_edit.c.
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 1839 of file nla_edit.c.
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 1564 of file nla_edit.c.
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 402 of file nla_edit.c.
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 2488 of file nla_edit.c.
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 964 of file nla_edit.c.
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 1492 of file nla_edit.c.
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.c.
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 870 of file nla_edit.c.
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 168 of file nla_edit.c.
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 279 of file nla_edit.c.
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 540 of file nla_edit.c.
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 583 of file nla_edit.c.
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 555 of file nla_edit.c.
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 |
Definition at line 610 of file nla_edit.c.
References Main::actions, bAnimListElem::adt, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_ACTIVE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, BKE_nlastrip_new(), BKE_nlastrip_validate_name(), BKE_nlatrack_add(), BKE_nlatrack_add_strip(), BKE_report(), BKE_reportf(), BLI_findlink(), bAnimContext::bmain, C, RenderData::cfra, CTX_data_main(), bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, DEG_relations_tag_update(), ED_nla_postop_refresh(), filter(), ListBase::first, float(), GS, bAnimListElem::id, bAction::id, ID_IS_OVERRIDE_LIBRARY, bAction::idroot, NA_ADDED, ID::name, NC_ANIMATION, ND_NLA, bAnimListElem::next, nlaedit_add_tracks_empty(), NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, Scene::r, wmOperator::reports, RNA_enum_get(), RPT_ERROR, RPT_WARNING, scene, bAnimContext::scene, and WM_event_add_notifier().
Referenced by NLA_OT_actionclip_add().
|
static |
Definition at line 988 of file nla_edit.c.
References bAnimListElem::adt, 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(), C, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, filter(), ListBase::first, bAnimListElem::id, if(), NA_ADDED, NC_ANIMATION, ND_NLA, bAnimListElem::next, NLASTRIP_FLAG_SELECT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, NlaTrack::strips, bAnimListElem::update, and WM_event_add_notifier().
Referenced by NLA_OT_meta_add().
|
static |
Definition at line 891 of file nla_edit.c.
References bAnimListElem::adt, 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(), BKE_nlatrack_add_strip(), C, RenderData::cfra, CTX_data_main(), bAnimContext::data, bAnimListElem::data, Object::data, bAnimContext::datatype, ED_nla_postop_refresh(), NlaStrip::end, filter(), ListBase::first, GS, bAnimListElem::id, ID_IS_OVERRIDE_LIBRARY, ID_OB, NA_ADDED, ID::name, NC_ANIMATION, ND_NLA, bAnimListElem::next, NULL, OB_SPEAKER, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, scene, bAnimContext::scene, NlaStrip::start, Object::type, and WM_event_add_notifier().
Referenced by NLA_OT_soundclip_add().
|
static |
Definition at line 762 of file nla_edit.c.
References bAnimListElem::adt, 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(), C, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, ED_nla_postop_refresh(), ELEM, NlaStrip::end, filter(), ListBase::first, NlaStrip::flag, if(), IS_EQF, ListBase::last, MEM_callocN, NA_ADDED, NC_ANIMATION, ND_NLA, bAnimListElem::next, NlaStrip::next, NLASTRIP_FLAG_AUTO_BLENDS, NLASTRIP_FLAG_SELECT, NLASTRIP_TYPE_SOUND, NLASTRIP_TYPE_TRANSITION, NULL, 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 2156 of file nla_edit.c.
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, C, CTX_data_main(), bAnimContext::data, bAnimListElem::data, KeyframeEditData::data, bAnimContext::datatype, DEG_relations_tag_update(), filter(), ListBase::first, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, id_us_min(), NA_EDITED, NC_ANIMATION, ND_NLA, bAnimListElem::next, NLASTRIP_FLAG_SELECT, nlastrip_get_frame(), NLASTRIP_TYPE_CLIP, NLATIME_CONVERT_MAP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, NlaTrack::strips, bAnimListElem::update, and WM_event_add_notifier().
Referenced by NLA_OT_apply_scale().
|
static |
Definition at line 2276 of file nla_edit.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, C, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, ED_nla_postop_refresh(), filter(), ListBase::first, NA_EDITED, NC_ANIMATION, ND_NLA, bAnimListElem::next, NLASTRIP_FLAG_SELECT, NLASTRIP_TYPE_CLIP, NULL, 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 1258 of file nla_edit.c.
References AnimData::actstrip, bAnimListElem::adt, 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_free(), BKE_nlatrack_is_nonlocal_in_liboverride(), bAnimContext::bmain, C, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, DEG_relations_tag_update(), ED_nla_postop_refresh(), filter(), ListBase::first, NlaStrip::flag, bAnimListElem::id, if(), NA_REMOVED, NC_ANIMATION, ND_NLA, bAnimListElem::next, NlaStrip::next, NLASTRIP_FLAG_SELECT, NLASTRIP_TYPE_TRANSITION, NULL, 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 208 of file nla_edit.c.
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, bAnimListElem::data, bAnimContext::datatype, filter(), ListBase::first, AnimData::flag, Scene::flag, NC_ANIMATION, ND_NLA_ACTCHANGE, bAnimListElem::next, NULL, bAnimContext::reports, RPT_ERROR, SCE_NLA_EDIT_ON, bAnimContext::scene, bAnimListElem::update, and WM_main_add_notifier().
Referenced by mouse_nla_channels(), and nlaedit_disable_tweakmode_exec().
|
static |
Definition at line 257 of file nla_edit.c.
References ANIM_animdata_get_context(), C, nlaedit_disable_tweakmode(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, and RNA_boolean_get().
Referenced by NLA_OT_tweakmode_exit().
|
static |
Definition at line 1133 of file nla_edit.c.
References bAnimListElem::adt, 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(), BKE_nlatrack_add_strip(), bAnimContext::bmain, C, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, DEG_relations_tag_update(), ED_nla_postop_refresh(), filter(), ListBase::first, NlaStrip::flag, bAnimListElem::id, ID_IS_OVERRIDE_LIBRARY, ListBase::last, NA_ADDED, NC_ANIMATION, ND_NLA, NlaStrip::next, NlaTrack::next, next, NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_SELECT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, bAnimListElem::prev, 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 1219 of file nla_edit.c.
References C, nlaedit_duplicate_exec(), and OPERATOR_FINISHED.
Referenced by NLA_OT_duplicate().
|
static |
Definition at line 93 of file nla_edit.c.
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, BKE_nla_tweakmode_enter(), BKE_nlatrack_find_tweaked(), BKE_nlatrack_solo_toggle(), BKE_report(), BLI_listbase_is_empty(), C, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, filter(), ListBase::first, NlaTrack::flag, AnimData::flag, Scene::flag, NC_ANIMATION, ND_NLA_ACTCHANGE, bAnimListElem::next, NLATRACK_SOLO, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, SCE_NLA_EDIT_ON, bAnimContext::scene, bAnimListElem::update, and WM_event_add_notifier().
Referenced by NLA_OT_tweakmode_enter().
|
static |
Definition at line 2049 of file nla_edit.c.
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, C, CTX_data_main(), bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, DEG_relations_tag_update(), filter(), ID_REAL_USERS, id_us_min(), ListBase::last, NA_ADDED, NC_ANIMATION, ND_NLA, NLASTRIP_FLAG_SELECT, NLASTRIP_TYPE_CLIP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, bAnimListElem::prev, NlaTrack::strips, bAnimListElem::update, and WM_event_add_notifier().
Referenced by NLA_OT_make_single_user().
|
static |
Definition at line 1862 of file nla_edit.c.
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(), BLI_remlink(), C, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, ED_nla_postop_refresh(), NlaStrip::end, filter(), ListBase::first, NlaStrip::flag, bAnimListElem::id, ID_IS_OVERRIDE_LIBRARY, NA_EDITED, NC_ANIMATION, ND_NLA, ND_NLA_ORDER, bAnimListElem::next, NlaStrip::next, NLASTRIP_FLAG_SELECT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, NlaTrack::prev, NlaStrip::start, NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_move_down().
|
static |
Definition at line 1770 of file nla_edit.c.
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(), BLI_remlink(), C, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, ED_nla_postop_refresh(), NlaStrip::end, filter(), ListBase::first, NlaStrip::flag, bAnimListElem::id, ID_IS_OVERRIDE_LIBRARY, ListBase::last, NA_EDITED, NC_ANIMATION, ND_NLA, ND_NLA_ORDER, NlaStrip::next, NlaTrack::next, NLASTRIP_FLAG_SELECT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, bAnimListElem::prev, NlaStrip::start, NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_move_up().
|
static |
Definition at line 372 of file nla_edit.c.
References ANIM_animdata_get_context(), C, RenderData::flag, get_nlastrip_extents(), max, min, NC_SCENE, ND_FRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, RenderData::pefra, RenderData::psfra, Scene::r, round_fl_to_int(), scene, bAnimContext::scene, SCER_PRV_RANGE, and WM_event_add_notifier().
Referenced by NLA_OT_previewrange_set().
|
static |
Definition at line 1065 of file nla_edit.c.
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(), C, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, filter(), ListBase::first, bAnimListElem::id, if(), NA_REMOVED, NC_ANIMATION, ND_NLA, bAnimListElem::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, NlaTrack::strips, bAnimListElem::update, and WM_event_add_notifier().
Referenced by NLA_OT_meta_remove().
|
static |
Definition at line 2358 of file nla_edit.c.
References bAnimListElem::adt, 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(), BKE_nlatrack_add_strip(), BLI_addtail(), BLI_remlink(), C, RenderData::cfra, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, ED_markers_find_nearest_marker_time(), ED_nla_postop_refresh(), NlaStrip::end, filter(), ListBase::first, NlaStrip::flag, float(), floorf, FPS, bAnimListElem::id, ID_IS_OVERRIDE_LIBRARY, ListBase::last, bAnimContext::markers, NA_ADDED, NA_EDITED, NC_ANIMATION, ND_NLA, NlaStrip::next, NLAEDIT_SNAP_CFRA, NLAEDIT_SNAP_NEAREST_FRAME, NLAEDIT_SNAP_NEAREST_MARKER, NLAEDIT_SNAP_NEAREST_SECOND, NLASTRIP_FLAG_TEMP_META, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, bAnimListElem::prev, wmOperator::ptr, Scene::r, RNA_enum_get(), scene, bAnimContext::scene, NlaStrip::start, NlaTrack::strips, bAnimListElem::update, and WM_event_add_notifier().
Referenced by NLA_OT_snap().
|
static |
Definition at line 1428 of file nla_edit.c.
References bAnimListElem::adt, 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, C, RenderData::cfra, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, ED_nla_postop_refresh(), filter(), ListBase::first, NlaStrip::flag, bAnimListElem::id, if(), NA_ADDED, NC_ANIMATION, ND_NLA, bAnimListElem::next, NlaStrip::next, next, nlaedit_split_strip_actclip(), nlaedit_split_strip_meta(), NLASTRIP_FLAG_SELECT, NLASTRIP_TYPE_CLIP, NLASTRIP_TYPE_META, NULL, 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 1355 of file nla_edit.c.
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 1420 of file nla_edit.c.
References BKE_nlastrips_clear_metastrip(), and NlaTrack::strips.
Referenced by nlaedit_split_exec().
|
static |
Definition at line 1587 of file nla_edit.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, blender::compositor::area(), 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_at_most(), BLI_listbase_is_empty(), BLI_remlink(), C, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, ED_nla_postop_refresh(), filter(), ListBase::first, NlaStrip::flag, bAnimListElem::id, ID_IS_OVERRIDE_LIBRARY, if(), NA_EDITED, NlaTrack::name, NC_ANIMATION, ND_NLA, ND_NLA_ORDER, bAnimListElem::next, NlaStrip::next, NLASTRIP_FLAG_SELECT, NLASTRIP_FLAG_TEMP_META, NULL, 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 1954 of file nla_edit.c.
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(), C, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, filter(), ListBase::first, NA_EDITED, NC_ANIMATION, ND_NLA, bAnimListElem::next, NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_SELECT, NLASTRIP_TYPE_CLIP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), NlaTrack::strips, bAnimListElem::update, and WM_event_add_notifier().
Referenced by NLA_OT_action_sync_length().
|
static |
Definition at line 1517 of file nla_edit.c.
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, C, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, filter(), ListBase::first, NlaStrip::flag, NA_EDITED, NC_ANIMATION, ND_NLA, bAnimListElem::next, NLASTRIP_FLAG_MUTED, NLASTRIP_FLAG_SELECT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, NlaTrack::strips, bAnimListElem::update, and WM_event_add_notifier().
Referenced by NLA_OT_mute_toggle().
Definition at line 476 of file nla_edit.c.
References ANIM_animdata_get_context(), BLI_rctf_size_x(), BLI_rcti_size_y(), C, CTX_wm_area(), CTX_wm_screen(), View2D::cur, ED_area_tag_redraw(), float(), get_nlastrip_extents(), View2D::mask, nla_channels_get_selected_extents(), NULL, 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 528 of file nla_edit.c.
References C, and nlaedit_viewall().
Referenced by NLA_OT_view_all().
|
static |
Definition at line 576 of file nla_edit.c.
References ANIM_center_frame(), C, OPERATOR_FINISHED, and WM_operator_smooth_viewtx_get().
Referenced by NLA_OT_view_frame().
|
static |
Definition at line 534 of file nla_edit.c.
References C, and nlaedit_viewall().
Referenced by NLA_OT_view_selected().
|
static |