Fix add_search node operator to show custom nodes

Differential Revision: https://developer.blender.org/D4667
This commit is contained in:
Miguel Porces
2019-04-14 16:59:01 +02:00
committed by Jacques Lucke
parent 6efac431a3
commit 9abcae1fda

View File

@@ -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