|
Blender V5.0
|
#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_listbase.h"#include "BLI_math_base.h"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "BKE_context.hh"#include "BKE_fcurve.hh"#include "BKE_lib_id.hh"#include "BKE_library.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.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.
Snap Strips Operator | |
Moves the start-point of the selected strips to the specified places. | |
| static const EnumPropertyItem | prop_nlaedit_snap_types [] |
| static wmOperatorStatus | nlaedit_snap_exec (bContext *C, wmOperator *op) |
| void | NLA_OT_snap (wmOperatorType *ot) |
|
static |
Definition at line 2163 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
Definition at line 63 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, ANIMTYPE_ANIMDATA, BKE_nla_validate_state(), bAnimContext::data, bAnimContext::datatype, filter, 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 blender::ed::transform::special_aftertrans_update__nla().
|
static |
Definition at line 325 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, filter, ListBase::first, float, LISTBASE_FOREACH, max, 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 2572 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(), C, bAnimContext::data, bAnimContext::datatype, filter, 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 2685 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(), C, bAnimContext::data, bAnimContext::datatype, filter, 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 2534 of file nla_edit.cc.
References C, FMODIFIER_NUM_TYPES, FMODIFIER_TYPE_CYCLES, get_fmodifier_typeinfo(), i, 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 2762 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(), C, bAnimContext::data, bAnimContext::datatype, filter, 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 2024 of file nla_edit.cc.
References nlaedit_sync_actlen_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by nla_operatortypes().
| void NLA_OT_actionclip_add | ( | wmOperatorType * | ot | ) |
Definition at line 755 of file nla_edit.cc.
References nlaedit_add_actionclip_exec(), nlaedit_add_actionclip_invoke(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_ENUM_NO_TRANSLATE, RNA_action_itemf(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), and rna_enum_dummy_NULL_items.
Referenced by nla_operatortypes().
| void NLA_OT_apply_scale | ( | wmOperatorType * | ot | ) |
Definition at line 2278 of file nla_edit.cc.
References nlaedit_apply_scale_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by nla_operatortypes().
| void NLA_OT_clear_scale | ( | wmOperatorType * | ot | ) |
Definition at line 2344 of file nla_edit.cc.
References nlaedit_clear_scale_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by nla_operatortypes().
| void NLA_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 1337 of file nla_edit.cc.
References nlaedit_delete_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by nla_operatortypes().
| void NLA_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 1239 of file nla_edit.cc.
References nlaedit_duplicate_exec(), nlaedit_duplicate_invoke(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by nla_operatortypes().
| void NLA_OT_fmodifier_add | ( | wmOperatorType * | ot | ) |
Definition at line 2649 of file nla_edit.cc.
References BLT_I18NCONTEXT_ID_ACTION, nla_fmodifier_add_exec(), nla_fmodifier_itemf(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_translation_context(), rna_enum_fmodifier_type_items, and WM_menu_invoke().
Referenced by nla_operatortypes().
| void NLA_OT_fmodifier_copy | ( | wmOperatorType * | ot | ) |
Definition at line 2732 of file nla_edit.cc.
References nla_fmodifier_copy_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by nla_operatortypes().
| void NLA_OT_fmodifier_paste | ( | wmOperatorType * | ot | ) |
Definition at line 2825 of file nla_edit.cc.
References BLT_I18NCONTEXT_ID_ACTION, nla_fmodifier_paste_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), and RNA_def_property_translation_context().
Referenced by nla_operatortypes().
| void NLA_OT_make_single_user | ( | wmOperatorType * | ot | ) |
Definition at line 2137 of file nla_edit.cc.
References nlaedit_make_single_user_exec(), nlaedit_make_single_user_invoke(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and WM_operator_properties_confirm_or_exec().
Referenced by nla_operatortypes().
| void NLA_OT_meta_add | ( | wmOperatorType * | ot | ) |
Definition at line 1060 of file nla_edit.cc.
References nlaedit_add_meta_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by nla_operatortypes().
| void NLA_OT_meta_remove | ( | wmOperatorType * | ot | ) |
Definition at line 1125 of file nla_edit.cc.
References nlaedit_remove_meta_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by nla_operatortypes().
| void NLA_OT_move_down | ( | wmOperatorType * | ot | ) |
Definition at line 1940 of file nla_edit.cc.
References nlaedit_move_down_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by nla_operatortypes().
| void NLA_OT_move_up | ( | wmOperatorType * | ot | ) |
Definition at line 1849 of file nla_edit.cc.
References nlaedit_move_up_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by nla_operatortypes().
| void NLA_OT_mute_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 1569 of file nla_edit.cc.
References nlaedit_toggle_mute_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by nla_operatortypes().
| void NLA_OT_previewrange_set | ( | wmOperatorType * | ot | ) |
Definition at line 410 of file nla_edit.cc.
References ED_operator_nla_active(), nlaedit_previewrange_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by nla_operatortypes().
| void NLA_OT_snap | ( | wmOperatorType * | ot | ) |
Definition at line 2507 of file nla_edit.cc.
References nlaedit_snap_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, prop_nlaedit_snap_types, RNA_def_enum(), and WM_menu_invoke().
Referenced by nla_operatortypes().
| void NLA_OT_soundclip_add | ( | wmOperatorType * | ot | ) |
Definition at line 985 of file nla_edit.cc.
References nlaedit_add_sound_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by nla_operatortypes().
| void NLA_OT_split | ( | wmOperatorType * | ot | ) |
Definition at line 1500 of file nla_edit.cc.
References nlaedit_split_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by nla_operatortypes().
| void NLA_OT_swap | ( | wmOperatorType * | ot | ) |
Definition at line 1758 of file nla_edit.cc.
References nlaedit_swap_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by nla_operatortypes().
| void NLA_OT_transition_add | ( | wmOperatorType * | ot | ) |
Definition at line 895 of file nla_edit.cc.
References nlaedit_add_transition_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by nla_operatortypes().
| void NLA_OT_tweakmode_enter | ( | wmOperatorType * | ot | ) |
Definition at line 180 of file nla_edit.cc.
References nlaedit_enable_tweakmode_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_SKIP_SAVE, RNA_def_boolean(), and RNA_def_property_flag().
Referenced by nla_operatortypes().
| void NLA_OT_tweakmode_exit | ( | wmOperatorType * | ot | ) |
Definition at line 290 of file nla_edit.cc.
References nlaedit_disable_tweakmode_exec(), nlaop_poll_tweakmode_on(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_SKIP_SAVE, RNA_def_boolean(), and RNA_def_property_flag().
Referenced by nla_operatortypes().
| void NLA_OT_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 549 of file nla_edit.cc.
References ED_operator_nla_active(), nlaedit_viewall_exec(), and ot.
Referenced by nla_operatortypes().
| void NLA_OT_view_frame | ( | wmOperatorType * | ot | ) |
Definition at line 592 of file nla_edit.cc.
References ED_operator_nla_active(), nlaedit_viewframe_exec(), and ot.
Referenced by nla_operatortypes().
| void NLA_OT_view_selected | ( | wmOperatorType * | ot | ) |
Definition at line 564 of file nla_edit.cc.
References ED_operator_nla_active(), nlaedit_viewsel_exec(), and ot.
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 438 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, filter, ListBase::first, bAnimChannelType::has_setting, bAnimListElem::next, NLATRACK_FIRST_TOP, NLATRACK_HEIGHT, NLATRACK_STEP, and bAnimContext::sl.
Referenced by nlaedit_viewall().
|
static |
Definition at line 651 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, C, RenderData::cfra, 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, Scene::r, 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 626 of file nla_edit.cc.
References ANIM_animdata_get_context(), BKE_report(), C, 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 1009 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(), C, bAnimContext::data, bAnimContext::datatype, filter, 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 916 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(), C, RenderData::cfra, CTX_data_main(), bAnimContext::data, Object::data, bAnimContext::datatype, ED_nla_postop_refresh(), NlaStrip::end, filter, 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 789 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(), C, bAnimContext::data, bAnimContext::datatype, ED_nla_postop_refresh(), ELEM, NlaStrip::end, filter, ListBase::first, NlaStrip::flag, IS_EQF, ListBase::last, LISTBASE_FOREACH, MEM_callocN(), 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 2177 of file nla_edit.cc.
References ACT_FRAME_RANGE, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_animdata_update(), ANIM_fcurve_keyframes_loop(), 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, KeyframeEditData::data, bAnimContext::datatype, DEG_id_tag_update(), DEG_relations_tag_update(), blender::animrig::fcurves_for_action_slot(), filter, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, ID_RECALC_ANIMATION, 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 2301 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, C, bAnimContext::data, bAnimContext::datatype, ED_nla_postop_refresh(), filter, LISTBASE_FOREACH, NA_EDITED, NC_ANIMATION, ND_NLA, NLASTRIP_FLAG_SELECT, NLASTRIP_TYPE_CLIP, OPERATOR_CANCELLED, OPERATOR_FINISHED, RNA_float_set(), RNA_pointer_create_discrete(), NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_clear_scale().
|
static |
Definition at line 1270 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, C, bAnimContext::data, bAnimContext::datatype, DEG_relations_tag_update(), ED_nla_postop_refresh(), filter, 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 220 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, filter, AnimData::flag, Scene::flag, LISTBASE_FOREACH, NC_ANIMATION, ND_NLA_ACTCHANGE, bAnimContext::reports, RPT_ERROR, SCE_NLA_EDIT_ON, bAnimContext::scene, and WM_main_add_notifier().
Referenced by mouse_nla_tracks(), and nlaedit_disable_tweakmode_exec().
|
static |
Definition at line 268 of file nla_edit.cc.
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 1149 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, C, bAnimContext::data, bAnimContext::datatype, DEG_relations_tag_update(), ED_nla_postop_refresh(), filter, 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 1230 of file nla_edit.cc.
References C, nlaedit_duplicate_exec(), and OPERATOR_FINISHED.
Referenced by NLA_OT_duplicate().
|
static |
Definition at line 102 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(), C, bAnimContext::data, bAnimContext::datatype, filter, 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 619 of file nla_edit.cc.
References ANIM_animdata_filter(), ANIMFILTER_ACTIVE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, bAnimContext::data, bAnimContext::datatype, and filter.
Referenced by nlaedit_add_actionclip_exec(), and nlaedit_add_actionclip_invoke().
|
static |
Definition at line 2055 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, C, CTX_data_main(), bAnimContext::data, bAnimContext::datatype, DEG_relations_tag_update(), filter, 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 2120 of file nla_edit.cc.
References ALERT_ICON_WARNING, C, 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 1872 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(), C, bAnimContext::data, bAnimContext::datatype, ED_nla_postop_refresh(), filter, 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 1781 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(), C, bAnimContext::data, bAnimContext::datatype, ED_nla_postop_refresh(), filter, 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 380 of file nla_edit.cc.
References ANIM_animdata_get_context(), C, RenderData::flag, get_nlastrip_extents(), max, min, NC_SCENE, ND_FRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, RenderData::pefra, RenderData::psfra, Scene::r, round_fl_to_int(), bAnimContext::scene, SCER_PRV_RANGE, and WM_event_add_notifier().
Referenced by NLA_OT_previewrange_set().
|
static |
Definition at line 1083 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(), C, bAnimContext::data, bAnimContext::datatype, filter, 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 2378 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(), C, RenderData::cfra, bAnimContext::data, bAnimContext::datatype, ED_markers_find_nearest_marker_time(), ED_nla_postop_refresh(), filter, ListBase::first, float, floorf, 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, Scene::r, RNA_enum_get(), bAnimContext::scene, NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_snap().
|
static |
Definition at line 1438 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, C, RenderData::cfra, bAnimContext::data, bAnimContext::datatype, ED_nla_postop_refresh(), filter, 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 1365 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 1430 of file nla_edit.cc.
References BKE_nlastrips_clear_metastrip(), and NlaTrack::strips.
Referenced by nlaedit_split_exec().
|
static |
Definition at line 1592 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(), C, bAnimContext::data, bAnimContext::datatype, ED_nla_postop_refresh(), NlaStrip::end, filter, ListBase::first, NlaStrip::flag, ID_IS_OVERRIDE_LIBRARY, LISTBASE_FOREACH, NA_EDITED, NlaStrip::name, 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::start, NlaStrip::strips, NlaTrack::strips, and WM_event_add_notifier().
Referenced by NLA_OT_swap().
|
static |
Definition at line 1963 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(), C, bAnimContext::data, bAnimContext::datatype, filter, 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 1525 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, C, bAnimContext::data, bAnimContext::datatype, filter, 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().
|
static |
Definition at line 485 of file nla_edit.cc.
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_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 537 of file nla_edit.cc.
References C, and nlaedit_viewall().
Referenced by NLA_OT_view_all().
|
static |
Definition at line 585 of file nla_edit.cc.
References ANIM_center_frame(), C, OPERATOR_FINISHED, and WM_operator_smooth_viewtx_get().
Referenced by NLA_OT_view_frame().
|
static |
Definition at line 543 of file nla_edit.cc.
References C, and nlaedit_viewall().
Referenced by NLA_OT_view_selected().
|
static |
Definition at line 2368 of file nla_edit.cc.
Referenced by NLA_OT_snap().