style cleanup
This commit is contained in:
@@ -100,10 +100,10 @@ class NODE_OT_add_search(Operator):
|
||||
|
||||
# Enum item identifier has an additional prefix to distinguish base node types from node groups
|
||||
item = self.type
|
||||
if (item.startswith(node_type_prefix)):
|
||||
if item.startswith(node_type_prefix):
|
||||
# item means base node type
|
||||
node = tree.nodes.new(type=item[len(node_type_prefix):])
|
||||
elif (item.startswith(node_group_prefix)):
|
||||
elif item.startswith(node_group_prefix):
|
||||
# item means node group type
|
||||
node = tree.nodes.new(type='GROUP', group=bpy.data.node_groups[item[len(node_group_prefix):]])
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user