46#include "RNA_prototypes.hh"
75 if (strip ==
nullptr) {
86 if (strip->
act !=
nullptr && do_id_user) {
105 if (nlt ==
nullptr) {
111 stripn = strip->
next;
129 for (nlt =
static_cast<NlaTrack *
>(
tracks->first); nlt; nlt = nltn) {
142 const bool use_same_action,
151 if (strip ==
nullptr) {
157 strip_d->
next = strip_d->
prev =
nullptr;
161 if (use_same_action) {
191 const bool use_same_actions,
198 if (nlt ==
nullptr) {
204 nlt_d->
next = nlt_d->
prev =
nullptr;
223 if (
ELEM(
nullptr, dst, src)) {
248 "Expecting the same number of source and destination strips");
252 if (strip_dest ==
nullptr) {
258 if (strip_source == active_strip) {
265 "Expecting topology of source and destination strips to be equal");
266 if (src_is_meta && dst_is_meta) {
268 active_strip, &strip_source->
strips, &strip_dest->
strips);
269 if (found_in_meta !=
nullptr) {
270 return found_in_meta;
274 strip_dest = strip_dest->
next;
309 if (track_source == adt_source->
act_track) {
318 track_dest = track_dest->
next;
323 const bool source_has_actstrip = adt_source->
actstrip !=
nullptr;
324 const bool dest_has_actstrip = adt_dest->
actstrip !=
nullptr;
326 "Active strip did not copy correctly");
362 if (is_liboverride) {
382 sizeof(new_track->
name));
388 const bool is_liboverride)
395 if (prev ==
nullptr) {
407 first_local = first_local->
next)
410 prev = first_local !=
nullptr ? first_local->
prev : prev;
423 sizeof(new_track->
name));
464 if (*r_actend <= *actstart) {
465 *r_actend = *actstart + 1.0f;
482 if (act ==
nullptr) {
501 Action &action = act->wrap();
525 strip->
actend = frame_range[1];
553 *strip, slot_handle, animated_id);
584 if (strip ==
nullptr) {
616 if (speaker->
sound) {
714 return strip->
end - scale * (cframe - strip->
actstart);
717 return (strip->
end + (strip->
actstart * scale - cframe)) / scale;
730 return strip->
actend -
fmodf(cframe - strip->
start, actlength * scale) / scale;
781 switch (strip->
type) {
844 if ((strips ==
nullptr) ||
IS_EQF(start, end)) {
848 puts(
"BKE_nlastrips_has_space() error... start and end arguments swapped");
849 std::swap(start, end);
857 if (strip->start >= end) {
864 if ((strip->end > start) || (strip->end > end)) {
879 if (
ELEM(
nullptr, strips, strips->
first)) {
886 for (strip =
static_cast<NlaStrip *
>(strips->
first); strip; strip = stripn) {
889 stripn = strip->
next;
898 if (sstrip->start <= strip->
start) {
918 bool not_added =
true;
926 if (ns->start >= strip->
start) {
940 if (
ELEM(
nullptr, strips, strip)) {
960 if (
ELEM(
nullptr, strips, strips->
first)) {
965 for (strip =
static_cast<NlaStrip *
>(strips->
first); strip; strip = stripn) {
966 stripn = strip->
next;
970 if (mstrip ==
nullptr) {
1012 if (
ELEM(
nullptr, strips, strip)) {
1034 if (
ELEM(
nullptr, strips, strips->
first)) {
1039 for (strip =
static_cast<NlaStrip *
>(strips->
first); strip; strip = stripn) {
1040 stripn = strip->
next;
1057 if (
ELEM(
nullptr, mstrip, strip)) {
1083 if (strip->
end > mstrip->
end) {
1090 mstrip->
end = strip->
end;
1104 float oStart, oEnd, offset;
1106 short scaleChanged = 0;
1125 offset = mstrip->
start - oStart;
1128 oLen = oEnd - oStart;
1129 nLen = mstrip->
end - mstrip->
start;
1130 scaleChanged = !
IS_EQF(oLen, nLen);
1147 p1 = (strip->start - oStart) / oLen;
1148 p2 = (strip->end - oStart) / oLen;
1162 strip->start = (p1 * nLen) + mstrip->
start;
1163 strip->end = (p2 * nLen) + mstrip->
start;
1166 const double action_len = strip->actend - strip->actstart;
1167 const double repeated_len = action_len * strip->repeat;
1168 const double strip_len = strip->end - strip->start;
1169 strip->scale = strip_len / repeated_len;
1173 strip->start += offset;
1174 strip->end += offset;
1217 if (adt ==
nullptr) {
1229 printf(
"%s: Active strip (%p, %s) not in NLA track found (%p, %s)\n",
1305 puts(
"BKE_nlatrack_has_space() error... start and end arguments swapped");
1306 std::swap(start, end);
1345 if (
ELEM(
nullptr, nlt, strip)) {
1417 if (inner_active !=
nullptr) {
1418 return inner_active;
1435 limit_prev = strip->
prev->
end;
1462 while (
next !=
nullptr) {
1476 while (prev !=
nullptr) {
1489 if (nlt ==
nullptr) {
1511 if (adt ==
nullptr) {
1540 if (inner_strip !=
nullptr) {
1555 const float stripLen = (strip) ? strip->
end - strip->
start : 0.0f;
1559 if ((strip ==
nullptr) ||
IS_EQF(stripLen, 0.0f) ||
IS_EQF(boundsLen, 0.0f)) {
1567 if ((stripLen < boundsLen) &&
1572 if ((stripLen > boundsLen) &&
1584 if (timeline_frame < strip->start) {
1585 return strip->
start - timeline_frame;
1587 if (strip->
end < timeline_frame) {
1588 return timeline_frame - strip->
end;
1600 float offset = 0.0f;
1611 else if (strip->
end < nls->
end) {
1624 for (; nls; nls = nls->
next) {
1625 nls->
start += offset;
1630 else if (strip->
end > nls->
start) {
1637 for (; nls; nls = nls->
next) {
1638 nls->
start += offset;
1648 float offset = 0.0f;
1672 for (; nls; nls = nls->
prev) {
1673 nls->
start -= offset;
1678 else if (strip->
start < nls->
end) {
1685 for (; nls; nls = nls->
prev) {
1686 nls->
start -= offset;
1695 float prev_actstart;
1705 strip->
actend = frame_range[1];
1732 if (
IS_EQF(mapping, 0.0f) == 0) {
1733 strip->
end = (actlen * mapping) + strip->
start;
1748 const double strip_len = strip->
end - strip->
start;
1749 double blend_in = strip->
blendin;
1750 double blend_out = strip->
blendout;
1752 double blend_in_max = strip_len - blend_out;
1757 CLAMP(blend_in, 0, blend_in_max);
1758 CLAMP(blend_out, 0, strip_len - blend_in);
1775 if (strip->fcurves.first) {
1807 if (strip ==
nullptr) {
1817 if (fcu ==
nullptr) {
1848 if (fcu ==
nullptr) {
1885 if (
ELEM(
nullptr,
ptr, prop)) {
1890 if (
ptr->type == &RNA_NlaStrip) {
1894 static bool needs_init =
true;
1905 if (
ELEM(prop, prop_influence, prop_time)) {
1921 if (
ELEM(
nullptr, adt, strip)) {
1926 if (strip->
name[0] == 0) {
1927 switch (strip->
type) {
1952 if (tstrip == strip) {
1973 sizeof(strip->
name));
1998 if ((nls->start <= strip->
start) && (nls->end >= strip->
end)) {
2005 if (nls->end < strip->
start) {
2008 if (nls->start > strip->
end) {
2015 if ((nls->next ==
nullptr) ||
IS_EQF(nls->next->start, nls->end) == 0) {
2016 if ((nls->end > strip->
start) && (nls->end < strip->
end)) {
2020 if ((nls->prev ==
nullptr) ||
IS_EQF(nls->prev->end, nls->start) == 0) {
2021 if ((nls->start < strip->
end) && (nls->start > strip->
start)) {
2031 float *ps =
nullptr, *pe =
nullptr;
2032 float *ns =
nullptr, *ne =
nullptr;
2035 if (
ELEM(
nullptr, nls, nlt)) {
2038 if ((nlt->
prev ==
nullptr) && (nlt->
next ==
nullptr)) {
2060 if (((ps && ns) && (*ps > *ns)) || (ps)) {
2073 if (((pe && ne) && (*pe > *ne)) || (pe)) {
2102 if (strip->
start >= strip->
end || strip->
prev ==
nullptr || strip->
next ==
nullptr) {
2123 "While moving NLA strips, a transition strip could no longer be applied to the new "
2124 "positions and was removed.\n");
2138#define STASH_TRACK_NAME DATA_("[Action Stash]")
2147 if (strip->act == act && strip->action_slot_handle == slot_handle) {
2177 prev_track = prev_track->
prev)
2190 if (prev_track ==
nullptr) {
2242 if (strip ==
nullptr) {
2249 "Expecting un-assigning an action to always work when pushing down an NLA strip");
2278 NlaTrack **r_track_of_active_strip,
2305 if (activeTrack ==
nullptr) {
2318 if ((activeTrack) && (activeStrip ==
nullptr)) {
2323 activeStrip = strip;
2329 *r_track_of_active_strip = activeTrack;
2330 *r_active_strip = activeStrip;
2352 if (
ELEM(
nullptr, activeTrack, activeStrip, activeStrip->
act)) {
2354 printf(
"NLA tweak-mode enter - neither active requirement found\n");
2355 printf(
"\tactiveTrack = %p, activeStrip = %p\n", (
void *)activeTrack, (
void *)activeStrip);
2365 if (strip->act == activeStrip->
act) {
2396 if (activeStrip->
act) {
2403 printf(
"NLA tweak-mode enter - could not assign slot %s\n",
2404 strip_slot ? strip_slot->
identifier :
"-unassigned-");
2425 "Expecting un-assigning the Action to work (while entering NLA tweak mode)");
2431 prev_action, prev_slot_handle, owned_adt);
2434 "Expecting the Action+Slot of an NLA strip to be suitable for direct assignment as well");
2451 if (!active_strip || !active_strip->
act) {
2516 "When exiting tweak mode, syncing the tweaked Action slot should work");
2533 "When exiting tweak mode, unassigning the tweaked Action should work");
2546 "when a slot is assigned, the action should layered");
2571 printf(
"\033[38;5;214mNLA state");
2578 printf(
" - ADT is nil!\n");
2596 printf(
" SKEYS_COLLAPSED");
2599 printf(
" EVAL_UPPER_TRACKS");
2609 printf(
" - No tracks\n");
2612 printf(
" - Active track: %s (#%d)\n",
2618 printf(
" - Track #%d %s: ", nlt->index, nlt->name);
2638 printf(
"TEMPORARILY_ADDED ");
2641 printf(
"OVERRIDELIBRARY_LOCAL ");
2646 printf(
" - Strip %s: ", strip->name);
2657 printf(
"USR_INFLUENCE ");
2663 printf(
"USR_TIME_CYCLIC ");
2678 printf(
"INVALID_LOCATION ");
2766 if (is_tweak_mode) {
2773 if (!is_tweak_mode) {
2792 if (!callback(strip)) {
Blender kernel action and pose functionality.
AnimData * BKE_animdata_from_id(const ID *id)
FCurve * BKE_fcurve_create()
void BKE_fcurve_foreach_id(FCurve *fcu, LibraryForeachIDData *data)
void copy_fmodifiers(ListBase *dst, const ListBase *src)
void BKE_fcurve_blend_write_listbase(BlendWriter *writer, ListBase *fcurves)
FCurve * BKE_fcurve_find(ListBase *list, const char rna_path[], int array_index)
void BKE_fmodifiers_blend_write(BlendWriter *writer, ListBase *fmodifiers)
void BKE_fcurve_blend_read_data_listbase(BlendDataReader *reader, ListBase *fcurves)
void BKE_fmodifiers_blend_read_data(BlendDataReader *reader, ListBase *fmodifiers, FCurve *curve)
void BKE_fcurves_free(ListBase *list)
void BKE_fcurves_copy(ListBase *dst, ListBase *src)
void free_fmodifiers(ListBase *modifiers)
void BKE_fcurve_free(FCurve *fcu)
ID * BKE_id_copy_ex(Main *bmain, const ID *id, ID **new_id_p, int flag)
@ LIB_ID_CREATE_NO_USER_REFCOUNT
#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
bool BKE_sound_info_get(struct Main *main, struct bSound *sound, SoundInfo *sound_info)
#define BLI_assert_unreachable()
#define BLI_assert_msg(a, msg)
bool BLI_ghash_haskey(const GHash *gh, const void *key) ATTR_WARN_UNUSED_RESULT
GHash * BLI_ghash_str_new(const char *info) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
void BLI_ghash_insert(GHash *gh, void *key, void *val)
void BLI_ghash_free(GHash *gh, GHashKeyFreeFP keyfreefp, GHashValFreeFP valfreefp)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
#define LISTBASE_FOREACH(type, var, list)
BLI_INLINE void BLI_listbase_clear(ListBase *lb)
BLI_INLINE bool BLI_listbase_is_empty(const ListBase *lb)
#define LISTBASE_FOREACH_MUTABLE(type, var, list)
#define LISTBASE_FOREACH_BACKWARD(type, var, list)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_insertlinkafter(ListBase *listbase, void *vprevlink, void *vnewlink) ATTR_NONNULL(1)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_addhead(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
int BLI_listbase_count(const ListBase *listbase) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void BLI_insertlinkbefore(ListBase *listbase, void *vnextlink, void *vnewlink) ATTR_NONNULL(1)
char * BLI_strdupn(const char *str, size_t len) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
#define STRNCPY_UTF8(dst, src)
size_t void BLI_uniquename_cb(blender::FunctionRef< bool(blender::StringRefNull)> unique_check, const char *defname, char delim, char *name, size_t name_maxncpy) ATTR_NONNULL(2
void BLI_uniquename(const struct ListBase *list, void *vlink, const char *defname, char delim, int name_offset, size_t name_maxncpy) ATTR_NONNULL(1
#define IN_RANGE(a, b, c)
#define UNUSED_VARS_NDEBUG(...)
#define BLO_write_struct(writer, struct_name, data_ptr)
#define BLO_read_struct_list(reader, struct_name, list)
#define BLO_write_struct_list(writer, struct_name, list_ptr)
#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)
@ NLASTRIP_FLAG_USR_INFLUENCE
@ NLASTRIP_FLAG_INVALID_LOCATION
@ NLASTRIP_FLAG_TEMP_META
@ NLASTRIP_FLAG_AUTO_BLENDS
@ NLASTRIP_FLAG_USR_TIME_CYCLIC
@ NLASTRIP_FLAG_NO_TIME_MAP
@ NLASTRIP_FLAG_TWEAKUSER
@ NLASTRIP_FLAG_EDIT_TOUCHED
@ NLASTRIP_FLAG_SYNC_LENGTH
@ ADT_NLA_SKEYS_COLLAPSED
@ ADT_NLA_EVAL_UPPER_TRACKS
@ NLASTRIP_EXTEND_NOTHING
@ NLASTRIP_TYPE_TRANSITION
@ NLATRACK_TEMPORARILY_ADDED
@ NLATRACK_OVERRIDELIBRARY_LOCAL
Read Guarded memory(de)allocation.
float nlastrip_get_frame(NlaStrip *strip, float cframe, short mode)
bool BKE_nlatrack_get_bounds(NlaTrack *nlt, float bounds[2])
static void blend_write_nla_strips(BlendWriter *writer, ListBase *strips)
static void nla_tweakmode_exit_nofollowptr(AnimData *adt)
void BKE_nlameta_flush_transforms(NlaStrip *mstrip)
static bool is_nla_in_tweakmode(AnimData *adt)
float BKE_nlastrip_distance_to_frame(const NlaStrip *strip, const float timeline_frame)
bool BKE_nlatrack_has_animated_strips(NlaTrack *nlt)
void BKE_nlastrip_remove_and_free(ListBase *strips, NlaStrip *strip, const bool do_id_user)
void BKE_nlastrips_clear_metastrip(ListBase *strips, NlaStrip *strip)
static bool nlastrip_validate_transition_start_end(ListBase *strips, NlaStrip *strip)
static void nla_tweakmode_find_active(const ListBase *nla_tracks, NlaTrack **r_track_of_active_strip, NlaStrip **r_active_strip)
void BKE_nla_debug_print_flags(AnimData *adt, ID *owner_id)
static void update_active_track(AnimData *adt_dest, const AnimData *adt_source)
void BKE_nla_tracks_copy(Main *bmain, ListBase *dst, const ListBase *src, const int flag)
void BKE_nla_clip_length_ensure_nonzero(const float *actstart, float *r_actend)
void BKE_nlastrip_recalculate_bounds_sync_action(NlaStrip *strip)
static float nlastrip_get_frame_actionclip(NlaStrip *strip, float cframe, short mode)
static NlaStrip * nlastrip_new(bAction *act, ID &animated_id)
void BKE_nlastrips_sort_strips(ListBase *strips)
void BKE_nlastrips_clear_metas(ListBase *strips, bool only_sel, bool only_temp)
float BKE_nlastrip_compute_frame_to_next_strip(NlaStrip *strip)
float BKE_nla_tweakedit_remap(AnimData *adt, const float cframe, const eNlaTime_ConvertModes mode)
static void nlastrip_get_endpoint_overlaps(NlaStrip *strip, NlaTrack *track, float **start, float **end)
void BKE_nla_tracks_copy_from_adt(Main *bmain, AnimData *adt_dest, const AnimData *adt_source, const int flag)
static NlaStrip * nlastrip_find_active(ListBase *strips)
void BKE_nla_validate_state(AnimData *adt)
void BKE_nla_tweakmode_exit_nofollowptr(AnimData *adt)
NlaStrip * BKE_nlastrip_prev_in_track(NlaStrip *strip, bool skip_transitions)
NlaTrack * BKE_nlatrack_new()
void BKE_nlatrack_solo_toggle(AnimData *adt, NlaTrack *nlt)
bool BKE_nla_tweakmode_enter(const OwnedAnimData owned_adt)
bool BKE_nlastrip_controlcurve_remove(NlaStrip *strip, FCurve *fcurve)
static NlaStrip * find_active_strip_from_listbase(const NlaStrip *active_strip, const ListBase *strips_source, const ListBase *strips_dest)
void BKE_nlatrack_free(NlaTrack *nlt, const bool do_id_user)
NlaStrip * BKE_nlastrip_next_in_track(NlaStrip *strip, bool skip_transitions)
static float nlastrip_get_frame_transition(NlaStrip *strip, float cframe, short mode)
NlaStrip * BKE_nlastrip_new(bAction *act, ID &animated_id)
NlaStrip * BKE_nlastrip_find_by_name(NlaTrack *nlt, const char *name)
void BKE_nlatrack_remove_strip(NlaTrack *track, NlaStrip *strip)
void BKE_nlastrips_add_strip_unsafe(ListBase *strips, NlaStrip *strip)
static void blend_data_read_nla_strips(BlendDataReader *reader, ListBase *strips)
void BKE_nlastrip_recalculate_bounds(NlaStrip *strip)
NlaTrack * BKE_nlatrack_new_after(ListBase *nla_tracks, NlaTrack *prev, bool is_liboverride)
bool BKE_nlastrips_has_space(ListBase *strips, float start, float end)
void BKE_nla_tweakmode_exit(const OwnedAnimData owned_adt)
bool BKE_nlastrips_add_strip(ListBase *strips, NlaStrip *strip)
NlaTrack * BKE_nlatrack_new_tail(ListBase *nla_tracks, const bool is_liboverride)
bool BKE_nlastrip_has_curves_for_property(const PointerRNA *ptr, const PropertyRNA *prop)
static NlaStrip * nlastrip_find_by_name(ListBase *strips, const char *name)
void BKE_nlastrip_remove(ListBase *strips, NlaStrip *strip)
void BKE_nlastrip_recalculate_blend(NlaStrip *strip)
NlaStrip * BKE_nlastrip_new_for_slot(bAction *act, blender::animrig::slot_handle_t slot_handle, ID &animated_id)
NlaTrack * BKE_nlatrack_find_tweaked(AnimData *adt)
void BKE_nlastrip_set_active(AnimData *adt, NlaStrip *strip)
void BKE_nlatrack_insert_after(ListBase *nla_tracks, NlaTrack *prev, NlaTrack *new_track, const bool is_liboverride)
NlaTrack * BKE_nlatrack_new_head(ListBase *nla_tracks, bool is_liboverride)
static void nla_tweakmode_exit_sync_strip_lengths(AnimData *adt)
float BKE_nla_clip_length_get_nonzero(const NlaStrip *strip)
void BKE_nla_blend_write(BlendWriter *writer, ListBase *tracks)
bool BKE_nla_action_stash(const OwnedAnimData owned_adt, const bool is_liboverride)
void BKE_nla_tracks_free(ListBase *tracks, bool do_id_user)
bool BKE_nlatrack_has_space(NlaTrack *nlt, float start, float end)
void BKE_nlatrack_sort_strips(NlaTrack *nlt)
NlaStrip * BKE_nlastrip_find_active(NlaTrack *nlt)
void BKE_nla_liboverride_post_process(ID *id, AnimData *adt)
NlaStrip * BKE_nla_add_soundstrip(Main *bmain, Scene *scene, Speaker *speaker)
bool BKE_nla_action_slot_is_stashed(AnimData *adt, bAction *act, const blender::animrig::slot_handle_t slot_handle)
static void BKE_nlastrip_validate_autoblends(NlaTrack *nlt, NlaStrip *nls)
NlaStrip * BKE_nlastrip_copy(Main *bmain, NlaStrip *strip, const bool use_same_action, const int flag)
NlaTrack * BKE_nlatrack_find_active(ListBase *tracks)
void BKE_nlatrack_set_active(ListBase *tracks, NlaTrack *nlt_a)
static void nlastrip_fix_resize_overlaps(NlaStrip *strip)
NlaTrack * BKE_nlatrack_copy(Main *bmain, NlaTrack *nlt, const bool use_same_actions, const int flag)
void BKE_nlatrack_insert_before(ListBase *nla_tracks, NlaTrack *next, NlaTrack *new_track, bool is_liboverride)
bool BKE_nlatrack_is_nonlocal_in_liboverride(const ID *id, const NlaTrack *nlt)
float BKE_nlastrip_compute_frame_from_previous_strip(NlaStrip *strip)
bool BKE_nlastrip_within_bounds(NlaStrip *strip, float min, float max)
static void update_active_strip(AnimData *adt_dest, NlaTrack *track_dest, const AnimData *adt_source, const NlaTrack *track_source)
NlaStrip * BKE_nlastack_add_strip(const OwnedAnimData owned_adt, const bool is_liboverride)
void BKE_nla_tweakmode_clear_flags(AnimData *adt)
bool BKE_nlatrack_add_strip(NlaTrack *nlt, NlaStrip *strip, const bool is_liboverride)
void BKE_nlatrack_remove(ListBase *tracks, NlaTrack *nlt)
void BKE_nlastrip_validate_name(AnimData *adt, NlaStrip *strip)
bool BKE_nlameta_add_strip(NlaStrip *mstrip, NlaStrip *strip)
bool BKE_nlatrack_has_strips(ListBase *tracks)
void BKE_nla_action_pushdown(const OwnedAnimData owned_adt, const bool is_liboverride)
bool BKE_nlatracks_have_animated_strips(ListBase *tracks)
void BKE_nlastrip_free(NlaStrip *strip, const bool do_id_user)
static bool visit_strip(NlaStrip *strip, blender::FunctionRef< bool(NlaStrip *)> callback)
void BKE_nlatrack_remove_and_free(ListBase *tracks, NlaTrack *nlt, bool do_id_user)
void BKE_nlastrip_validate_fcurves(NlaStrip *strip)
bool BKE_nlatrack_is_enabled(const AnimData &adt, const NlaTrack &nlt)
NlaTrack * BKE_nlatrack_new_before(ListBase *nla_tracks, NlaTrack *next, bool is_liboverride)
void BKE_nla_blend_read_data(BlendDataReader *reader, ID *id_owner, ListBase *tracks)
void BKE_nla_strip_foreach_id(NlaStrip *strip, LibraryForeachIDData *data)
void BKE_nlastrips_make_metas(ListBase *strips, bool is_temp)
static void nlastrip_set_initial_length(NlaStrip *strip)
BMesh const char void * data
constexpr const char * c_str() const
bool is_cyclic() const ATTR_WARN_UNUSED_RESULT
bool is_action_layered() const
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
void * MEM_callocN(size_t len, const char *str)
void * MEM_dupallocN(const void *vmemh)
void MEM_freeN(void *vmemh)
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)
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)
decltype(::ActionSlot::handle) slot_handle_t
bool unassign_action(ID &animated_id)
ActionSlotAssignmentResult
bool foreach_strip(ID *id, blender::FunctionRef< bool(NlaStrip *)> callback)
bool foreach_strip_adt(const AnimData &adt, blender::FunctionRef< bool(NlaStrip *)> callback)
PropertyRNA * RNA_struct_type_find_property(StructRNA *srna, const char *identifier)
void RNA_float_set(PointerRNA *ptr, const char *name, float value)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
char tmp_last_slot_identifier[258]
char last_slot_identifier[258]
int32_t action_slot_handle