diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-04-13 21:36:31 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-04-13 21:36:31 +0400 |
commit | dfeddd35498e637c5eab517a440eae3a65d591b4 (patch) | |
tree | 22247656bb655b6806f9b22738bb7ea6e4299ab4 /source | |
parent | a646f505c34acba5780be4aa19523894ec8ae3d4 (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')
-rw-r--r-- | source/blender/editors/space_node/space_node.c | 9 |
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"); |