From a6c2d02366682d9375b8b69185f657b99ac8f038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20T=C3=B6nne?= Date: Wed, 29 Oct 2014 13:05:21 +0100 Subject: [PATCH] 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 --- release/scripts/templates_py/custom_nodes.py | 3 --- 1 file changed, 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'