Fix add_search node operator to show custom nodes
Differential Revision: https://developer.blender.org/D4667
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user