diff options
author | Jacques Lucke <jacques@blender.org> | 2020-10-08 19:17:12 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-10-08 19:17:12 +0300 |
commit | 51e43f27fa2ecb5529d14cdfd1c73447dd420046 (patch) | |
tree | 955b0b4ef49a54b94718eaf13128ae1a33eafe64 /source/blender/makesdna/DNA_genfile.h | |
parent | f23bf4cb109cb8f39f873c4f80acbec3f33b098c (diff) |
DNA: cleanup endian switching when loading file
This patch "modernizes" `DNA_struct_switch_endian` similar to
how I updated `DNA_struct_reconstruct` recently. Furthermore,
some special case handling have been moved to another place.
Reviewers: campbellbarton
Differential Revision: https://developer.blender.org/D9089
Diffstat (limited to 'source/blender/makesdna/DNA_genfile.h')
-rw-r--r-- | source/blender/makesdna/DNA_genfile.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_genfile.h b/source/blender/makesdna/DNA_genfile.h index 96766bf16b8..6fcbc53d47b 100644 --- a/source/blender/makesdna/DNA_genfile.h +++ b/source/blender/makesdna/DNA_genfile.h @@ -103,7 +103,7 @@ void DNA_reconstruct_info_free(struct DNA_ReconstructInfo *reconstruct_info); int DNA_struct_find_nr_ex(const struct SDNA *sdna, const char *str, unsigned int *index_last); int DNA_struct_find_nr(const struct SDNA *sdna, const char *str); -void DNA_struct_switch_endian(const struct SDNA *oldsdna, int oldSDNAnr, char *data); +void DNA_struct_switch_endian(const struct SDNA *sdna, int struct_nr, char *data); const char *DNA_struct_get_compareflags(const struct SDNA *sdna, const struct SDNA *newsdna); void *DNA_struct_reconstruct(const struct DNA_ReconstructInfo *reconstruct_info, int old_struct_nr, |