diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-06-08 21:35:05 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-06-08 21:35:05 +0400 |
commit | 377b4f71add0b2ad6ec6a46f9004dfcf51c1a60a (patch) | |
tree | e684434c2a7ebfcf6dcf76fbeb758fb63381301c /release/scripts/startup/bl_operators/node.py | |
parent | d314600cd267971f8ba3864deef2fb84a900e577 (diff) |
Fix for node search operator, this was not taking into account possible NodeItemCustom in the categories yet. Such custom items as just ignored for now.
Diffstat (limited to 'release/scripts/startup/bl_operators/node.py')
-rw-r--r-- | release/scripts/startup/bl_operators/node.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_operators/node.py b/release/scripts/startup/bl_operators/node.py index 7d09e1e759e..c9ce38e1c6f 100644 --- a/release/scripts/startup/bl_operators/node.py +++ b/release/scripts/startup/bl_operators/node.py @@ -173,9 +173,10 @@ class NODE_OT_add_search(NodeAddOperator, Operator): enum_items.clear() for index, item in enumerate(nodeitems_utils.node_items_iter(context)): - nodetype = getattr(bpy.types, item.nodetype, None) - if nodetype: - enum_items.append((str(index), item.label, nodetype.bl_rna.description, index)) + 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)) return enum_items # Look up the item based on index |