diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-22 02:19:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-22 12:48:16 +0300 |
commit | 620b960d3d8cfd90b9f0df6ba3671c33eccb8309 (patch) | |
tree | 64f69db4bf9d44f0a32d1c92b0714bf2dc98ff2d /source/blender/editors/io | |
parent | bba60bb564cf5a16cfcac744d4ba82cf8eba3da9 (diff) |
Cleanup: style, use braces for editors
Diffstat (limited to 'source/blender/editors/io')
-rw-r--r-- | source/blender/editors/io/io_alembic.c | 6 | ||||
-rw-r--r-- | source/blender/editors/io/io_collada.c | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/source/blender/editors/io/io_alembic.c b/source/blender/editors/io/io_alembic.c index dc8e33c817e..2f3e73f32d5 100644 --- a/source/blender/editors/io/io_alembic.c +++ b/source/blender/editors/io/io_alembic.c @@ -504,10 +504,12 @@ static int cmp_frame(const void *a, const void *b) const CacheFrame *frame_a = a; const CacheFrame *frame_b = b; - if (frame_a->framenr < frame_b->framenr) + if (frame_a->framenr < frame_b->framenr) { return -1; - if (frame_a->framenr > frame_b->framenr) + } + if (frame_a->framenr > frame_b->framenr) { return 1; + } return 0; } diff --git a/source/blender/editors/io/io_collada.c b/source/blender/editors/io/io_collada.c index 6ccdf8628a8..bfbd3722142 100644 --- a/source/blender/editors/io/io_collada.c +++ b/source/blender/editors/io/io_collada.c @@ -60,10 +60,12 @@ static int wm_collada_export_invoke(bContext *C, wmOperator *op, const wmEvent * char filepath[FILE_MAX]; const char *blendfile_path = BKE_main_blendfile_path(bmain); - if (blendfile_path[0] == '\0') + if (blendfile_path[0] == '\0') { BLI_strncpy(filepath, "untitled", sizeof(filepath)); - else + } + else { BLI_strncpy(filepath, blendfile_path, sizeof(filepath)); + } BLI_path_extension_replace(filepath, sizeof(filepath), ".dae"); RNA_string_set(op->ptr, "filepath", filepath); @@ -221,10 +223,12 @@ static int wm_collada_export_exec(bContext *C, wmOperator *op) export_settings.keep_bind_info = keep_bind_info != 0; int includeFilter = OB_REL_NONE; - if (export_settings.include_armatures) + if (export_settings.include_armatures) { includeFilter |= OB_REL_MOD_ARMATURE; - if (export_settings.include_children) + } + if (export_settings.include_children) { includeFilter |= OB_REL_CHILDREN_RECURSIVE; + } export_count = collada_export(C, &export_settings); |