Fix add_search node operator to show custom nodes
authorMiguel Porces <cmporces>
Sun, 14 Apr 2019 14:59:01 +0000 (16:59 +0200)
committerJacques Lucke <mail@jlucke.com>
Sun, 14 Apr 2019 14:59:01 +0000 (16:59 +0200)
Differential Revision: https://developer.blender.org/D4667

release/scripts/startup/bl_operators/node.py

index fbebee2..9fdaebc 100644 (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