21template<
typename ActionType,
25 typename StripKeyframeDataType,
26 typename ChannelbagType>
30 for (LayerType *
layer : action.layers()) {
32 switch (strip->type()) {
35 for (ChannelbagType *bag : strip_data.channelbags()) {
36 for (FCurveType *fcurve : bag->fcurves()) {
37 all_fcurves.
append(fcurve);
70template<
typename ActionType,
74 typename StripKeyframeDataType,
75 typename ChannelbagType>
85 if (adt ==
nullptr || adt->
action ==
nullptr) {
99 Action &action_wrap = action->wrap();
103 switch (strip->type()) {
107 all_groups.
extend(bag->channel_groups());
118 if (!adt || !adt->
action) {
146 bool any_removed =
false;
154 if (
rna_path.startswith(rna_path_prefix)) {
Functions and classes to work with Actions.
Functions for backward compatibility with the legacy Action API.
void append(const T &value)
void extend(Span< T > array)
bool has_keyframes(slot_handle_t action_slot_handle) const ATTR_WARN_UNUSED_RESULT
Span< const Layer * > layers() const
const FCurve * fcurve(int64_t index) const
void fcurve_remove_by_index(int64_t fcurve_index)
Span< const bActionGroup * > channel_groups() const
Span< const Channelbag * > channelbags() const
constexpr bool is_empty() const
static Vector< FCurveType * > fcurves_all_templated(ActionType &action)
Vector< bActionGroup * > channel_groups_for_assigned_slot(AnimData *adt)
Vector< const FCurve * > fcurves_all(const bAction *action)
bool action_fcurves_remove(bAction &action, slot_handle_t slot_handle, StringRefNull rna_path_prefix)
bool assigned_action_has_keyframes(AnimData *adt)
Vector< bActionGroup * > channel_groups_all(bAction *action)
static Vector< FCurveType * > fcurves_for_action_slot_templated(ActionType &action, const slot_handle_t slot_handle)
decltype(blender::ActionSlot::handle) slot_handle_t
const animrig::Channelbag * channelbag_for_action_slot(const Action &action, slot_handle_t slot_handle)
Span< FCurve * > fcurves_for_action_slot(Action &action, slot_handle_t slot_handle)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
BMesh const char void * data