45#include "RNA_prototypes.hh"
74 if (strip ==
nullptr) {
85 if (strip->
act !=
nullptr && do_id_user) {
104 if (nlt ==
nullptr) {
110 stripn = strip->
next;
128 for (nlt =
static_cast<NlaTrack *
>(
tracks->first); nlt; nlt = nltn) {
141 const bool use_same_action,
150 if (strip ==
nullptr) {
156 strip_d->
next = strip_d->
prev =
nullptr;
160 if (use_same_action) {
190 const bool use_same_actions,
197 if (nlt ==
nullptr) {
203 nlt_d->
next = nlt_d->
prev =
nullptr;
222 if (
ELEM(
nullptr, dst, src)) {
247 "Expecting the same number of source and destination strips");
251 if (strip_dest ==
nullptr) {
257 if (strip_source == active_strip) {
264 "Expecting topology of source and destination strips to be equal");
265 if (src_is_meta && dst_is_meta) {
267 active_strip, &strip_source->
strips, &strip_dest->
strips);
268 if (found_in_meta !=
nullptr) {
269 return found_in_meta;
273 strip_dest = strip_dest->
next;
308 if (track_source == adt_source->
act_track) {
317 track_dest = track_dest->
next;
322 const bool source_has_actstrip = adt_source->
actstrip !=
nullptr;
323 const bool dest_has_actstrip = adt_dest->
actstrip !=
nullptr;
325 "Active strip did not copy correctly");
361 if (is_liboverride) {
381 sizeof(new_track->
name));
387 const bool is_liboverride)
394 if (prev ==
nullptr) {
406 first_local = first_local->
next)
409 prev = first_local !=
nullptr ? first_local->
prev : prev;
422 sizeof(new_track->
name));
463 if (*r_actend <= *actstart) {
464 *r_actend = *actstart + 1.0f;
481 if (act ==
nullptr) {
500 Action &action = act->wrap();
524 strip->
actend = frame_range[1];
552 *strip, slot_handle, animated_id);
583 if (strip ==
nullptr) {
615 if (speaker->
sound) {
713 return strip->
end - scale * (cframe - strip->
actstart);
716 return (strip->
end + (strip->
actstart * scale - cframe)) / scale;
729 return strip->
actend -
fmodf(cframe - strip->
start, actlength * scale) / scale;
780 switch (strip->
type) {
843 if ((strips ==
nullptr) ||
IS_EQF(start, end)) {
847 puts(
"BKE_nlastrips_has_space() error... start and end arguments swapped");
848 std::swap(start, end);
856 if (strip->start >= end) {
863 if ((strip->end > start) || (strip->end > end)) {
878 if (
ELEM(
nullptr, strips, strips->
first)) {
885 for (strip =
static_cast<NlaStrip *
>(strips->
first); strip; strip = stripn) {
888 stripn = strip->
next;
897 if (sstrip->start <= strip->
start) {
917 bool not_added =
true;
925 if (ns->start >= strip->
start) {
939 if (
ELEM(
nullptr, strips, strip)) {
959 if (
ELEM(
nullptr, strips, strips->
first)) {
964 for (strip =
static_cast<NlaStrip *
>(strips->
first); strip; strip = stripn) {
965 stripn = strip->
next;
969 if (mstrip ==
nullptr) {
1011 if (
ELEM(
nullptr, strips, strip)) {
1033 if (
ELEM(
nullptr, strips, strips->
first)) {
1038 for (strip =
static_cast<NlaStrip *
>(strips->
first); strip; strip = stripn) {
1039 stripn = strip->
next;
1056 if (
ELEM(
nullptr, mstrip, strip)) {
1082 if (strip->
end > mstrip->
end) {
1089 mstrip->
end = strip->
end;
1103 float oStart, oEnd, offset;
1105 short scaleChanged = 0;
1124 offset = mstrip->
start - oStart;
1127 oLen = oEnd - oStart;
1128 nLen = mstrip->
end - mstrip->
start;
1129 scaleChanged = !
IS_EQF(oLen, nLen);
1146 p1 = (strip->start - oStart) / oLen;
1147 p2 = (strip->end - oStart) / oLen;
1161 strip->start = (p1 * nLen) + mstrip->
start;
1162 strip->end = (p2 * nLen) + mstrip->
start;
1165 const double action_len = strip->actend - strip->actstart;
1166 const double repeated_len = action_len * strip->repeat;
1167 const double strip_len = strip->end - strip->start;
1168 strip->scale = strip_len / repeated_len;
1172 strip->start += offset;
1173 strip->end += offset;
1216 if (adt ==
nullptr) {
1228 printf(
"%s: Active strip (%p, %s) not in NLA track found (%p, %s)\n",
1304 puts(
"BKE_nlatrack_has_space() error... start and end arguments swapped");
1305 std::swap(start, end);
1344 if (
ELEM(
nullptr, nlt, strip)) {
1416 if (inner_active !=
nullptr) {
1417 return inner_active;
1434 limit_prev = strip->
prev->
end;
1461 while (
next !=
nullptr) {
1475 while (prev !=
nullptr) {
1488 if (nlt ==
nullptr) {
1510 if (adt ==
nullptr) {
1530 if (
STREQ(strip->name, name)) {
1539 if (inner_strip !=
nullptr) {
1554 const float stripLen = (strip) ? strip->
end - strip->
start : 0.0f;
1558 if ((strip ==
nullptr) ||
IS_EQF(stripLen, 0.0f) ||
IS_EQF(boundsLen, 0.0f)) {
1566 if ((stripLen < boundsLen) &&
1571 if ((stripLen > boundsLen) &&
1583 if (timeline_frame < strip->start) {
1584 return strip->
start - timeline_frame;
1586 if (strip->
end < timeline_frame) {
1587 return timeline_frame - strip->
end;
1599 float offset = 0.0f;
1610 else if (strip->
end < nls->
end) {
1623 for (; nls; nls = nls->
next) {
1624 nls->
start += offset;
1629 else if (strip->
end > nls->
start) {
1636 for (; nls; nls = nls->
next) {
1637 nls->
start += offset;
1647 float offset = 0.0f;
1671 for (; nls; nls = nls->
prev) {
1672 nls->
start -= offset;
1677 else if (strip->
start < nls->
end) {
1684 for (; nls; nls = nls->
prev) {
1685 nls->
start -= offset;
1694 float prev_actstart;
1704 strip->
actend = frame_range[1];
1731 if (
IS_EQF(mapping, 0.0f) == 0) {
1732 strip->
end = (actlen * mapping) + strip->
start;
1747 const double strip_len = strip->
end - strip->
start;
1748 double blend_in = strip->
blendin;
1749 double blend_out = strip->
blendout;
1751 double blend_in_max = strip_len - blend_out;
1756 CLAMP(blend_in, 0, blend_in_max);
1757 CLAMP(blend_out, 0, strip_len - blend_in);
1774 if (strip->fcurves.first) {
1806 if (strip ==
nullptr) {
1816 if (fcu ==
nullptr) {
1847 if (fcu ==
nullptr) {
1867 if (
ELEM(
nullptr,
ptr, prop)) {
1872 if (
ptr->type == &RNA_NlaStrip) {
1876 static bool needs_init =
true;
1887 if (
ELEM(prop, prop_influence, prop_time)) {
1903 if (
ELEM(
nullptr, adt, strip)) {
1908 if (strip->
name[0] == 0) {
1909 switch (strip->
type) {
1934 if (tstrip == strip) {
1955 sizeof(strip->
name));
1980 if ((nls->start <= strip->
start) && (nls->end >= strip->
end)) {
1987 if (nls->end < strip->
start) {
1990 if (nls->start > strip->
end) {
1997 if ((nls->next ==
nullptr) ||
IS_EQF(nls->next->start, nls->end) == 0) {
1998 if ((nls->end > strip->
start) && (nls->end < strip->
end)) {
2002 if ((nls->prev ==
nullptr) ||
IS_EQF(nls->prev->end, nls->start) == 0) {
2003 if ((nls->start < strip->
end) && (nls->start > strip->
start)) {
2013 float *ps =
nullptr, *pe =
nullptr;
2014 float *ns =
nullptr, *ne =
nullptr;
2017 if (
ELEM(
nullptr, nls, nlt)) {
2020 if ((nlt->
prev ==
nullptr) && (nlt->
next ==
nullptr)) {
2042 if (((ps && ns) && (*ps > *ns)) || (ps)) {
2055 if (((pe && ne) && (*pe > *ne)) || (pe)) {
2084 if (strip->
start >= strip->
end || strip->
prev ==
nullptr || strip->
next ==
nullptr) {
2105 "While moving NLA strips, a transition strip could no longer be applied to the new "
2106 "positions and was removed.\n");
2120#define STASH_TRACK_NAME DATA_("[Action Stash]")
2129 if (strip->act == act && strip->action_slot_handle == slot_handle) {
2159 prev_track = prev_track->
prev)
2172 if (prev_track ==
nullptr) {
2224 if (strip ==
nullptr) {
2231 "Expecting un-assigning an action to always work when pushing down an NLA strip");
2260 NlaTrack **r_track_of_active_strip,
2287 if (activeTrack ==
nullptr) {
2300 if ((activeTrack) && (activeStrip ==
nullptr)) {
2305 activeStrip = strip;
2311 *r_track_of_active_strip = activeTrack;
2312 *r_active_strip = activeStrip;
2334 if (
ELEM(
nullptr, activeTrack, activeStrip, activeStrip->
act)) {
2336 printf(
"NLA tweak-mode enter - neither active requirement found\n");
2337 printf(
"\tactiveTrack = %p, activeStrip = %p\n", (
void *)activeTrack, (
void *)activeStrip);
2347 if (strip->act == activeStrip->
act) {
2378 if (activeStrip->
act) {
2385 printf(
"NLA tweak-mode enter - could not assign slot %s\n",
2386 strip_slot ? strip_slot->
identifier :
"-unassigned-");
2407 "Expecting un-assigning the Action to work (while entering NLA tweak mode)");
2413 prev_action, prev_slot_handle, owned_adt);
2416 "Expecting the Action+Slot of an NLA strip to be suitable for direct assignment as well");
2433 if (!active_strip || !active_strip->
act) {
2498 "When exiting tweak mode, syncing the tweaked Action slot should work");
2515 "When exiting tweak mode, unassigning the tweaked Action should work");
2528 "when a slot is assigned, the action should layered");
2553 printf(
"\033[38;5;214mNLA state");
2560 printf(
" - ADT is nil!\n");
2578 printf(
" SKEYS_COLLAPSED");
2581 printf(
" EVAL_UPPER_TRACKS");
2591 printf(
" - No tracks\n");
2594 printf(
" - Active track: %s (#%d)\n",
2600 printf(
" - Track #%d %s: ", nlt->index, nlt->name);
2620 printf(
"TEMPORARILY_ADDED ");
2623 printf(
"OVERRIDELIBRARY_LOCAL ");
2628 printf(
" - Strip %s: ", strip->name);
2639 printf(
"USR_INFLUENCE ");
2645 printf(
"USR_TIME_CYCLIC ");
2660 printf(
"INVALID_LOCATION ");
2748 if (is_tweak_mode) {
2755 if (!is_tweak_mode) {
2774 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)
@ LIB_ID_CREATE_NO_USER_REFCOUNT
ID * BKE_id_copy_ex(Main *bmain, const ID *id, ID **new_id_p, int flag)
#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)
char * STRNCPY(char(&dst)[N], const char *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 CLOG_ERROR(clg_ref,...)
@ 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)
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
#define ID_IS_LINKED(_id)
#define ID_IS_OVERRIDE_LIBRARY(_id)
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 last_slot_identifier[66]
char tmp_last_slot_identifier[66]
int32_t action_slot_handle