forked from bartvdbraak/blender
Fix T38008: Bug in templates operator_nodes.py
This commit is contained in:
parent
3c6b5b72a4
commit
de147a907f
@ -1,7 +1,7 @@
|
||||
import bpy
|
||||
|
||||
|
||||
def main(context):
|
||||
def main(operator, context):
|
||||
space = context.space_data
|
||||
node_tree = space.node_tree
|
||||
node_active = context.active_node
|
||||
@ -43,7 +43,7 @@ class NodeOperator(bpy.types.Operator):
|
||||
return space.type == 'NODE_EDITOR'
|
||||
|
||||
def execute(self, context):
|
||||
main(context)
|
||||
main(self, context)
|
||||
return {'FINISHED'}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user