Fix assert in id remapper tests.
Was using uninitialized ID name, leading to unknown ID type. Thanks at Ray molenkamp (@LazyDodo) for noting the issue.
This commit is contained in:
parent
763cafc2b1
commit
8181494ffe
|
@ -55,6 +55,7 @@ TEST(lib_id_remapper, unassigned)
|
|||
{
|
||||
ID id1;
|
||||
ID *idp = &id1;
|
||||
BLI_strncpy(id1.name, "OB2", sizeof(id1.name));
|
||||
|
||||
IDRemapper *remapper = BKE_id_remapper_create();
|
||||
BKE_id_remapper_add(remapper, &id1, nullptr);
|
||||
|
|
Loading…
Reference in New Issue