diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-18 22:25:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-18 22:25:05 +0400 |
commit | 01e9dae3dc6c7de00e441a8b505debc6df830520 (patch) | |
tree | 917d578202f35f095c98506567a62c8240c803e6 /source/blender/editors/space_node/node_draw.c | |
parent | 57f69f2f180a988f274d979b1e5f2ad17e9cb77a (diff) |
code cleanup
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
-rw-r--r-- | source/blender/editors/space_node/node_draw.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c index 80a6ff1a393..0636dee9bc5 100644 --- a/source/blender/editors/space_node/node_draw.c +++ b/source/blender/editors/space_node/node_draw.c @@ -89,17 +89,17 @@ static bNodeTree *node_tree_from_ID(ID *id) switch (idtype) { case ID_NT: - return (bNodeTree*)id; + return (bNodeTree *)id; case ID_MA: - return ((Material*)id)->nodetree; + return ((Material *)id)->nodetree; case ID_LA: - return ((Lamp*)id)->nodetree; + return ((Lamp *)id)->nodetree; case ID_WO: - return ((World*)id)->nodetree; + return ((World *)id)->nodetree; case ID_SCE: - return ((Scene*)id)->nodetree; + return ((Scene *)id)->nodetree; case ID_TE: - return ((Tex*)id)->nodetree; + return ((Tex *)id)->nodetree; } } @@ -339,7 +339,7 @@ static void node_update_basis(const bContext *C, bNodeTree *ntree, bNode *node) RNA_pointer_create(&ntree->id, &RNA_NodeSocket, nsock, &sockptr); layout = uiBlockLayout(node->block, UI_LAYOUT_VERTICAL, UI_LAYOUT_PANEL, - locx+NODE_DYS, dy, NODE_WIDTH(node)-NODE_DY, NODE_DY, UI_GetStyle()); + locx + NODE_DYS, dy, NODE_WIDTH(node) - NODE_DY, NODE_DY, UI_GetStyle()); /* context pointers for current node and socket */ uiLayoutSetContextPointer(layout, "node", &nodeptr); uiLayoutSetContextPointer(layout, "socket", &sockptr); @@ -427,7 +427,7 @@ static void node_update_basis(const bContext *C, bNodeTree *ntree, bNode *node) RNA_pointer_create(&ntree->id, &RNA_NodeSocket, nsock, &sockptr); layout = uiBlockLayout(node->block, UI_LAYOUT_VERTICAL, UI_LAYOUT_PANEL, - locx+NODE_DYS, dy, NODE_WIDTH(node)-NODE_DY, NODE_DY, UI_GetStyle()); + locx + NODE_DYS, dy, NODE_WIDTH(node) - NODE_DY, NODE_DY, UI_GetStyle()); /* context pointers for current node and socket */ uiLayoutSetContextPointer(layout, "node", &nodeptr); uiLayoutSetContextPointer(layout, "socket", &sockptr); |