Fix T38008: Bug in templates operator_nodes.py

This commit is contained in:
Bastien Montagne 2014-01-01 12:02:43 +01:00
parent 3c6b5b72a4
commit de147a907f
Notes: blender-bot 2023-02-14 11:25:08 +01:00
Referenced by issue #38008, Bug in templates operator_nodes.py
1 changed files with 2 additions and 2 deletions

View File

@ -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'}