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-06-09 13:49:44 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2013-06-09 13:49:44 +0400
commit3fe01ecfd9bb9cd9a2cff5cf27c32cdaace95400 (patch)
tree371f2ffea6307fb8b67df57832850feddff93f0c /release/scripts/templates_py/custom_nodes.py
parent6e55460a8d208f7d8dd9992416d0c359c0298488 (diff)
Removed the unused draw_add_menu function from pynodes template. This was previously used to extend the node Add menu, now the node categories system is used instead.
Diffstat (limited to 'release/scripts/templates_py/custom_nodes.py')
-rw-r--r--release/scripts/templates_py/custom_nodes.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/release/scripts/templates_py/custom_nodes.py b/release/scripts/templates_py/custom_nodes.py
index 48dbfd4749a..d5bb71416c9 100644
--- a/release/scripts/templates_py/custom_nodes.py
+++ b/release/scripts/templates_py/custom_nodes.py
@@ -4,10 +4,6 @@ from bpy_types import NodeTree, Node, NodeSocket
# Implementation of custom nodes from Python
-# Shortcut for node type menu
-def add_nodetype(layout, type):
- layout.operator("node.add_node", text=type.bl_label).type = type.bl_rna.identifier
-
# Derived from the NodeTree base type, similar to Menu, Operator, Panel, etc.
class MyCustomTree(NodeTree):
# Description string
@@ -22,11 +18,6 @@ class MyCustomTree(NodeTree):
# Only one base tree class is needed in the editor for selecting the general category
bl_icon = 'NODETREE'
- def draw_add_menu(self, context, layout):
- layout.label("Hello World!")
- add_nodetype(layout, bpy.types.CustomNodeType)
- add_nodetype(layout, bpy.types.MyCustomGroup)
-
# Custom socket type
class MyCustomSocket(NodeSocket):