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