18#include "testing/testing.h"
78 bAction *action = create_empty_action();
90 Action &action = create_empty_action()->wrap();
120 bAction *action = create_empty_action();
132 Action &action = create_empty_action()->wrap();
152 bAction *action = create_empty_action();
157 bAction *action = create_empty_action();
158 FCurve *fcurve_loc_x = fcurve_add_legacy(action,
"location", 0);
159 fcurve_add_legacy(action,
"rotation_euler", 2);
160 fcurve_add_legacy(action,
"rotation_mode", 0);
161 FCurve *fcurve_loc_y = fcurve_add_legacy(action,
"location", 1);
173 Action &action = create_empty_action()->wrap();
200 <<
"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.
void BKE_fcurve_rnapath_set(FCurve &fcu, blender::StringRef rna_path)
void * BKE_id_new(Main *bmain, short type, const char *name)
void BKE_main_free(Main *bmain)
General operations, lookup, etc. for blender objects.
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void layer_keystrip_ensure()
const Layer * layer(int64_t index) const
Span< const StripKeyframeData * > strip_keyframe_data() const
FCurve & fcurve_ensure(Main *bmain, const FCurveDescriptor &fcurve_descriptor)
blender::Span< const FCurve * > fcurves() const
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()
static void SetUpTestSuite()
static void TearDownTestSuite()
FCurve * fcurve_add_legacy(bAction *action, const StringRefNull rna_path, const int array_index)
void * MEM_callocN(size_t len, const char *str)
Vector< FCurve * > fcurves_for_action_slot(bAction *action, slot_handle_t slot_handle)
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)