From 73c7aaba226349e93ca4966941f4eb051a94c097 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 13 Apr 2019 09:15:15 +0200 Subject: Cleanup: style, use braces for the window manager --- source/blender/windowmanager/intern/wm_files_link.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'source/blender/windowmanager/intern/wm_files_link.c') diff --git a/source/blender/windowmanager/intern/wm_files_link.c b/source/blender/windowmanager/intern/wm_files_link.c index 3b27d2199b6..56dfe4a327d 100644 --- a/source/blender/windowmanager/intern/wm_files_link.c +++ b/source/blender/windowmanager/intern/wm_files_link.c @@ -85,8 +85,9 @@ static bool wm_link_append_poll(bContext *C) * but which totally confuses edit mode (i.e. it becoming not so obvious * to leave from edit mode and invalid tools in toolbar might be displayed) * so disable link/append when in edit mode (sergey) */ - if (CTX_data_edit_object(C)) + if (CTX_data_edit_object(C)) { return 0; + } return 1; } @@ -117,16 +118,21 @@ static short wm_link_append_flag(wmOperator *op) PropertyRNA *prop; short flag = 0; - if (RNA_boolean_get(op->ptr, "autoselect")) + if (RNA_boolean_get(op->ptr, "autoselect")) { flag |= FILE_AUTOSELECT; - if (RNA_boolean_get(op->ptr, "active_collection")) + } + if (RNA_boolean_get(op->ptr, "active_collection")) { flag |= FILE_ACTIVE_COLLECTION; - if ((prop = RNA_struct_find_property(op->ptr, "relative_path")) && RNA_property_boolean_get(op->ptr, prop)) + } + if ((prop = RNA_struct_find_property(op->ptr, "relative_path")) && RNA_property_boolean_get(op->ptr, prop)) { flag |= FILE_RELPATH; - if (RNA_boolean_get(op->ptr, "link")) + } + if (RNA_boolean_get(op->ptr, "link")) { flag |= FILE_LINK; - if (RNA_boolean_get(op->ptr, "instance_collections")) + } + if (RNA_boolean_get(op->ptr, "instance_collections")) { flag |= FILE_GROUP_INSTANCE; + } return flag; } -- cgit v1.2.3