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.
This commit is contained in:
Campbell Barton
2009-11-02 08:32:00 +00:00
parent ab7a174f92
commit dd130350d5
13 changed files with 23 additions and 23 deletions

View File

@@ -995,7 +995,7 @@ class EXPORT_OT_obj(bpy.types.Operator):
def invoke(self, context, event):
wm = context.manager
wm.add_fileselect(self.__operator__)
wm.add_fileselect(self)
return ('RUNNING_MODAL',)
def poll(self, context): # Poll isnt working yet