diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-22 02:13:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-22 12:48:16 +0300 |
commit | 6cc09d006af4a89cea14485e8e3896bd38a80e4b (patch) | |
tree | b16965e08e7576749f47902e8604a9fccac5e2cf /source/blender/blenloader/intern/readblenentry.c | |
parent | 6b3bf9e2a86c73fd78452fbdc05785a560a2be9e (diff) |
Cleanup: style, use braces for blenloader
Diffstat (limited to 'source/blender/blenloader/intern/readblenentry.c')
-rw-r--r-- | source/blender/blenloader/intern/readblenentry.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readblenentry.c b/source/blender/blenloader/intern/readblenentry.c index 8067a322490..5e4fe4ce269 100644 --- a/source/blender/blenloader/intern/readblenentry.c +++ b/source/blender/blenloader/intern/readblenentry.c @@ -99,8 +99,9 @@ void BLO_blendhandle_print_sizes(BlendHandle *bh, void *fp) fprintf(fp, "[\n"); for (bhead = blo_bhead_first(fd); bhead; bhead = blo_bhead_next(fd, bhead)) { - if (bhead->code == ENDB) + if (bhead->code == ENDB) { break; + } else { const short *sp = fd->filesdna->structs[bhead->SDNAnr]; const char *name = fd->filesdna->types[sp[0]]; @@ -150,8 +151,9 @@ LinkNode *BLO_blendhandle_get_datablock_names(BlendHandle *bh, int ofblocktype, BLI_linklist_prepend(&names, strdup(idname + 2)); tot++; } - else if (bhead->code == ENDB) + else if (bhead->code == ENDB) { break; + } } *tot_names = tot; |