Cleanup: remove ID prefixes from names in animation tests
The functions that create the IDs already take care of this, so it was redundant and resulted in confusing reports on test failure. Pull Request: https://projects.blender.org/blender/blender/pulls/123185
This commit is contained in:
committed by
Nathan Vegdahl
parent
68b4139368
commit
d2260ec183
@@ -77,24 +77,24 @@ class KeyframingTest : public testing::Test {
|
||||
|
||||
bmain = BKE_main_new();
|
||||
|
||||
object = BKE_object_add_only_object(bmain, OB_EMPTY, "OBEmpty");
|
||||
object = BKE_object_add_only_object(bmain, OB_EMPTY, "Empty");
|
||||
object_rna_pointer = RNA_id_pointer_create(&object->id);
|
||||
|
||||
Bone *bone = static_cast<Bone *>(MEM_mallocN(sizeof(Bone), "BONE"));
|
||||
memset(bone, 0, sizeof(Bone));
|
||||
STRNCPY(bone->name, "Bone");
|
||||
|
||||
armature = BKE_armature_add(bmain, "ARArmature");
|
||||
armature = BKE_armature_add(bmain, "Armature");
|
||||
BLI_addtail(&armature->bonebase, bone);
|
||||
|
||||
armature_object = BKE_object_add_only_object(bmain, OB_ARMATURE, "OBArmature");
|
||||
armature_object = BKE_object_add_only_object(bmain, OB_ARMATURE, "Armature");
|
||||
armature_object->data = armature;
|
||||
BKE_pose_ensure(bmain, armature_object, armature, false);
|
||||
armature_object_rna_pointer = RNA_id_pointer_create(&armature_object->id);
|
||||
|
||||
object_with_nla = BKE_object_add_only_object(bmain, OB_EMPTY, "OBEmptyWithNLA");
|
||||
object_with_nla = BKE_object_add_only_object(bmain, OB_EMPTY, "EmptyWithNLA");
|
||||
object_with_nla_rna_pointer = RNA_id_pointer_create(&object_with_nla->id);
|
||||
nla_action = static_cast<bAction *>(BKE_id_new(bmain, ID_AC, "ACNLAAction"));
|
||||
nla_action = static_cast<bAction *>(BKE_id_new(bmain, ID_AC, "NLAAction"));
|
||||
|
||||
/* Set up an NLA system with a single NLA track with a single offset-in-time
|
||||
* NLA strip, and make that strip active and in tweak mode. */
|
||||
|
||||
Reference in New Issue
Block a user