diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-10-29 15:05:21 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2014-10-29 15:05:21 +0300 |
commit | a6c2d02366682d9375b8b69185f657b99ac8f038 (patch) | |
tree | 2f9be96b1ebb0880fa7f22909f4acf6edb441ee3 /release/scripts/templates_py | |
parent | 6a4a911fc39ffc5f5a43cf6da46bd6af34167992 (diff) |
Fix T42389: Removed outdated comment from custom_nodes.py example script.
There was some confusion about the bl_icon attribute being optional. In
fact the functionality for hiding a tree type in the editor header is
now controlled by writing a poll function for the tree type instead,
which is more flexible and clean.
http://www.blender.org/documentation/blender_python_api_2_71_6/bpy.types.NodeTree.html#bpy.types.NodeTree.poll
Diffstat (limited to 'release/scripts/templates_py')
-rw-r--r-- | release/scripts/templates_py/custom_nodes.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/release/scripts/templates_py/custom_nodes.py b/release/scripts/templates_py/custom_nodes.py index 992ef734859..32c61abace7 100644 --- a/release/scripts/templates_py/custom_nodes.py +++ b/release/scripts/templates_py/custom_nodes.py @@ -13,9 +13,6 @@ class MyCustomTree(NodeTree): # Label for nice name display bl_label = 'Custom Node Tree' # Icon identifier - # NOTE: If no icon is defined, the node tree will not show up in the editor header! - # This can be used to make additional tree types for groups and similar nodes (see below) - # Only one base tree class is needed in the editor for selecting the general category bl_icon = 'NODETREE' |