Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-11-02 11:32:00 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-02 11:32:00 +0300
commitdd130350d5650dc85133a9fde2f84f82c2d8df2c (patch)
treefbbcc0283b3ef5006dba7048ea51c9ba85a8b828 /release/scripts/templates
parentab7a174f92d872955389f5226970344983f9e56f (diff)
make python operator instances subclasses of the wmOperator when called.
was subclassing the operator's type before. Removes the need for passing self.__operator__, can pass self directly.
Diffstat (limited to 'release/scripts/templates')
-rw-r--r--release/scripts/templates/operator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/templates/operator.py b/release/scripts/templates/operator.py
index b0c03045216..88e6a327096 100644
--- a/release/scripts/templates/operator.py
+++ b/release/scripts/templates/operator.py
@@ -51,11 +51,11 @@ class ExportSomeData(bpy.types.Operator):
if True:
# File selector
- wm.add_fileselect(self.__operator__) # will run self.execute()
+ wm.add_fileselect(self) # will run self.execute()
return ('RUNNING_MODAL',)
else if 0:
# Redo popup
- wm.invoke_props_popup(self.__operator__, event) #
+ wm.invoke_props_popup(self, event) #
return ('RUNNING_MODAL',)
else if 0:
return self.execute(context)