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:
authorCampbell Barton <ideasman42@gmail.com>2013-09-13 12:45:20 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-09-13 12:45:20 +0400
commit7fb3de281dbb6bf252621846c11fecafffe5507a (patch)
treee52d513a56d6c36110a3db01c3bb57191b8d16f0 /source/blender/editors/space_node/space_node.c
parent29cbf93b075c9be2fb635450e8ce55a474ec0e18 (diff)
change NODE_TREE_TYPES_BEGIN/END macros to include braces (matches CTX_DATA_BEGIN/END)
Diffstat (limited to 'source/blender/editors/space_node/space_node.c')
-rw-r--r--source/blender/editors/space_node/space_node.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/space_node/space_node.c b/source/blender/editors/space_node/space_node.c
index a59b2fc21df..6ae8a1f94b1 100644
--- a/source/blender/editors/space_node/space_node.c
+++ b/source/blender/editors/space_node/space_node.c
@@ -307,10 +307,12 @@ static SpaceLink *node_new(const bContext *UNUSED(C))
snode->zoom = 1.0f;
/* select the first tree type for valid type */
- NODE_TREE_TYPES_BEGIN(treetype)
+ NODE_TREE_TYPES_BEGIN (treetype)
+ {
strcpy(snode->tree_idname, treetype->idname);
break;
- NODE_TREE_TYPES_END
+ }
+ NODE_TREE_TYPES_END;
/* header */
ar = MEM_callocN(sizeof(ARegion), "header for node");