|
Blender V5.0
|
Inherits testing::Test.
Public Member Functions | |
| void | SetUp () override |
| void | TearDown () override |
| void | ensure_legacy_action_assigned (ID &id) |
| void | ensure_action_is_legacy (bAction &action) |
Static Public Member Functions | |
| static void | SetUpTestSuite () |
| static void | TearDownTestSuite () |
Definition at line 36 of file keyframing_test.cc.
|
inline |
Add an F-Curve Group. This marks the Action as legacy. Since most tests are on F-Curves, adding a Group here is the less invasive way to make this a Legacy Action.
Use of this function indicates the test should be converted to layered Actions.
Definition at line 161 of file keyframing_test.cc.
References BLI_addtail(), bAction::groups, MEM_callocN(), bActionGroup::name, and STRNCPY_UTF8.
Referenced by ensure_legacy_action_assigned(), and SetUp().
|
inline |
Create a legacy Action and assign it to the ID.
Use of this function indicates that the unit test should be converted to use layered Actions.
Definition at line 141 of file keyframing_test.cc.
References AnimData::action, blender::animrig::action_add(), blender::animrig::assign_action(), BKE_animdata_from_id(), BLI_assert, bmain, ensure_action_is_legacy(), and UNUSED_VARS_NDEBUG.
|
inlineoverride |
Definition at line 76 of file keyframing_test.cc.
References NlaStrip::actend, NlaStrip::actstart, armature, armature_object, armature_object_rna_pointer, blender::animrig::assign_action(), BKE_animdata_ensure_id(), BKE_armature_add(), BKE_id_new(), BKE_main_new(), BKE_MAT_ASSIGN_OBDATA, BKE_material_add(), BKE_mesh_add(), BKE_mesh_assign_object(), BKE_nla_tweakmode_enter(), BKE_nlastack_add_strip(), BKE_nlatrack_new_head(), BKE_object_add_only_object(), BKE_object_material_assign(), BKE_pose_ensure(), NlaStrip::blendmode, BLI_addtail(), bmain, cube, cube_mesh, cube_mesh_rna_pointer, cube_rna_pointer, NlaStrip::end, ensure_action_is_legacy(), NlaStrip::flag, NlaTrack::flag, id_us_min(), material, material_rna_pointer, MEM_callocN(), Bone::name, nla_action, AnimData::nla_tracks, NLASTRIP_FLAG_ACTIVE, NLASTRIP_MODE_COMBINE, NLATRACK_ACTIVE, OB_ARMATURE, OB_EMPTY, OB_MESH, object, object_rna_pointer, object_with_nla, object_with_nla_rna_pointer, RNA_id_pointer_create(), NlaStrip::scale, NlaStrip::start, and STRNCPY().
|
inlinestatic |
Definition at line 62 of file keyframing_test.cc.
References BKE_idtype_init(), and CLG_init().
|
inlineoverride |
Definition at line 130 of file keyframing_test.cc.
References BKE_main_free(), and bmain.
|
inlinestatic |
Definition at line 71 of file keyframing_test.cc.
References CLG_exit().
| bArmature* blender::animrig::tests::KeyframingTest::armature |
Definition at line 46 of file keyframing_test.cc.
Referenced by SetUp().
| Object* blender::animrig::tests::KeyframingTest::armature_object |
Definition at line 45 of file keyframing_test.cc.
Referenced by SetUp().
| PointerRNA blender::animrig::tests::KeyframingTest::armature_object_rna_pointer |
Definition at line 47 of file keyframing_test.cc.
Referenced by SetUp().
| Main* blender::animrig::tests::KeyframingTest::bmain |
Definition at line 38 of file keyframing_test.cc.
Referenced by ensure_legacy_action_assigned(), SetUp(), and TearDown().
| Object* blender::animrig::tests::KeyframingTest::cube |
Definition at line 55 of file keyframing_test.cc.
Referenced by SetUp().
| Mesh* blender::animrig::tests::KeyframingTest::cube_mesh |
Definition at line 57 of file keyframing_test.cc.
Referenced by SetUp().
| PointerRNA blender::animrig::tests::KeyframingTest::cube_mesh_rna_pointer |
Definition at line 58 of file keyframing_test.cc.
Referenced by SetUp().
| PointerRNA blender::animrig::tests::KeyframingTest::cube_rna_pointer |
Definition at line 56 of file keyframing_test.cc.
Referenced by SetUp().
| Material* blender::animrig::tests::KeyframingTest::material |
Definition at line 59 of file keyframing_test.cc.
Referenced by SetUp().
| PointerRNA blender::animrig::tests::KeyframingTest::material_rna_pointer |
Definition at line 60 of file keyframing_test.cc.
Referenced by SetUp().
| bAction* blender::animrig::tests::KeyframingTest::nla_action |
Definition at line 52 of file keyframing_test.cc.
Referenced by SetUp().
| Object* blender::animrig::tests::KeyframingTest::object |
Definition at line 41 of file keyframing_test.cc.
Referenced by SetUp().
| PointerRNA blender::animrig::tests::KeyframingTest::object_rna_pointer |
Definition at line 42 of file keyframing_test.cc.
Referenced by SetUp().
| Object* blender::animrig::tests::KeyframingTest::object_with_nla |
Definition at line 50 of file keyframing_test.cc.
Referenced by SetUp().
| PointerRNA blender::animrig::tests::KeyframingTest::object_with_nla_rna_pointer |
Definition at line 51 of file keyframing_test.cc.
Referenced by SetUp().