* 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:
Campbell Barton
2009-12-24 19:50:43 +00:00
parent 4dd3e6c360
commit bbe13e7823
41 changed files with 274 additions and 227 deletions

View File

@@ -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