* register operators like other classes
* operators now return sets (converted into flags) * can't remove bpy_operator_wrap.c since macro's still use the custom register funcs
This commit is contained in:
@@ -980,7 +980,7 @@ class ExportOBJ(bpy.types.Operator):
|
||||
EXPORT_SEL_ONLY=self.properties.use_selection,
|
||||
EXPORT_ALL_SCENES=self.properties.use_all_scenes)
|
||||
|
||||
return ('FINISHED',)
|
||||
return {'FINISHED'}
|
||||
|
||||
def invoke(self, context, event):
|
||||
wm = context.manager
|
||||
@@ -991,7 +991,7 @@ class ExportOBJ(bpy.types.Operator):
|
||||
|
||||
|
||||
|
||||
bpy.ops.add(ExportOBJ)
|
||||
bpy.types.register(ExportOBJ)
|
||||
|
||||
import dynamic_menu
|
||||
|
||||
|
Reference in New Issue
Block a user