Cleanup: use aliased struct name for BLO_get_struct_id_by_name

Currently this doesn't make a difference as old script names were never
used. Avoid issues in the future by using aliased names.
This commit is contained in:
Campbell Barton
2023-09-25 12:39:40 +10:00
parent c5b53dcab4
commit e7ced9f595

View File

@@ -1745,8 +1745,7 @@ void blo_write_id_struct(BlendWriter *writer, int struct_id, const void *id_addr
int BLO_get_struct_id_by_name(BlendWriter *writer, const char *struct_name)
{
/* TODO(@ideasman42): use the "alias" version. */
int struct_id = DNA_struct_find_without_alias(writer->wd->sdna, struct_name);
int struct_id = DNA_struct_find_with_alias(writer->wd->sdna, struct_name);
return struct_id;
}