45#include "RNA_prototypes.hh"
74 if (
strip ==
nullptr) {
79 for (cs =
static_cast<NlaStrip *
>(
strip->strips.first); cs; cs = csn) {
85 if (
strip->act !=
nullptr && do_id_user) {
104 if (nlt ==
nullptr) {
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) {
496 strip->
flag &= ~NLASTRIP_FLAG_SYNC_LENGTH;
500 Action &action = act->wrap();
507 nla::assign_action(*
strip, action, animated_id);
511 strip->repeat = 1.0f;
522 const float2 frame_range =
strip->act->wrap().get_frame_range_of_slot(
strip->action_slot_handle);
523 strip->actstart = frame_range[0];
524 strip->actend = frame_range[1];
552 *
strip, slot_handle, animated_id);
555 case ActionSlotAssignmentResult::OK:
557 case ActionSlotAssignmentResult::SlotNotFromAction:
558 case ActionSlotAssignmentResult::MissingAction:
561 case ActionSlotAssignmentResult::SlotNotSuitable:
583 if (
strip ==
nullptr) {
615 if (speaker->
sound) {
637 strip->repeat = 1.0f;
694 strip->repeat = 1.0f;
713 return strip->end - scale * (cframe -
strip->actstart);
716 return (
strip->end + (
strip->actstart * scale - cframe)) / scale;
723 return strip->actstart;
743 return strip->actend;
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);
863 if ((
strip->end > start) || (
strip->end > end)) {
878 if (
ELEM(
nullptr, strips, strips->
first)) {
917 bool not_added =
true;
959 if (
ELEM(
nullptr, strips, strips->
first)) {
969 if (mstrip ==
nullptr) {
1018 for (cs =
static_cast<NlaStrip *
>(
strip->strips.first); cs; cs = csn) {
1033 if (
ELEM(
nullptr, strips, strips->
first)) {
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);
1147 p2 = (
strip->end - oStart) / oLen;
1165 const double action_len =
strip->actend -
strip->actstart;
1166 const double repeated_len = action_len *
strip->repeat;
1168 strip->scale = strip_len / repeated_len;
1173 strip->end += offset;
1216 if (adt ==
nullptr) {
1228 printf(
"%s: Active strip (%p, %s) not in NLA track found (%p, %s)\n",
1252 nt->
flag &= ~NLATRACK_SOLO;
1266 adt->
flag &= ~ADT_NLA_SOLO_TRACK;
1270 adt->
flag &= ~ADT_NLA_SOLO_TRACK;
1283 nlt->flag &= ~NLATRACK_ACTIVE;
1304 puts(
"BKE_nlatrack_has_space() error... start and end arguments swapped");
1305 std::swap(start, end);
1373 bounds[0] = bounds[1] = 0.0f;
1390 bounds[1] =
strip->end;
1416 if (inner_active !=
nullptr) {
1417 return inner_active;
1461 while (
next !=
nullptr) {
1475 while (prev !=
nullptr) {
1488 if (nlt ==
nullptr) {
1510 if (adt ==
nullptr) {
1518 nls->flag &= ~NLASTRIP_FLAG_ACTIVE;
1539 if (inner_strip !=
nullptr) {
1566 if ((stripLen < boundsLen) &&
1571 if ((stripLen > boundsLen) &&
1583 if (timeline_frame < strip->start) {
1586 if (
strip->end < timeline_frame) {
1587 return timeline_frame -
strip->end;
1599 float offset = 0.0f;
1623 for (; nls; nls = nls->
next) {
1624 nls->
start += offset;
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;
1684 for (; nls; nls = nls->
prev) {
1685 nls->
start -= offset;
1694 float prev_actstart;
1700 prev_actstart =
strip->actstart;
1702 const float2 frame_range =
strip->act->wrap().get_frame_range_of_slot(
strip->action_slot_handle);
1703 strip->actstart = frame_range[0];
1704 strip->actend = frame_range[1];
1731 if (
IS_EQF(mapping, 0.0f) == 0) {
1743 if (
strip->blendin == 0 &&
strip->blendout == 0) {
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);
1759 strip->blendin = blend_in;
1760 strip->blendout = blend_out;
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)) {
1934 if (tstrip ==
strip) {
1990 if (nls->start >
strip->end) {
1997 if ((nls->next ==
nullptr) ||
IS_EQF(nls->next->start, nls->end) == 0) {
2002 if ((nls->prev ==
nullptr) ||
IS_EQF(nls->prev->end, nls->start) == 0) {
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)) {
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) {
2351 strip->
flag &= ~NLASTRIP_FLAG_TWEAKUSER;
2358 activeStrip->
flag &= ~NLASTRIP_FLAG_TWEAKUSER;
2366 for (
NlaTrack *nlt = activeTrack->
next; nlt; nlt = nlt->next) {
2378 if (activeStrip->
act) {
2383 animrig::ActionSlotAssignmentResult::OK)
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);
2415 result == animrig::ActionSlotAssignmentResult::OK,
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");
2539 nlt->flag &= ~NLATRACK_DISABLED;
2542 strip->
flag &= ~NLASTRIP_FLAG_TWEAKUSER;
2545 adt->
flag &= ~ADT_NLA_EDIT_ON;
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 ");
2639 printf(
"USR_INFLUENCE ");
2645 printf(
"USR_TIME_CYCLIC ");
2660 printf(
"INVALID_LOCATION ");
2723 nlt->flag &= ~NLATRACK_OVERRIDELIBRARY_LOCAL;
2748 if (is_tweak_mode) {
2755 if (!is_tweak_mode) {
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)
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)
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,...)
#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)
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)
SIMD_FORCE_INLINE btScalar length() const
Return the length of the vector.
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
DEGForeachIDComponentCallback callback
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)
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