diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-03 06:44:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-03 06:44:39 +0300 |
commit | cfc1b133f664b024acc460e0204bb0bea66a83d3 (patch) | |
tree | 0391686d2afb6fd9bb02bdfc479ceb0bd5428e4d /source/blender/editors/space_node | |
parent | 892b3fbe17c366d37565c7ea85a7704f8daa9560 (diff) |
updates to patch from Dan Eicher, allow adding a NodeGroup through bpy.data.node_groups.new(name, type)
made some minor changes.
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r-- | source/blender/editors/space_node/node_edit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c index 46ebfad1ddf..5dd4b9891a1 100644 --- a/source/blender/editors/space_node/node_edit.c +++ b/source/blender/editors/space_node/node_edit.c @@ -244,7 +244,7 @@ void ED_node_shader_default(Material *ma) return; } - ma->nodetree= ntreeAddTree(NTREE_SHADER); + ma->nodetree= ntreeAddTree("Shader Nodetree", NTREE_SHADER, FALSE); out= nodeAddNodeType(ma->nodetree, SH_NODE_OUTPUT, NULL, NULL); out->locx= 300.0f; out->locy= 300.0f; @@ -275,7 +275,7 @@ void ED_node_composit_default(Scene *sce) return; } - sce->nodetree= ntreeAddTree(NTREE_COMPOSIT); + sce->nodetree= ntreeAddTree("Compositing Nodetree", NTREE_COMPOSIT, FALSE); out= nodeAddNodeType(sce->nodetree, CMP_NODE_COMPOSITE, NULL, NULL); out->locx= 300.0f; out->locy= 400.0f; @@ -312,7 +312,7 @@ void ED_node_texture_default(Tex *tx) return; } - tx->nodetree= ntreeAddTree(NTREE_TEXTURE); + tx->nodetree= ntreeAddTree("Texture Nodetree", NTREE_TEXTURE, FALSE); out= nodeAddNodeType(tx->nodetree, TEX_NODE_OUTPUT, NULL, NULL); out->locx= 300.0f; out->locy= 300.0f; |