remove register/unregister from templates
[blender.git] / release / scripts / templates / operator_simple.py
index 739c1aa7d26b2aa6bd9fbbed93d5366ce99de3bf..e241afd23b797e5162bdd23a7f313bb745da9a51 100644 (file)
@@ -16,11 +16,6 @@ class SimpleOperator(bpy.types.Operator):
         main(context)
         return {'FINISHED'}
 
-def register():
-    pass
-
-def unregister():
-    pass
 
 if __name__ == "__main__":
-    register()
+    bpy.ops.object.simple_operator()