46#include "RNA_prototypes.hh"
62 NlaTrack **r_track_of_active_strip,
63 NlaStrip **r_active_strip);
68bke::NlaStripRuntime &NlaStrip::runtime_get()
71 this->
runtime = MEM_new<bke::NlaStripRuntime>(__func__);
83 if (strip ==
nullptr) {
88 for (cs = strip->
strips.first(); cs; cs = csn) {
94 if (strip->
act !=
nullptr && do_id_user) {
114 if (nlt ==
nullptr) {
119 for (strip = nlt->
strips.first(); strip; strip = stripn) {
120 stripn = strip->
next;
133 if (
ELEM(
nullptr, tracks, tracks->first())) {
138 for (nlt = tracks->first(); nlt; nlt = nltn) {
144 tracks->clear_no_delete();
151 const bool use_same_action,
160 if (strip ==
nullptr) {
165 strip_d = MEM_dupalloc(strip);
166 strip_d->
next = strip_d->
prev =
nullptr;
171 if (use_same_action) {
188 strip_d->
strips.clear_no_delete();
201 const bool use_same_actions,
208 if (nlt ==
nullptr) {
213 nlt_d = MEM_dupalloc(nlt);
214 nlt_d->
next = nlt_d->
prev =
nullptr;
217 nlt_d->
strips.clear_no_delete();
229 ListBaseT<NlaTrack> *dst,
230 const ListBaseT<NlaTrack> *src,
236 if (
ELEM(
nullptr, dst, src)) {
241 dst->clear_no_delete();
257 const ListBaseT<NlaStrip> *strips_source,
258 const ListBaseT<NlaStrip> *strips_dest)
261 "Expecting the same number of source and destination strips");
263 NlaStrip *strip_dest = strips_dest->first();
264 for (
const NlaStrip &strip_source : *strips_source) {
265 if (strip_dest ==
nullptr) {
271 if (&strip_source == active_strip) {
278 "Expecting topology of source and destination strips to be equal");
279 if (src_is_meta && dst_is_meta) {
281 active_strip, &strip_source.
strips, &strip_dest->
strips);
282 if (found_in_meta !=
nullptr) {
283 return found_in_meta;
287 strip_dest = strip_dest->
next;
321 if (&track_source == adt_source->
act_track) {
330 track_dest = track_dest->
next;
335 const bool source_has_actstrip = adt_source->
actstrip !=
nullptr;
336 const bool dest_has_actstrip = adt_dest->
actstrip !=
nullptr;
338 "Active strip did not copy correctly");
360 NlaTrack *nlt = MEM_new<NlaTrack>(
"NlaTrack");
374 if (is_liboverride) {
394 sizeof(new_track->
name));
400 const bool is_liboverride)
407 if (prev ==
nullptr) {
408 NlaTrack *first_track = nla_tracks->first();
419 first_local = first_local->
next)
422 prev = first_local !=
nullptr ? first_local->
prev : prev;
435 sizeof(new_track->
name));
480 if (*r_actend <= *actstart) {
481 *r_actend = *actstart + 1.0f;
498 if (act ==
nullptr) {
503 strip = MEM_new<NlaStrip>(
"NlaStrip");
517 Action &action = act->wrap();
541 strip->
actend = frame_range[1];
569 *strip, slot_handle, animated_id);
600 if (strip ==
nullptr) {
624 NlaStrip *strip = MEM_new<NlaStrip>(
"NlaSoundStrip");
630 if (speaker->
sound) {
795 switch (strip->
type) {
858 if ((strips ==
nullptr) ||
IS_EQF(start, end)) {
862 puts(
"BKE_nlastrips_has_space() error... start and end arguments swapped");
863 std::swap(start, end);
871 if (strip.start >= end) {
878 if ((strip.end > start) || (strip.end > end)) {
889 ListBaseT<NlaStrip> tmp = {
nullptr,
nullptr};
893 if (
ELEM(
nullptr, strips, strips->first())) {
900 for (strip = strips->first(); strip; strip = stripn) {
903 stripn = strip->
next;
910 for (
NlaStrip &sstrip : tmp.items_reversed()) {
912 if (sstrip.start <= strip->
start) {
926 strips->first_ = tmp.first();
927 strips->last_ = tmp.last();
932 bool not_added =
true;
940 if (ns.start >= strip->
start) {
954 if (
ELEM(
nullptr, strips, strip)) {
974 if (
ELEM(
nullptr, strips, strips->first())) {
979 for (strip = strips->first(); strip; strip = stripn) {
980 stripn = strip->
next;
984 if (mstrip ==
nullptr) {
986 mstrip = MEM_new<NlaStrip>(
"Meta-NlaStrip");
1010 mstrip->
end = strip->
end;
1026 if (
ELEM(
nullptr, strips, strip)) {
1033 for (cs = strip->
strips.first(); cs; cs = csn) {
1048 if (
ELEM(
nullptr, strips, strips->first())) {
1053 for (strip = strips->first(); strip; strip = stripn) {
1054 stripn = strip->
next;
1071 if (
ELEM(
nullptr, mstrip, strip)) {
1097 if (strip->
end > mstrip->
end) {
1104 mstrip->
end = strip->
end;
1118 float oStart, oEnd, offset;
1120 short scaleChanged = 0;
1126 if (
ELEM(
nullptr, mstrip, mstrip->
strips.first())) {
1137 oStart = (mstrip->
strips.first())->start;
1138 oEnd = (mstrip->
strips.last())->end;
1139 offset = mstrip->
start - oStart;
1142 oLen = oEnd - oStart;
1143 nLen = mstrip->
end - mstrip->
start;
1144 scaleChanged = !
IS_EQF(oLen, nLen);
1161 p1 = (strip.
start - oStart) / oLen;
1162 p2 = (strip.
end - oStart) / oLen;
1177 strip.
end = (p2 * nLen) + mstrip->
start;
1181 const double repeated_len = action_len * strip.
repeat;
1182 const double strip_len = strip.
end - strip.
start;
1183 strip.
scale = strip_len / repeated_len;
1187 strip.
start += offset;
1188 strip.
end += offset;
1213 if (
ELEM(
nullptr, tracks, tracks->first())) {
1231 if (adt ==
nullptr) {
1243 printf(
"%s: Active strip (%p, %s) not in NLA track found (%p, %s)\n",
1292 if (
ELEM(
nullptr, tracks, tracks->first())) {
1319 puts(
"BKE_nlatrack_has_space() error... start and end arguments swapped");
1320 std::swap(start, end);
1330 if (tracks->is_empty()) {
1336 if (track.strips.count() > 0) {
1348 if (
ELEM(
nullptr, nlt, nlt->
strips.first())) {
1359 if (
ELEM(
nullptr, nlt, strip)) {
1395 if (
ELEM(
nullptr, nlt, nlt->
strips.first())) {
1400 strip = nlt->
strips.first();
1404 strip = nlt->
strips.last();
1431 if (inner_active !=
nullptr) {
1432 return inner_active;
1449 limit_prev = strip->
prev->
end;
1476 while (next !=
nullptr) {
1490 while (prev !=
nullptr) {
1503 if (nlt ==
nullptr) {
1518 const bool do_id_user)
1527 if (adt ==
nullptr) {
1534 if (&nls != strip) {
1547 if (
STREQ(strip.name, name)) {
1556 if (inner_strip !=
nullptr) {
1571 const float stripLen = (strip) ? strip->
end - strip->
start : 0.0f;
1575 if ((strip ==
nullptr) ||
IS_EQF(stripLen, 0.0f) ||
IS_EQF(boundsLen, 0.0f)) {
1583 if ((stripLen < boundsLen) &&
1588 if ((stripLen > boundsLen) &&
1600 if (timeline_frame < strip->start) {
1601 return strip->
start - timeline_frame;
1603 if (strip->
end < timeline_frame) {
1604 return timeline_frame - strip->
end;
1616 float offset = 0.0f;
1627 else if (strip->
end < nls->
end) {
1640 for (; nls; nls = nls->
next) {
1641 nls->
start += offset;
1646 else if (strip->
end > nls->
start) {
1653 for (; nls; nls = nls->
next) {
1654 nls->
start += offset;
1664 float offset = 0.0f;
1688 for (; nls; nls = nls->
prev) {
1689 nls->
start -= offset;
1694 else if (strip->
start < nls->
end) {
1701 for (; nls; nls = nls->
prev) {
1702 nls->
start -= offset;
1711 float prev_actstart;
1721 strip->
actend = frame_range[1];
1748 if (
IS_EQF(mapping, 0.0f) == 0) {
1749 strip->
end = (actlen * mapping) + strip->
start;
1764 const double strip_len = strip->
end - strip->
start;
1765 double blend_in = strip->
blendin;
1766 double blend_out = strip->
blendout;
1768 double blend_in_max = strip_len - blend_out;
1773 CLAMP(blend_in, 0, blend_in_max);
1774 CLAMP(blend_out, 0, strip_len - blend_in);
1785 if (
ELEM(
nullptr, nlt, nlt->
strips.first())) {
1803 if (
ELEM(
nullptr, tracks, tracks->first())) {
1823 if (strip ==
nullptr) {
1833 if (fcu ==
nullptr) {
1843 fcu->rna_path_set(
"influence");
1864 if (fcu ==
nullptr) {
1874 fcu->rna_path_set(
"strip_time");
1887 else if (
rna_path ==
"influence") {
1902 if (
ELEM(
nullptr, ptr, prop)) {
1907 if (ptr->
type == RNA_NlaStrip) {
1911 static bool needs_init =
true;
1922 if (
ELEM(prop, prop_influence, prop_time)) {
1938 if (
ELEM(
nullptr, adt, strip)) {
1943 if (strip->
name[0] == 0) {
1944 switch (strip->
type) {
1969 if (&tstrip == strip) {
1988 sizeof(strip->
name));
2046 float *ps =
nullptr, *pe =
nullptr;
2047 float *ns =
nullptr, *ne =
nullptr;
2050 if (
ELEM(
nullptr, nls, nlt)) {
2053 if ((nlt->
prev ==
nullptr) && (nlt->
next ==
nullptr)) {
2075 if (((ps && ns) && (*ps > *ns)) || (ps)) {
2088 if (((pe && ne) && (*pe > *ne)) || (pe)) {
2117 if (strip->
start >= strip->
end || strip->
prev ==
nullptr || strip->
next ==
nullptr) {
2138 "While moving NLA strips, a transition strip could no longer be applied to the new "
2139 "positions and was removed.\n");
2153#define STASH_TRACK_NAME DATA_("[Action Stash]")
2191 for (prev_track = adt->
nla_tracks.last(); prev_track; prev_track = prev_track->
prev) {
2203 if (prev_track ==
nullptr) {
2255 if (strip ==
nullptr) {
2262 "Expecting un-assigning an action to always work when pushing down an NLA strip");
2291 NlaTrack **r_track_of_active_strip,
2300 for (
NlaTrack &nlt : *nla_tracks) {
2318 if (activeTrack ==
nullptr) {
2320 for (
NlaTrack &nlt : nla_tracks->items_reversed()) {
2331 if ((activeTrack) && (activeStrip ==
nullptr)) {
2336 activeStrip = &strip;
2342 *r_track_of_active_strip = activeTrack;
2343 *r_active_strip = activeStrip;
2365 if (
ELEM(
nullptr, activeTrack, activeStrip, activeStrip->
act)) {
2367 printf(
"NLA tweak-mode enter - neither active requirement found\n");
2368 printf(
"\tactiveTrack = %p, activeStrip = %p\n",
2369 static_cast<void *
>(activeTrack),
2370 static_cast<void *
>(activeStrip));
2380 if (strip.
act == activeStrip->
act) {
2411 if (activeStrip->
act) {
2417 printf(
"NLA tweak-mode enter - could not assign slot %s\n",
2418 strip_slot ? strip_slot->
identifier :
"-unassigned-");
2434 "Expecting un-assigning the Action to work (while entering NLA tweak mode)");
2440 prev_action, prev_slot_handle, owned_adt);
2443 "Expecting the Action+Slot of an NLA strip to be suitable for direct assignment as well");
2460 if (!active_strip || !active_strip->
act) {
2525 "When exiting tweak mode, syncing the tweaked Action slot should work");
2542 "When exiting tweak mode, unassigning the tweaked Action should work");
2578 printf(
"\033[38;5;214mNLA state");
2585 printf(
" - ADT is nil!\n");
2603 printf(
" SKEYS_COLLAPSED");
2606 printf(
" EVAL_UPPER_TRACKS");
2616 printf(
" - No tracks\n");
2619 printf(
" - Active track: %s (#%d)\n",
2645 printf(
"TEMPORARILY_ADDED ");
2648 printf(
"OVERRIDELIBRARY_LOCAL ");
2664 printf(
"USR_INFLUENCE ");
2670 printf(
"USR_TIME_CYCLIC ");
2685 printf(
"INVALID_LOCATION ");
2770 const bool has_tracks = !adt->
nla_tracks.is_empty();
2773 if (is_tweak_mode) {
2780 if (!is_tweak_mode) {
2799 if (!callback(strip)) {
Blender kernel action and pose functionality.
#define BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL(data_, func_call_)
#define BKE_LIB_FOREACHID_PROCESS_IDSUPER(data_, id_super_, cb_flag_)
#define NLASTRIP_MIN_LEN_THRESH
#define STRNCPY_UTF8(dst, src)
#define BLO_read_struct_list(reader, struct_name, list)
#define BLT_I18NCONTEXT_ID_ACTION
#define CTX_DATA_(context, msgid)
#define CLOG_ERROR(clg_ref,...)
#define ID_IS_LINKED(_id)
#define ID_IS_OVERRIDE_LIBRARY(_id)
Read Blender memory allocation and freeing.
#define BLI_assert_unreachable()
#define IN_RANGE(a, b, c)
#define UNUSED_VARS_NDEBUG(...)
#define BLI_assert_msg(a, msg)
constexpr const char * c_str() const
bool is_cyclic() const ATTR_WARN_UNUSED_RESULT
Slot * slot_for_handle(slot_handle_t handle)
void users_add(ID &animated_id)
static constexpr slot_handle_t unassigned
float length(VecOp< float, D >) RET
float3x3 scale(float3x3 mat, float2 scale)
ActionSlotAssignmentResult assign_action_slot_handle(NlaStrip &strip, slot_handle_t slot_handle, ID &animated_id)
bool assign_action(NlaStrip &strip, Action &action, ID &animated_id)
decltype(blender::ActionSlot::handle) slot_handle_t
ActionSlotAssignmentResult assign_tmpaction_and_slot_handle(bAction *action, slot_handle_t slot_handle, OwnedAnimData owned_adt)
bool generic_assign_action(ID &animated_id, bAction *action_to_assign, bAction *&action_ptr_ref, slot_handle_t &slot_handle_ref, char *slot_identifier)
ActionSlotAssignmentResult assign_action_and_slot(Action *action, Slot *slot_to_assign, ID &animated_id)
bool unassign_action(ID &animated_id)
ActionSlotAssignmentResult
bool foreach_strip(ID *id, FunctionRef< bool(NlaStrip *)> callback)
bool foreach_strip_adt(const AnimData &adt, FunctionRef< bool(NlaStrip *)> callback)
float nlastrip_get_frame(NlaStrip *strip, float cframe, short mode)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void BKE_nlastrips_add_strip_unsafe(ListBaseT< NlaStrip > *strips, NlaStrip *strip)
NlaTrack * BKE_nlatrack_new_head(ListBaseT< NlaTrack > *nla_tracks, bool is_liboverride)
@ NLATRACK_OVERRIDELIBRARY_LOCAL
@ NLATRACK_TEMPORARILY_ADDED
static float nlastrip_get_frame_actionclip(NlaStrip *strip, float cframe, short mode)
static bool is_nla_in_tweakmode(AnimData *adt)
bool BKE_nlatrack_has_animated_strips(NlaTrack *nlt)
float BKE_nla_tweakedit_remap(AnimData *adt, float cframe, eNlaTime_ConvertModes mode)
NlaStrip * BKE_nlastrip_find_by_name(NlaTrack *nlt, const char *name)
GHash * BLI_ghash_str_new(const char *info) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
void BKE_nlastrip_recalculate_blend(NlaStrip *strip)
void BLI_addhead(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BKE_nlameta_flush_transforms(NlaStrip *mstrip)
void BKE_nlatrack_free(NlaTrack *nlt, bool do_id_user)
NlaStrip * BKE_nla_add_soundstrip(Main *bmain, Scene *scene, Speaker *speaker)
@ NLASTRIP_FLAG_USR_INFLUENCE
@ NLASTRIP_FLAG_NO_TIME_MAP
@ NLASTRIP_FLAG_USR_TIME_CYCLIC
@ NLASTRIP_FLAG_TWEAKUSER
@ NLASTRIP_FLAG_EDIT_TOUCHED
@ NLASTRIP_FLAG_SYNC_LENGTH
@ NLASTRIP_FLAG_INVALID_LOCATION
@ NLASTRIP_FLAG_AUTO_BLENDS
@ NLASTRIP_FLAG_TEMP_META
struct NlaTrack * BKE_nlatrack_new()
void BKE_fcurves_free(ListBaseT< FCurve > *list)
void BKE_nlatrack_set_active(ListBaseT< NlaTrack > *tracks, NlaTrack *nlt)
void BKE_nla_blend_read_data(BlendDataReader *reader, ID *id_owner, ListBaseT< NlaTrack > *tracks)
@ NLASTRIP_EXTEND_NOTHING
bool BKE_nlatrack_add_strip(NlaTrack *nlt, NlaStrip *strip, bool is_liboverride)
void copy_fmodifiers(ListBaseT< FModifier > *dst, const ListBaseT< FModifier > *src)
@ ADT_NLA_EVAL_UPPER_TRACKS
@ ADT_NLA_SKEYS_COLLAPSED
float BKE_nla_clip_length_get_nonzero(const NlaStrip *strip)
void BKE_fcurve_blend_read_data_listbase(BlendDataReader *reader, ListBaseT< FCurve > *fcurves)
void BKE_fcurve_foreach_id(FCurve *fcu, LibraryForeachIDData *data)
NlaTrack * BKE_nlatrack_find_active(ListBaseT< NlaTrack > *tracks)
NlaTrack * BKE_nlatrack_find_tweaked(AnimData *adt)
static NlaStrip * find_active_strip_from_listbase(const NlaStrip *active_strip, const ListBaseT< NlaStrip > *strips_source, const ListBaseT< NlaStrip > *strips_dest)
static NlaStrip * nlastrip_new(bAction *act, ID &animated_id)
bool BKE_sound_info_get(Main *main, bSound *sound, SoundInfo *sound_info)
static NlaStrip * nlastrip_find_by_name(ListBaseT< NlaStrip > *strips, const char *name)
void BKE_fcurve_blend_write_listbase(BlendWriter *writer, ListBaseT< FCurve > *fcurves)
void BKE_nlastrip_validate_name(AnimData *adt, NlaStrip *strip)
void BKE_fmodifiers_blend_write(BlendWriter *writer, ListBaseT< FModifier > *fmodifiers)
void BKE_nla_liboverride_post_process(ID *id, AnimData *adt)
@ LIB_ID_CREATE_NO_USER_REFCOUNT
void BLI_ghash_insert(GHash *gh, void *key, void *val)
void BKE_nlastrip_validate_fcurves(NlaStrip *strip)
NlaTrack * BKE_nlatrack_new_before(ListBaseT< NlaTrack > *nla_tracks, NlaTrack *next, bool is_liboverride)
static bool nlastrip_validate_transition_start_end(ListBaseT< NlaStrip > *strips, NlaStrip *strip)
void BKE_nla_tweakmode_exit(OwnedAnimData owned_adt)
bool BKE_nlatrack_get_bounds(NlaTrack *nlt, float bounds[2])
static void nla_tweakmode_exit_nofollowptr(AnimData *adt)
AnimData * BKE_animdata_from_id(const ID *id)
size_t void BLI_uniquename_cb(FunctionRef< bool(StringRefNull)> unique_check, const char *defname, char delim, char *name, size_t name_maxncpy) ATTR_NONNULL(2
NlaStrip * BKE_nlastrip_new(bAction *act, ID &animated_id)
bool BKE_nlatrack_is_nonlocal_in_liboverride(const ID *id, const NlaTrack *nlt)
void BLI_uniquename(const ListBase *list, void *vlink, const char *defname, char delim, int name_offset, size_t name_maxncpy) ATTR_NONNULL(1
void BKE_nla_strip_foreach_id(NlaStrip *strip, LibraryForeachIDData *data)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
bool BKE_nlastrip_has_curves_for_property(const PointerRNA *ptr, const PropertyRNA *prop)
bool BKE_nlastrip_controlcurve_remove(NlaStrip *strip, FCurve *fcurve)
void BKE_nla_clip_length_ensure_nonzero(const float *actstart, float *r_actend)
VecBase< float, 2 > float2
void BKE_nla_validate_state(AnimData *adt)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
bool BKE_nlatrack_has_strips(ListBaseT< NlaTrack > *tracks)
void BKE_fcurves_copy(ListBaseT< FCurve > *dst, ListBaseT< FCurve > *src)
bool BKE_nlatrack_is_enabled(const AnimData &adt, const NlaTrack &nlt)
void BLI_ghash_free(GHash *gh, GHashKeyFreeFP keyfreefp, GHashValFreeFP valfreefp)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BKE_nla_tracks_free(ListBaseT< NlaTrack > *tracks, bool do_id_user)
NlaStrip * BKE_nlastrip_find_active(NlaTrack *nlt)
BMesh const char void * data
void BLI_insertlinkafter(ListBase *listbase, void *vprevlink, void *vnewlink) ATTR_NONNULL(1)
NlaStrip * BKE_nlastrip_copy(Main *bmain, NlaStrip *strip, bool use_same_action, int flag)
bool BKE_nlastrips_has_space(ListBaseT< NlaStrip > *strips, float start, float end)
@ NLASTRIP_TYPE_TRANSITION
void BKE_nla_action_pushdown(OwnedAnimData owned_adt, bool is_liboverride)
float BKE_nlastrip_compute_frame_to_next_strip(NlaStrip *strip)
NlaTrack * BKE_nlatrack_new_tail(ListBaseT< NlaTrack > *nla_tracks, const bool is_liboverride)
NlaTrack * BKE_nlatrack_copy(Main *bmain, NlaTrack *nlt, bool use_same_actions, int flag)
void BKE_nla_tracks_copy(Main *bmain, ListBaseT< NlaTrack > *dst, const ListBaseT< NlaTrack > *src, int flag)
void BKE_nla_tweakmode_clear_flags(AnimData *adt)
bool BKE_nla_action_slot_is_stashed(AnimData *adt, bAction *act, animrig::slot_handle_t slot_handle)
static bool visit_strip(NlaStrip *strip, FunctionRef< bool(NlaStrip *)> callback)
NlaStrip * BKE_nlastrip_next_in_track(NlaStrip *strip, bool skip_transitions)
void BKE_nlatrack_solo_toggle(AnimData *adt, NlaTrack *nlt)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
PropertyRNA * RNA_struct_type_find_property(StructRNA *srna, const char *identifier)
static void update_active_track(AnimData *adt_dest, const AnimData *adt_source)
void BKE_nlatrack_insert_before(ListBaseT< NlaTrack > *nla_tracks, NlaTrack *next, NlaTrack *new_track, bool is_liboverride)
void BKE_nlastrips_sort_strips(ListBaseT< NlaStrip > *strips)
bool BKE_nlastrip_within_bounds(NlaStrip *strip, float min, float max)
static void blend_write_nla_strips(BlendWriter *writer, ListBaseT< NlaStrip > *strips)
void BKE_nla_blend_write(BlendWriter *writer, ListBaseT< NlaTrack > *tracks)
void BKE_nlastrip_set_active(AnimData *adt, NlaStrip *strip)
void free_fmodifiers(ListBaseT< FModifier > *modifiers)
void BLI_insertlinkbefore(ListBase *listbase, void *vnextlink, void *vnewlink) ATTR_NONNULL(1)
void RNA_float_set(PointerRNA *ptr, const char *name, float value)
float BKE_nlastrip_compute_frame_from_previous_strip(NlaStrip *strip)
void BKE_nlastrip_recalculate_bounds_sync_action(NlaStrip *strip)
void BKE_nlastrips_clear_metas(ListBaseT< NlaStrip > *strips, bool only_sel, bool only_temp)
NlaStrip * BKE_nlastrip_prev_in_track(NlaStrip *strip, bool skip_transitions)
static void nla_tweakmode_exit_sync_strip_lengths(AnimData *adt)
void BKE_nla_tweakmode_exit_nofollowptr(AnimData *adt)
static void blend_data_read_nla_strips(BlendDataReader *reader, ListBaseT< NlaStrip > *strips)
void BKE_fcurve_free(FCurve *fcu)
NlaTrack * BKE_nlatrack_new_after(ListBaseT< NlaTrack > *nla_tracks, NlaTrack *prev, bool is_liboverride)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
static void nla_tweakmode_find_active(ListBaseT< NlaTrack > *nla_tracks, NlaTrack **r_track_of_active_strip, NlaStrip **r_active_strip)
static void update_active_strip(AnimData *adt_dest, NlaTrack *track_dest, const AnimData *adt_source, const NlaTrack *track_source)
void BKE_nlastrip_recalculate_bounds(NlaStrip *strip)
static float nlastrip_get_frame_transition(NlaStrip *strip, float cframe, short mode)
void BKE_nlatrack_remove_strip(NlaTrack *track, NlaStrip *strip)
NlaStrip * BKE_nlastrip_new_for_slot(bAction *act, animrig::slot_handle_t slot_handle, ID &animated_id)
void BKE_fmodifiers_blend_read_data(BlendDataReader *reader, ListBaseT< FModifier > *fmodifiers, FCurve *curve)
bool BKE_nlastrips_add_strip(ListBaseT< NlaStrip > *strips, NlaStrip *strip)
void BKE_nlastrip_remove(ListBaseT< NlaStrip > *strips, NlaStrip *strip)
void BKE_nlatrack_remove_and_free(ListBaseT< NlaTrack > *tracks, NlaTrack *nlt, bool do_id_user)
NlaStrip * BKE_nlastack_add_strip(OwnedAnimData owned_adt, const bool is_liboverride)
void BKE_nla_debug_print_flags(AnimData *adt, ID *owner_id)
void BKE_nlatrack_sort_strips(NlaTrack *nlt)
ID * BKE_id_copy_ex(Main *bmain, const ID *id, ID **new_id_p, int flag)
static void nlastrip_set_initial_length(NlaStrip *strip)
void BKE_nlastrips_make_metas(ListBaseT< NlaStrip > *strips, bool is_temp)
static void BKE_nlastrip_validate_autoblends(NlaTrack *nlt, NlaStrip *nls)
FCurve * BKE_fcurve_find(ListBaseT< FCurve > *list, const char rna_path[], int array_index)
bool BKE_nlatrack_has_space(NlaTrack *nlt, float start, float end)
static NlaStrip * nlastrip_find_active(ListBaseT< NlaStrip > *strips)
bool BKE_nlameta_add_strip(NlaStrip *mstrip, NlaStrip *strip)
bool BKE_nla_action_stash(OwnedAnimData owned_adt, bool is_liboverride)
bool BLI_ghash_haskey(const GHash *gh, const void *key) ATTR_WARN_UNUSED_RESULT
void BKE_nlastrips_clear_metastrip(ListBaseT< NlaStrip > *strips, NlaStrip *strip)
void BKE_nlastrip_remove_and_free(ListBaseT< NlaStrip > *strips, NlaStrip *strip, const bool do_id_user)
static void nlastrip_fix_resize_overlaps(NlaStrip *strip)
bool BKE_nla_tweakmode_enter(OwnedAnimData owned_adt)
void BKE_nlatrack_remove(ListBaseT< NlaTrack > *tracks, NlaTrack *nlt)
FCurve * BKE_fcurve_create()
static void nlastrip_get_endpoint_overlaps(NlaStrip *strip, NlaTrack *track, float **start, float **end)
float BKE_nlastrip_distance_to_frame(const NlaStrip *strip, float timeline_frame)
bool BKE_nlatracks_have_animated_strips(ListBaseT< NlaTrack > *tracks)
void BKE_nlastrip_free(NlaStrip *strip, bool do_id_user)
void BKE_nlatrack_insert_after(ListBaseT< NlaTrack > *nla_tracks, NlaTrack *prev, NlaTrack *new_track, bool is_liboverride)
void BKE_nla_tracks_copy_from_adt(Main *bmain, AnimData *adt_dest, const AnimData *adt_source, int flag)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
char tmp_last_slot_identifier[258]
eNlaStrip_Blend_Mode act_blendmode
char last_slot_identifier[258]
eNlaStrip_Extrapolate_Mode act_extendmode
ListBaseT< NlaTrack > nla_tracks
eBezTriple_Interpolation ipo
void write_struct_list(const ListBaseT< T > *list, BlendStructWriterTypedFn< T > fn=nullptr)
void write_struct(const T *data, BlendStructWriterTypedFn< T > fn=nullptr)
eFCurve_Smoothing auto_smoothing
int32_t action_slot_handle
NlaStripRuntime * runtime
eNlaStrip_Blend_Mode blendmode
ListBaseT< FCurve > fcurves
ListBaseT< FModifier > modifiers
eNlaStrip_Extrapolate_Mode extendmode
ListBaseT< NlaStrip > strips
ListBaseT< NlaStrip > strips