update templates for registration changes
[blender.git] / release / scripts / templates / operator_uv.py
index 73392466aa739dbdcb06478a22b3e76a1008abb5..93fec117fa10bb2be1bef26ccbae9eb79c450923 100644 (file)
@@ -41,5 +41,16 @@ class UvOperator(bpy.types.Operator):
         return {'FINISHED'}
 
 
+def register():
+    bpy.utils.register_class(UvOperator)
+
+
+def unregister():
+    bpy.utils.unregister_class(UvOperator)
+
+
 if __name__ == "__main__":
+    register()
+
+    # test call
     bpy.ops.uv.simple_operator()