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:
authorLukas Toenne <lukas.toenne@googlemail.com>2013-04-13 21:36:31 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2013-04-13 21:36:31 +0400
commitdfeddd35498e637c5eab517a440eae3a65d591b4 (patch)
tree22247656bb655b6806f9b22738bb7ea6e4299ab4 /source/blender/editors/space_node/space_node.c
parenta646f505c34acba5780be4aa19523894ec8ae3d4 (diff)
Node editor: create the toolbar area right at the start in node space, in order to show the '+' icon for expanding.
Diffstat (limited to 'source/blender/editors/space_node/space_node.c')
-rw-r--r--source/blender/editors/space_node/space_node.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/space_node.c b/source/blender/editors/space_node/space_node.c
index 86cf9d98e78..680d577a3b6 100644
--- a/source/blender/editors/space_node/space_node.c
+++ b/source/blender/editors/space_node/space_node.c
@@ -306,6 +306,15 @@ static SpaceLink *node_new(const bContext *UNUSED(C))
ar->regiontype = RGN_TYPE_UI;
ar->alignment = RGN_ALIGN_RIGHT;
+ /* toolbar */
+ ar = MEM_callocN(sizeof(ARegion), "node tools");
+
+ BLI_addtail(&snode->regionbase, ar);
+ ar->regiontype = RGN_TYPE_TOOLS;
+ ar->alignment = RGN_ALIGN_LEFT;
+
+ ar->flag = RGN_FLAG_HIDDEN;
+
/* main area */
ar = MEM_callocN(sizeof(ARegion), "main area for node");