diff options
author | Miguel Porces <cmporces> | 2019-04-14 17:59:01 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-04-14 17:59:01 +0300 |
commit | 9abcae1fda8754ee5cf439b2e3ac6eca929761a2 (patch) | |
tree | 3b23a93cb9ba3c2eb6efea17c1593ecaeacbb53b /release/scripts/startup | |
parent | 6efac431a35c9792021eeb85b4eb0df04f88da80 (diff) |
Fix add_search node operator to show custom nodes
Differential Revision: https://developer.blender.org/D4667
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_operators/node.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/release/scripts/startup/bl_operators/node.py b/release/scripts/startup/bl_operators/node.py index fbebee2d8a1..9fdaebc7540 100644 --- a/release/scripts/startup/bl_operators/node.py +++ b/release/scripts/startup/bl_operators/node.py @@ -192,14 +192,12 @@ class NODE_OT_add_search(NodeAddOperator, Operator): for index, item in enumerate(nodeitems_utils.node_items_iter(context)): if isinstance(item, nodeitems_utils.NodeItem): - nodetype = getattr(bpy.types, item.nodetype, None) - if nodetype: - enum_items.append( - (str(index), - item.label, - nodetype.bl_rna.description, - index, - )) + enum_items.append( + (str(index), + item.label, + "", + index, + )) return enum_items # Look up the item based on index |