Fix T38008: Bug in templates operator_nodes.py
This commit is contained in:
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,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