[Bf-blender-cvs] [de147a9] master: Fix T38008: Bug in templates operator_nodes.py

Bastien Montagne noreply at git.blender.org
Wed Jan 1 12:02:37 CET 2014


Commit: de147a907f05739d49449e3184e6918dadcfdad9
Author: Bastien Montagne
Date:   Wed Jan 1 12:02:43 2014 +0100
https://developer.blender.org/rBde147a907f05739d49449e3184e6918dadcfdad9

Fix T38008: Bug in templates operator_nodes.py

===================================================================

M	release/scripts/templates_py/operator_node.py

===================================================================

diff --git a/release/scripts/templates_py/operator_node.py b/release/scripts/templates_py/operator_node.py
index b689ce7..764e50d 100644
--- a/release/scripts/templates_py/operator_node.py
+++ b/release/scripts/templates_py/operator_node.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'}




More information about the Bf-blender-cvs mailing list