|
Blender
V2.93
|
#include <float.h>#include <math.h>#include <stddef.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "CLG_log.h"#include "MEM_guardedalloc.h"#include "BLI_ghash.h"#include "BLI_listbase.h"#include "BLI_string.h"#include "BLI_string_utils.h"#include "BLI_utildefines.h"#include "BLT_translation.h"#include "DNA_anim_types.h"#include "DNA_scene_types.h"#include "DNA_sound_types.h"#include "DNA_speaker_types.h"#include "BKE_action.h"#include "BKE_fcurve.h"#include "BKE_global.h"#include "BKE_lib_id.h"#include "BKE_lib_query.h"#include "BKE_main.h"#include "BKE_nla.h"#include "BKE_sound.h"#include "BLO_read_write.h"#include "RNA_access.h"#include "nla_private.h"Go to the source code of this file.
Macros | |
| #define | STASH_TRACK_NAME DATA_("[Action Stash]") |
Variables | |
| static CLG_LogRef | LOG = {"bke.nla"} |
Definition at line 1862 of file nla.c.
References NlaStrip::act, ListBase::first, NlaTrack::name, NlaStrip::next, NlaTrack::next, AnimData::nla_tracks, STASH_TRACK_NAME, and NlaTrack::strips.
Referenced by BKE_nla_action_stash().
| void BKE_nla_action_pushdown | ( | AnimData * | adt, |
| const bool | is_liboverride | ||
| ) |
Definition at line 1957 of file nla.c.
References AnimData::act_blendmode, AnimData::act_extendmode, AnimData::act_influence, AnimData::action, action_has_motion(), BKE_nlastack_add_strip(), BKE_nlastrip_set_active(), BKE_nlastrip_validate_fcurves(), NlaStrip::blendmode, CLOG_ERROR, ELEM, NlaStrip::extendmode, ListBase::first, NlaStrip::flag, bAction::id, id_us_min(), NlaStrip::influence, LOG, AnimData::nla_tracks, NLASTRIP_EXTEND_HOLD, NLASTRIP_EXTEND_HOLD_FORWARD, NLASTRIP_FLAG_USR_INFLUENCE, nlastrip_is_first(), and NULL.
Referenced by action_pushdown_exec(), mouse_nla_channels(), and nlachannels_pushdown_exec().
| bool BKE_nla_action_stash | ( | AnimData * | adt, |
| const bool | is_liboverride | ||
| ) |
Definition at line 1883 of file nla.c.
References AnimData::action, BKE_nla_action_is_stashed(), BKE_nlastrip_new(), BKE_nlastrip_validate_name(), BKE_nlatrack_add(), BKE_nlatrack_add_strip(), BLI_addhead(), BLI_assert, BLI_remlink(), BLI_strncpy(), BLI_uniquename(), CLOG_ERROR, ELEM, NlaStrip::flag, NlaTrack::flag, ListBase::last, LOG, NlaTrack::name, AnimData::nla_tracks, NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_SELECT, NLASTRIP_FLAG_SYNC_LENGTH, NLATRACK_MUTED, NLATRACK_PROTECTED, NULL, NlaTrack::prev, and STASH_TRACK_NAME.
Referenced by action_new_exec(), action_stash_create_exec(), and action_stash_exec().
Definition at line 401 of file nla.c.
References BKE_sound_info_get(), ceil(), NlaStrip::end, NlaStrip::extendmode, NlaStrip::flag, float(), FPS, SoundInfo::length, MEM_callocN, NLASTRIP_EXTEND_NOTHING, NLASTRIP_FLAG_SELECT, NLASTRIP_TYPE_SOUND, NlaStrip::repeat, NlaStrip::scale, scene, Speaker::sound, NlaStrip::type, and UNUSED_VARS.
Referenced by nlaedit_add_sound_exec(), and object_speaker_add_exec().
| void BKE_nla_blend_read_data | ( | BlendDataReader * | reader, |
| ListBase * | tracks | ||
| ) |
Definition at line 2284 of file nla.c.
References blend_data_read_nla_strips(), BLO_read_list(), LISTBASE_FOREACH, and tracks.
Referenced by BKE_animdata_blend_read_data().
| void BKE_nla_blend_read_expand | ( | struct BlendExpander * | expander, |
| struct ListBase * | tracks | ||
| ) |
Definition at line 2308 of file nla.c.
References blend_read_expand_nla_strips(), LISTBASE_FOREACH, and tracks.
Referenced by BKE_animdata_blend_read_expand().
| void BKE_nla_blend_read_lib | ( | BlendLibReader * | reader, |
| ID * | id, | ||
| ListBase * | tracks | ||
| ) |
Definition at line 2295 of file nla.c.
References blend_lib_read_nla_strips(), id, ID::lib, LISTBASE_FOREACH, NLATRACK_OVERRIDELIBRARY_LOCAL, NULL, and tracks.
Referenced by BKE_animdata_blend_read_lib().
| void BKE_nla_blend_write | ( | BlendWriter * | writer, |
| ListBase * | tracks | ||
| ) |
Definition at line 2272 of file nla.c.
References blend_write_nla_strips(), BLO_write_struct, LISTBASE_FOREACH, and tracks.
Referenced by BKE_animdata_blend_write().
| void BKE_nla_strip_foreach_id | ( | NlaStrip * | strip, |
| LibraryForeachIDData * | data | ||
| ) |
Callback used by lib_query to walk over all ID usages (mimics foreach_id callback of IDTypeInfo structure).
Definition at line 441 of file nla.c.
References NlaStrip::act, BKE_fcurve_foreach_id(), BKE_LIB_FOREACHID_PROCESS, BKE_nla_strip_foreach_id(), data, NlaStrip::fcurves, IDWALK_CB_USER, LISTBASE_FOREACH, and NlaStrip::strips.
Referenced by BKE_animdata_foreach_id(), and BKE_nla_strip_foreach_id().
Copy all NLA data.
| flag | Control ID pointers management, see LIB_ID_CREATE_.../LIB_ID_COPY_... flags in BKE_lib_id.h |
Definition at line 257 of file nla.c.
References BKE_nlatrack_copy(), BLI_addtail(), BLI_listbase_clear(), ELEM, ListBase::first, NlaTrack::next, and NULL.
Referenced by BKE_animdata_copy(), and BKE_animdata_merge_copy().
| void BKE_nla_tracks_free | ( | ListBase * | tracks, |
| bool | do_id_user | ||
| ) |
Definition at line 141 of file nla.c.
References BKE_nlatrack_free(), BLI_listbase_clear(), ELEM, ListBase::first, NlaTrack::next, NULL, and tracks.
Referenced by BKE_animdata_free().
Definition at line 582 of file nla.c.
References AnimData::act_track, AnimData::actstrip, ADT_NLA_EDIT_NOMAP, ADT_NLA_EDIT_ON, BKE_nlastrip_find_active(), BKE_nlatrack_find_active(), BKE_nlatrack_find_tweaked(), NlaStrip::flag, AnimData::flag, AnimData::nla_tracks, NLASTRIP_FLAG_USR_TIME, nlastrip_get_frame(), and NULL.
Referenced by achannel_setting_slider_cb(), achannel_setting_slider_shapekey_cb(), actkeys_find_key_in_list_element(), actkeys_mselect_column(), applyTimeScaleValue(), applyTimeSlideValue(), bezt_nlamapping_apply(), bezt_nlamapping_restore(), bezt_to_transdata(), box_select_action(), columnselect_action_keys(), columnselect_graph_keys(), createTransActionData(), delete_key_v3d_exec(), delete_keyframe(), doAnimEdit_SnapFrame(), draw_fcurve_curve(), draw_fcurve_modifier_controls_envelope(), flushTransGraphData(), get_keyframe_extents(), graphkeys_click_insert_exec(), graphkeys_mselect_column(), initTimeSlide(), insert_action_keys(), insert_graph_keys(), nla_time_remap(), object_frame_has_keyframe(), pose_slide_apply(), pose_slide_init(), pose_slide_invoke_common(), region_select_action_keys(), summary_keyframes_loop(), and ui_but_anim_flag().
| bool BKE_nla_tweakmode_enter | ( | AnimData * | adt | ) |
Definition at line 2034 of file nla.c.
References NlaStrip::act, AnimData::act_track, AnimData::action, AnimData::actstrip, ADT_NLA_EDIT_ON, BKE_nlastrip_find_active(), ELEM, ListBase::first, NlaStrip::flag, NlaTrack::flag, AnimData::flag, G, G_DEBUG, bAction::id, id_us_plus(), ListBase::last, NlaStrip::next, NlaTrack::next, AnimData::nla_tracks, NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_SELECT, NLASTRIP_FLAG_TWEAKUSER, NLATRACK_ACTIVE, NLATRACK_DISABLED, NLATRACK_SELECTED, NULL, NlaTrack::prev, NlaTrack::strips, and AnimData::tmpact.
Referenced by action_layer_switch_strip(), and nlaedit_enable_tweakmode_exec().
| void BKE_nla_tweakmode_exit | ( | AnimData * | adt | ) |
Definition at line 2148 of file nla.c.
References NlaStrip::act, AnimData::act_track, AnimData::action, AnimData::actstrip, ADT_NLA_EDIT_ON, BKE_nlastrip_recalculate_bounds_sync_action(), ELEM, ListBase::first, NlaStrip::flag, NlaTrack::flag, AnimData::flag, bAction::id, id_us_min(), NlaStrip::next, NlaTrack::next, AnimData::nla_tracks, NLASTRIP_FLAG_SYNC_LENGTH, NLASTRIP_FLAG_TWEAKUSER, NLASTRIP_TYPE_CLIP, NLATRACK_DISABLED, NULL, NlaTrack::strips, AnimData::tmpact, and NlaStrip::type.
Referenced by action_layer_next_exec(), action_layer_switch_strip(), ED_animedit_unlink_action(), and nlaedit_disable_tweakmode().
| void BKE_nla_validate_state | ( | AnimData * | adt | ) |
Definition at line 1800 of file nla.c.
References BKE_nlastrip_validate_autoblends(), NlaStrip::blendmode, ELEM, NlaStrip::extendmode, ListBase::first, NlaStrip::next, NlaTrack::next, AnimData::nla_tracks, NLASTRIP_EXTEND_HOLD, NLASTRIP_EXTEND_HOLD_FORWARD, NLASTRIP_EXTEND_NOTHING, NLASTRIP_MODE_REPLACE, NULL, NlaStrip::start, and NlaTrack::strips.
Referenced by ED_nla_postop_refresh().
Definition at line 861 of file nla.c.
References BKE_nlastrips_add_strip(), BKE_nlastrips_has_space(), BLI_addhead(), BLI_addtail(), ELEM, NlaStrip::end, NlaStrip::next, NULL, NlaStrip::prev, NlaStrip::start, and NlaStrip::strips.
| void BKE_nlameta_flush_transforms | ( | NlaStrip * | mstrip | ) |
Definition at line 912 of file nla.c.
References BKE_nlameta_flush_transforms(), ELEM, NlaStrip::end, ListBase::first, IS_EQF, ListBase::last, NlaStrip::next, NLASTRIP_TYPE_META, NULL, ptr, RNA_float_set(), RNA_NlaStrip, RNA_pointer_create(), NlaStrip::start, NlaStrip::strips, and NlaStrip::type.
Referenced by BKE_nlameta_flush_transforms(), nlaedit_snap_exec(), nlaedit_swap_exec(), and recalcData_nla().
Definition at line 368 of file nla.c.
References BKE_nlastrip_new(), BKE_nlastrip_validate_name(), BKE_nlatrack_add(), BKE_nlatrack_add_strip(), ELEM, ListBase::last, AnimData::nla_tracks, and NULL.
Referenced by animrecord_check_state(), and BKE_nla_action_pushdown().
| NlaStrip* BKE_nlastrip_copy | ( | Main * | bmain, |
| NlaStrip * | strip, | ||
| const bool | use_same_action, | ||
| const int | flag | ||
| ) |
Copy NLA strip
| use_same_action | When true, the existing action is used (instead of being duplicated) |
| flag | Control ID pointers management, see LIB_ID_CREATE_.../LIB_ID_COPY_... flags in BKE_lib_id.h |
Definition at line 169 of file nla.c.
References NlaStrip::act, BKE_fcurves_copy(), BKE_id_copy_ex(), BKE_nlastrip_copy(), BLI_addtail(), BLI_listbase_clear(), copy_fmodifiers(), NlaStrip::fcurves, ListBase::first, bAction::id, id_us_plus(), LIB_ID_CREATE_NO_USER_REFCOUNT, MEM_dupallocN, NlaStrip::modifiers, NlaStrip::next, NULL, NlaStrip::prev, and NlaStrip::strips.
Referenced by BKE_nlastrip_copy(), BKE_nlatrack_copy(), nlaedit_duplicate_exec(), and nlaedit_split_strip_actclip().
Definition at line 1213 of file nla.c.
References ELEM, ListBase::first, NlaStrip::flag, NlaStrip::next, NLASTRIP_FLAG_ACTIVE, NULL, and NlaTrack::strips.
Referenced by BKE_nla_tweakedit_remap(), BKE_nla_tweakmode_enter(), and nla_panel_context().
Definition at line 72 of file nla.c.
References NlaStrip::act, BKE_fcurves_free(), BKE_nlastrip_free(), BLI_freelinkN(), NlaStrip::fcurves, ListBase::first, free_fmodifiers(), bAction::id, id_us_min(), MEM_freeN, NlaStrip::modifiers, NlaStrip::next, NULL, and NlaStrip::strips.
Referenced by BKE_nlastrip_free(), BKE_nlastrips_clear_metastrip(), BKE_nlatrack_free(), ED_animedit_unlink_action(), and nlaedit_delete_exec().
| bool BKE_nlastrip_has_curves_for_property | ( | const PointerRNA * | ptr, |
| const PropertyRNA * | prop | ||
| ) |
Definition at line 1582 of file nla.c.
References ELEM, NULL, ptr, RNA_NlaStrip, RNA_struct_type_find_property(), and PointerRNA::type.
Definition at line 327 of file nla.c.
References NlaStrip::act, NlaStrip::actend, NlaStrip::actstart, calc_action_range(), NlaStrip::end, NlaStrip::flag, bAction::id, id_us_plus(), IS_EQF, MEM_callocN, NLASTRIP_FLAG_SELECT, NLASTRIP_FLAG_SYNC_LENGTH, NULL, NlaStrip::repeat, NlaStrip::scale, and NlaStrip::start.
Referenced by BKE_nla_action_stash(), BKE_nlastack_add_strip(), and nlaedit_add_actionclip_exec().
| void BKE_nlastrip_recalculate_bounds | ( | NlaStrip * | strip | ) |
Definition at line 1409 of file nla.c.
References NlaStrip::actend, NlaStrip::actstart, NlaStrip::end, IS_EQF, nlastrip_fix_resize_overlaps(), NLASTRIP_TYPE_CLIP, NULL, NlaStrip::repeat, NlaStrip::scale, NlaStrip::start, and NlaStrip::type.
Referenced by BKE_nlastrip_recalculate_bounds_sync_action().
| void BKE_nlastrip_recalculate_bounds_sync_action | ( | NlaStrip * | strip | ) |
Recalculate the start and end frames for the strip to match the bounds of its action such that the overall NLA animation result is unchanged.
Definition at line 1389 of file nla.c.
References NlaStrip::act, NlaStrip::actend, NlaStrip::actstart, BKE_nlastrip_recalculate_bounds(), calc_action_range(), NLASTRIP_TYPE_CLIP, NULL, NlaStrip::scale, NlaStrip::start, and NlaStrip::type.
Referenced by animsys_create_tweak_strip(), BKE_nla_tweakmode_exit(), and nlaedit_sync_actlen_exec().
Definition at line 1234 of file nla.c.
References ListBase::first, NlaStrip::flag, NlaStrip::next, NlaTrack::next, AnimData::nla_tracks, NLASTRIP_FLAG_ACTIVE, NULL, and NlaTrack::strips.
Referenced by BKE_nla_action_pushdown().
Definition at line 1743 of file nla.c.
References NlaStrip::blendin, NlaStrip::blendout, ELEM, NlaStrip::end, NlaStrip::flag, IS_EQF, NlaStrip::next, NlaTrack::next, NLASTRIP_FLAG_AUTO_BLENDS, nlastrip_get_endpoint_overlaps(), NULL, NlaStrip::prev, NlaTrack::prev, and NlaStrip::start.
Referenced by BKE_nla_validate_state().
| void BKE_nlastrip_validate_fcurves | ( | NlaStrip * | strip | ) |
Definition at line 1516 of file nla.c.
References FCurve::auto_smoothing, FCurve::bezt, BKE_fcurve_create(), BKE_fcurve_find(), BLI_addtail(), BLI_strdupn(), FCURVE_SELECTED, FCURVE_VISIBLE, NlaStrip::fcurves, FCurve::flag, NlaStrip::flag, BezTriple::h1, BezTriple::h2, NlaStrip::influence, BezTriple::ipo, MEM_callocN, NLASTRIP_FLAG_USR_INFLUENCE, NLASTRIP_FLAG_USR_TIME, NULL, FCurve::rna_path, NlaStrip::start, FCurve::totvert, and BezTriple::vec.
Referenced by animrecord_check_state(), and BKE_nla_action_pushdown().
Definition at line 1626 of file nla.c.
References NlaStrip::act, BLI_ghash_free(), BLI_ghash_insert(), BLI_ghash_str_new(), BLI_strncpy(), BLI_uniquename_cb(), DATA_, ELEM, ListBase::first, bAction::id, NlaStrip::name, ID::name, NlaStrip::next, NlaTrack::next, nla_editbone_name_check(), AnimData::nla_tracks, NLASTRIP_TYPE_CLIP, NLASTRIP_TYPE_META, NLASTRIP_TYPE_TRANSITION, NULL, NlaTrack::strips, and NlaStrip::type.
Referenced by BKE_nla_action_stash(), BKE_nlastack_add_strip(), nlaedit_add_actionclip_exec(), nlaedit_add_meta_exec(), nlaedit_add_sound_exec(), nlaedit_add_transition_exec(), nlaedit_duplicate_exec(), nlaedit_split_strip_actclip(), nlastrips_to_animdata(), and object_speaker_add_exec().
Definition at line 1258 of file nla.c.
References NlaStrip::end, fabsf, IN_RANGE, IS_EQF, max, min, NULL, and NlaStrip::start.
Referenced by box_select_nla_strips(), draw_nla_main_data(), nlaedit_select_leftright(), and nlaedit_strip_at_region_position().
Definition at line 714 of file nla.c.
References BKE_nlastrips_has_space(), BLI_addtail(), BLI_insertlinkbefore(), ELEM, NlaStrip::end, ListBase::first, NlaStrip::next, NULL, and NlaStrip::start.
Referenced by BKE_nlameta_add_strip(), and BKE_nlatrack_add_strip().
| void BKE_nlastrips_clear_metas | ( | ListBase * | strips, |
| bool | only_sel, | ||
| bool | only_temp | ||
| ) |
Definition at line 833 of file nla.c.
References BKE_nlastrips_clear_metastrip(), ELEM, ListBase::first, NlaStrip::flag, NlaStrip::next, NLASTRIP_FLAG_SELECT, NLASTRIP_FLAG_TEMP_META, NLASTRIP_TYPE_META, NULL, and NlaStrip::type.
Referenced by createTransNlaData(), nlaedit_remove_meta_exec(), nlaedit_snap_exec(), nlaedit_swap_exec(), and special_aftertrans_update__nla().
Definition at line 807 of file nla.c.
References BKE_nlastrip_free(), BLI_insertlinkbefore(), BLI_remlink(), ELEM, ListBase::first, NlaStrip::next, NULL, and NlaStrip::strips.
Referenced by BKE_nlastrips_clear_metas(), and nlaedit_split_strip_meta().
Definition at line 631 of file nla.c.
References NlaStrip::end, ListBase::first, IS_EQF, NlaStrip::next, NULL, NlaStrip::start, and SWAP.
Referenced by BKE_nlameta_add_strip(), BKE_nlastrips_add_strip(), BKE_nlatrack_has_space(), and nlaedit_swap_exec().
| void BKE_nlastrips_make_metas | ( | ListBase * | strips, |
| bool | is_temp | ||
| ) |
Definition at line 753 of file nla.c.
References BLI_addtail(), BLI_insertlinkbefore(), BLI_remlink(), ELEM, NlaStrip::end, ListBase::first, NlaStrip::flag, MEM_callocN, NlaStrip::next, NLASTRIP_FLAG_SELECT, NLASTRIP_FLAG_TEMP_META, NLASTRIP_TYPE_META, NULL, NlaStrip::repeat, NlaStrip::scale, NlaStrip::start, NlaStrip::strips, and NlaStrip::type.
Referenced by createTransNlaData(), nlaedit_add_meta_exec(), nlaedit_snap_exec(), and nlaedit_swap_exec().
| void BKE_nlastrips_sort_strips | ( | ListBase * | strips | ) |
Definition at line 668 of file nla.c.
References BLI_addhead(), BLI_insertlinkafter(), BLI_remlink(), ELEM, NlaStrip::end, ListBase::first, ListBase::last, NlaStrip::next, NULL, NlaStrip::prev, and NlaStrip::start.
Referenced by BKE_nlatrack_sort_strips().
Definition at line 283 of file nla.c.
References BKE_nlatrack_set_active(), BLI_addtail(), BLI_insertlinkafter(), BLI_listbase_count(), BLI_uniquename(), DATA_, NlaTrack::flag, NlaTrack::index, MEM_callocN, NlaTrack::name, NlaTrack::next, AnimData::nla_tracks, NLATRACK_OVERRIDELIBRARY_LOCAL, NLATRACK_SELECTED, NULL, and NlaTrack::prev.
Referenced by BKE_nla_action_stash(), BKE_nlastack_add_strip(), nlaedit_add_actionclip_exec(), nlaedit_add_sound_exec(), nlaedit_add_tracks_empty(), nlaedit_add_tracks_existing(), nlaedit_duplicate_exec(), nlaedit_snap_exec(), nlastrips_to_animdata(), and object_speaker_add_exec().
Definition at line 1149 of file nla.c.
References BKE_nlastrips_add_strip(), ELEM, NlaTrack::flag, NLATRACK_OVERRIDELIBRARY_LOCAL, NLATRACK_PROTECTED, NULL, and NlaTrack::strips.
Referenced by BKE_nla_action_stash(), BKE_nlastack_add_strip(), nlaedit_add_actionclip_exec(), nlaedit_add_sound_exec(), nlaedit_duplicate_exec(), nlaedit_move_down_exec(), nlaedit_move_up_exec(), nlaedit_snap_exec(), nlaedit_swap_exec(), nlastrips_to_animdata(), object_speaker_add_exec(), and recalcData_nla().
| NlaTrack* BKE_nlatrack_copy | ( | Main * | bmain, |
| NlaTrack * | nlt, | ||
| const bool | use_same_actions, | ||
| const int | flag | ||
| ) |
Copy a single NLA Track.
| flag | Control ID pointers management, see LIB_ID_CREATE_.../LIB_ID_COPY_... flags in BKE_lib_id.h |
Definition at line 223 of file nla.c.
References BKE_nlastrip_copy(), BLI_addtail(), BLI_listbase_clear(), ListBase::first, MEM_dupallocN, NlaStrip::next, NlaTrack::next, NULL, NlaTrack::prev, and NlaTrack::strips.
Referenced by BKE_nla_tracks_copy().
Definition at line 995 of file nla.c.
References ELEM, ListBase::first, NlaTrack::flag, NlaTrack::next, NLATRACK_ACTIVE, NULL, and tracks.
Referenced by BKE_nla_tweakedit_remap().
Definition at line 1020 of file nla.c.
References AnimData::actstrip, BLI_findindex(), ListBase::first, NlaTrack::flag, G, G_DEBUG, NlaStrip::name, NlaTrack::name, NlaTrack::next, AnimData::nla_tracks, NLATRACK_ACTIVE, NLATRACK_DISABLED, NULL, and NlaTrack::strips.
Referenced by action_layer_next_exec(), action_layer_prev_exec(), BKE_nla_tweakedit_remap(), and nlaedit_enable_tweakmode_exec().
Definition at line 114 of file nla.c.
References BKE_nlastrip_free(), BLI_freelinkN(), ListBase::first, MEM_freeN, NlaStrip::next, NULL, NlaTrack::strips, and tracks.
Referenced by BKE_nla_tracks_free(), ED_animedit_unlink_action(), and nlaedit_delete_tracks_exec().
Definition at line 1169 of file nla.c.
References bounds(), ELEM, NlaStrip::end, ListBase::first, ListBase::last, NULL, NlaStrip::start, and NlaTrack::strips.
| bool BKE_nlatrack_has_animated_strips | ( | NlaTrack * | nlt | ) |
Definition at line 1474 of file nla.c.
References ELEM, NlaStrip::fcurves, ListBase::first, NlaStrip::next, NULL, and NlaTrack::strips.
Referenced by BKE_nlatracks_have_animated_strips().
Definition at line 1112 of file nla.c.
References BKE_nlastrips_has_space(), NlaTrack::flag, IS_EQF, NLATRACK_PROTECTED, NULL, NlaTrack::strips, and SWAP.
Referenced by nlaedit_move_down_exec(), nlaedit_move_up_exec(), and recalcData_nla().
Check whether given NLA track is not local (i.e. from linked data) when the object is a library override.
| nlt | May be NULL, in which case we consider it as a non-local track case. |
Definition at line 1204 of file nla.c.
References NlaTrack::flag, ID_IS_OVERRIDE_LIBRARY, NLATRACK_OVERRIDELIBRARY_LOCAL, and NULL.
Definition at line 1091 of file nla.c.
References ELEM, ListBase::first, NlaTrack::flag, NlaTrack::next, NLATRACK_ACTIVE, NULL, and tracks.
Referenced by BKE_nlatrack_add().
Definition at line 1054 of file nla.c.
References ADT_NLA_SOLO_TRACK, ELEM, ListBase::first, NlaTrack::flag, AnimData::flag, NlaTrack::next, AnimData::nla_tracks, NLATRACK_SOLO, and NULL.
Referenced by achannel_nlatrack_solo_widget_cb(), mouse_nla_channels(), nlaedit_disable_tweakmode(), and nlaedit_enable_tweakmode_exec().
| void BKE_nlatrack_sort_strips | ( | NlaTrack * | nlt | ) |
Definition at line 1135 of file nla.c.
References BKE_nlastrips_sort_strips(), ELEM, ListBase::first, NULL, and NlaTrack::strips.
Referenced by special_aftertrans_update__nla().
| bool BKE_nlatracks_have_animated_strips | ( | ListBase * | tracks | ) |
Definition at line 1495 of file nla.c.
References BKE_nlatrack_has_animated_strips(), ELEM, ListBase::first, NlaTrack::next, NULL, and tracks.
|
static |
Definition at line 2224 of file nla.c.
References BKE_fcurve_blend_read_data(), BKE_fmodifiers_blend_read_data(), BLO_read_list(), LISTBASE_FOREACH, and NULL.
Referenced by BKE_nla_blend_read_data().
|
static |
Definition at line 2241 of file nla.c.
References BKE_fcurve_blend_read_lib(), BLO_read_id_address, id, ID::lib, and LISTBASE_FOREACH.
Referenced by BKE_nla_blend_read_lib().
|
static |
Definition at line 2255 of file nla.c.
References BKE_fcurve_blend_read_expand(), BKE_fmodifiers_blend_read_expand(), BLO_expand, and LISTBASE_FOREACH.
Referenced by BKE_nla_blend_read_expand().
|
static |
Definition at line 2211 of file nla.c.
References BKE_fcurve_blend_write(), BKE_fmodifiers_blend_write(), BLO_write_struct_list, and LISTBASE_FOREACH.
Referenced by BKE_nla_blend_write().
|
static |
Definition at line 1616 of file nla.c.
References BLI_ghash_haskey().
Referenced by BKE_nlastrip_validate_name().
|
static |
Definition at line 1287 of file nla.c.
References ceilf, NlaStrip::end, NlaStrip::next, NLASTRIP_TYPE_TRANSITION, NlaStrip::prev, NlaStrip::start, and NlaStrip::type.
Referenced by BKE_nlastrip_recalculate_bounds().
|
static |
Definition at line 1698 of file nla.c.
References NlaStrip::end, ListBase::first, IS_EQF, NlaStrip::next, NULL, NlaStrip::prev, NlaStrip::start, and NlaTrack::strips.
Referenced by BKE_nlastrip_validate_autoblends().
Definition at line 562 of file nla.c.
References nlastrip_get_frame_actionclip(), nlastrip_get_frame_transition(), NLASTRIP_TYPE_CLIP, NLASTRIP_TYPE_META, NLASTRIP_TYPE_TRANSITION, and NlaStrip::type.
Referenced by bezt_apply_nlamapping(), BKE_nla_tweakedit_remap(), nla_actionclip_draw_markers(), nlaedit_split_strip_actclip(), and nlastrip_evaluate_controls().
Definition at line 462 of file nla.c.
References NlaStrip::actend, NlaStrip::actstart, NlaStrip::end, fabsf, NlaStrip::flag, floorf, fmodf, IS_EQF, NLASTRIP_FLAG_REVERSE, NLATIME_CONVERT_MAP, NLATIME_CONVERT_UNMAP, NlaStrip::repeat, NlaStrip::scale, and NlaStrip::start.
Referenced by nlastrip_get_frame().
Definition at line 533 of file nla.c.
References NlaStrip::end, NlaStrip::flag, length(), NLASTRIP_FLAG_REVERSE, NLATIME_CONVERT_MAP, and NlaStrip::start.
Referenced by nlastrip_get_frame().
Definition at line 1440 of file nla.c.
References ELEM, ListBase::first, NlaTrack::next, AnimData::nla_tracks, NULL, NlaStrip::prev, NlaStrip::start, and NlaTrack::strips.
Referenced by BKE_nla_action_pushdown().
|
static |
Definition at line 62 of file nla.c.
Referenced by BKE_nla_action_pushdown(), and BKE_nla_action_stash().