18#include "testing/testing.h"
62 Action &action = create_empty_action()->wrap();
80 bAction *action = create_empty_action();
85 Action &action = create_empty_action()->wrap();
113 <<
"Expected all F-Curves for slot 2 to be there after manipulating slot 1";
Functions and classes to work with Actions.
Functions for backward compatibility with the legacy Action API.
General operations, lookup, etc. for blender objects.
Span< T > as_span() const
void layer_keystrip_ensure()
const Layer * layer(int64_t index) const
Span< const StripKeyframeData * > strip_keyframe_data() const
Span< const FCurve * > fcurves() const
FCurve & fcurve_ensure(Main *bmain, const FCurveDescriptor &fcurve_descriptor)
const Strip * strip(int64_t index) const
static constexpr slot_handle_t unassigned
Channelbag & channelbag_for_slot_ensure(const Slot &slot)
const T & data(const Action &owning_action) const
bAction * create_empty_action()
FCurve * fcurve_add_legacy(bAction *action, const StringRefNull rna_path, const int array_index)
#define EXPECT_FALSE(result)
#define EXPECT_TRUE(result)
Vector< const FCurve * > fcurves_all(const bAction *action)
bool action_fcurves_remove(bAction &action, slot_handle_t slot_handle, StringRefNull rna_path_prefix)
TEST_F(ActionIteratorsTest, iterate_all_fcurves_of_slot)
Span< FCurve * > fcurves_for_action_slot(Action &action, slot_handle_t slot_handle)
void BKE_main_free(Main *bmain)
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void * BKE_id_new(Main *bmain, short type, const char *name)
FCurve * BKE_fcurve_create()
ListBaseT< FCurve > curves