diff options
author | Hans Goudey <h.goudey@me.com> | 2022-02-04 03:27:42 +0300 |
---|---|---|
committer | Fabian Schempp <fabianschempp@googlemail.com> | 2022-04-11 01:28:55 +0300 |
commit | cd91b0fd184aa2bc4f377869a1583750efad8b0f (patch) | |
tree | 67132b27fe1b215cd8e03729aa306fc6a7a92309 /source/blender/editors | |
parent | b9f535f294c572dcada563cd2470fe2d3238309a (diff) |
Cleanup: Clang tidy, use braces
Braces missed in b73d3b80fdcb72446
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 3 | ||||
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tools.cc | 9 |
2 files changed, 9 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index 6b2d56322fc..9396c9e53ea 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -1405,7 +1405,7 @@ static char *edbm_select_mode_get_description(struct bContext *UNUSED(C), if (RNA_struct_property_is_set(values, "type") && !RNA_struct_property_is_set(values, "use_extend") && !RNA_struct_property_is_set(values, "use_expand") && - !RNA_struct_property_is_set(values, "action")) + !RNA_struct_property_is_set(values, "action")) { switch (type) { case SCE_SELECT_VERTEX: return BLI_strdup( @@ -1418,6 +1418,7 @@ static char *edbm_select_mode_get_description(struct bContext *UNUSED(C), return BLI_strdup( N_("Face select - Shift-Click for multiple modes, Ctrl-Click expands selection")); } + } return NULL; } diff --git a/source/blender/editors/space_outliner/outliner_tools.cc b/source/blender/editors/space_outliner/outliner_tools.cc index 12c5c9f99f5..3b8c284cd65 100644 --- a/source/blender/editors/space_outliner/outliner_tools.cc +++ b/source/blender/editors/space_outliner/outliner_tools.cc @@ -842,8 +842,13 @@ static void id_override_library_create_fn(bContext *C, te->store_elem->id->tag |= LIB_TAG_DOIT; } - success = BKE_lib_override_library_create( - bmain, CTX_data_scene(C), CTX_data_view_layer(C), NULL, id_root, id_reference, nullptr); + success = BKE_lib_override_library_create(bmain, + CTX_data_scene(C), + CTX_data_view_layer(C), + nullptr, + id_root, + id_reference, + nullptr); } else if (ID_IS_OVERRIDABLE_LIBRARY(id_root)) { success = BKE_lib_override_library_create_from_id(bmain, id_root, true) != nullptr; |