From 620b960d3d8cfd90b9f0df6ba3671c33eccb8309 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 22 Apr 2019 09:19:45 +1000 Subject: Cleanup: style, use braces for editors --- source/blender/editors/io/io_alembic.c | 6 ++++-- source/blender/editors/io/io_collada.c | 12 ++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) (limited to 'source/blender/editors/io') 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); -- cgit v1.2.3