diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-26 13:16:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-26 13:16:47 +0300 |
commit | ce3b78c73a7ccc16fdccf7decedb5d1578dfdf0a (patch) | |
tree | 87f1a9c41ebe6f74806f1ae76206f1d328c85700 /source/blender/editors/space_info/info_ops.c | |
parent | 5279d118c2ddee0e6fef66aaf78452c1b302dd42 (diff) |
Cleanup: style, use braces for editor/spaces
Diffstat (limited to 'source/blender/editors/space_info/info_ops.c')
-rw-r--r-- | source/blender/editors/space_info/info_ops.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/source/blender/editors/space_info/info_ops.c b/source/blender/editors/space_info/info_ops.c index 538c41f730a..4f7e0f70ad9 100644 --- a/source/blender/editors/space_info/info_ops.c +++ b/source/blender/editors/space_info/info_ops.c @@ -219,7 +219,9 @@ static int unpack_all_exec(bContext *C, wmOperator *op) Main *bmain = CTX_data_main(C); int method = RNA_enum_get(op->ptr, "method"); - if (method != PF_KEEP) unpackAll(bmain, op->reports, method); /* XXX PF_ASK can't work here */ + if (method != PF_KEEP) { + unpackAll(bmain, op->reports, method); /* XXX PF_ASK can't work here */ + } G.fileflags &= ~G_FILE_AUTOPACK; return OPERATOR_FINISHED; @@ -241,10 +243,12 @@ static int unpack_all_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED( return OPERATOR_CANCELLED; } - if (count == 1) + if (count == 1) { BLI_strncpy(title, IFACE_("Unpack 1 File"), sizeof(title)); - else + } + else { BLI_snprintf(title, sizeof(title), IFACE_("Unpack %d Files"), count); + } pup = UI_popup_menu_begin(C, title, ICON_NONE); layout = UI_popup_menu_layout(pup); @@ -303,8 +307,9 @@ static int unpack_item_exec(bContext *C, wmOperator *op) return OPERATOR_CANCELLED; } - if (method != PF_KEEP) + if (method != PF_KEEP) { BKE_unpack_id(bmain, id, op->reports, method); /* XXX PF_ASK can't work here */ + } G.fileflags &= ~G_FILE_AUTOPACK; |