18TEST(anim_data, BKE_fcurves_id_cb_test)
33 bmain, *action, cube->id, {
"location", 1});
35 bmain, *action, cube->id, {
"scale", 2});
40 bmain, *action, suzanne->
id, {
"location", 0});
42 bmain, *action, suzanne->
id, {
"scale", 1});
47 const auto callback = [&reported_fcurves](
ID *
id,
FCurve *fcurve) {
48 reported_ids.push_back(
id);
49 reported_fcurves.push_back(fcurve);
56 EXPECT_EQ(fcurve_cube_loc1, reported_fcurves[0]);
57 EXPECT_EQ(fcurve_cube_scale2, reported_fcurves[1]);
62 reported_fcurves.
clear();
68 EXPECT_EQ(fcurve_suzanne_loc0, reported_fcurves[0]);
69 EXPECT_EQ(fcurve_suzanne_scale1, reported_fcurves[1]);
void BKE_main_free(Main *bmain)
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)