Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-01-09 23:45:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-01-09 23:47:08 +0300
commitec20c4b558cc569e8a9d44923a2303fbc7d13523 (patch)
tree4f41a249ed66de59e2a156c0a34b3e2b4c68b494 /source/blender/makesdna/intern
parentf06f6eab0de15aeebab13074ef0b4173649779b4 (diff)
DNA: remove endian switching long checks
This wasn't correct, and long was only ever used in cases we can now ignore.
Diffstat (limited to 'source/blender/makesdna/intern')
-rw-r--r--source/blender/makesdna/intern/dna_genfile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesdna/intern/dna_genfile.c b/source/blender/makesdna/intern/dna_genfile.c
index cea61656abb..f50e38d0390 100644
--- a/source/blender/makesdna/intern/dna_genfile.c
+++ b/source/blender/makesdna/intern/dna_genfile.c
@@ -1205,7 +1205,10 @@ void DNA_struct_switch_endian(SDNA *oldsdna, int oldSDNAnr, char *data)
}
}
}
- else if (ELEM(spc[0], SDNA_TYPE_INT, SDNA_TYPE_FLOAT, SDNA_TYPE_LONG, SDNA_TYPE_ULONG)) {
+ else if (ELEM(spc[0], SDNA_TYPE_INT, SDNA_TYPE_FLOAT)) {
+ /* note, intentionally ignore long/ulong here these could be 4 or 8 bits,
+ * but turns out we only used for runtime vars and
+ * only once for a struct type thats no longer used. */
mul = DNA_elem_array_size(name);
cpo = cur;