Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/space_node/node_buttons.c')
-rw-r--r--source/blender/editors/space_node/node_buttons.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/space_node/node_buttons.c b/source/blender/editors/space_node/node_buttons.c
index da0be280f2c..13f8eb0729e 100644
--- a/source/blender/editors/space_node/node_buttons.c
+++ b/source/blender/editors/space_node/node_buttons.c
@@ -76,8 +76,9 @@ static void node_sockets_panel(const bContext *C, Panel *pa)
uiLayout *layout = pa->layout, *split;
char name[UI_MAX_NAME_STR];
- if (ELEM(NULL, ntree, node))
+ if (ELEM(NULL, ntree, node)) {
return;
+ }
for (sock = node->inputs.first; sock; sock = sock->next) {
BLI_snprintf(name, sizeof(name), "%s:", sock->name);
@@ -128,8 +129,9 @@ static void node_tree_interface_panel(const bContext *C, Panel *pa)
PointerRNA ptr, sockptr, opptr;
wmOperatorType *ot;
- if (!ntree)
+ if (!ntree) {
return;
+ }
RNA_id_pointer_create((ID *)ntree, &ptr);
@@ -204,8 +206,9 @@ static int node_properties_toggle_exec(bContext *C, wmOperator *UNUSED(op))
ScrArea *sa = CTX_wm_area(C);
ARegion *ar = node_has_buttons_region(sa);
- if (ar)
+ if (ar) {
ED_region_toggle_hidden(C, ar);
+ }
return OPERATOR_FINISHED;
}