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:
authorJacques Lucke <jacques@blender.org>2020-09-29 13:12:09 +0300
committerJacques Lucke <jacques@blender.org>2020-09-29 13:12:09 +0300
commit762d93a26b973b61ef52e7326aa8f272ccbe7007 (patch)
tree608e44f29ac506d31a12214261b96841534f85b6 /source/blender/blenloader/intern/readblenentry.c
parent32d4a67017ecf4af75a9bfde885526550a6534ba (diff)
DNA: use better type for SDNA->structs
The data layout remains exactly the same.. This change just gives all the elements in `SDNA->structs` names, making it more comfortable to work with the data. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D8926
Diffstat (limited to 'source/blender/blenloader/intern/readblenentry.c')
-rw-r--r--source/blender/blenloader/intern/readblenentry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readblenentry.c b/source/blender/blenloader/intern/readblenentry.c
index 888863dda06..7a527b82e9f 100644
--- a/source/blender/blenloader/intern/readblenentry.c
+++ b/source/blender/blenloader/intern/readblenentry.c
@@ -103,8 +103,8 @@ void BLO_blendhandle_print_sizes(BlendHandle *bh, void *fp)
break;
}
- const short *sp = fd->filesdna->structs[bhead->SDNAnr];
- const char *name = fd->filesdna->types[sp[0]];
+ const SDNA_Struct *struct_info = fd->filesdna->structs[bhead->SDNAnr];
+ const char *name = fd->filesdna->types[struct_info->type];
char buf[4];
buf[0] = (bhead->code >> 24) & 0xFF;