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:
@@ -1553,7 +1553,7 @@ class OBJECT_OT_select_pattern(bpy.types.Operator):
|
||||
'''
|
||||
def invoke(self, context, event):
|
||||
wm = context.manager
|
||||
wm.add_fileselect(self.__operator__)
|
||||
wm.add_fileselect(self)
|
||||
return ('RUNNING_MODAL',)
|
||||
'''
|
||||
|
||||
|
Reference in New Issue
Block a user