[Bf-blender-cvs] [a6c2d02] master: Fix T42389: Removed outdated comment from custom_nodes.py example script.
Lukas Tönne
noreply at git.blender.org
Wed Oct 29 13:08:46 CET 2014
Commit: a6c2d02366682d9375b8b69185f657b99ac8f038
Author: Lukas Tönne
Date: Wed Oct 29 13:05:21 2014 +0100
Branches: master
https://developer.blender.org/rBa6c2d02366682d9375b8b69185f657b99ac8f038
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
===================================================================
M release/scripts/templates_py/custom_nodes.py
===================================================================
diff --git a/release/scripts/templates_py/custom_nodes.py b/release/scripts/templates_py/custom_nodes.py
index 992ef73..32c61ab 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'
More information about the Bf-blender-cvs
mailing list