update templates for registration changes
[blender.git] / release / scripts / templates / operator_modal_draw.py
index 52259e4b8e75b25c154ccd2ce7b7019f1a724ef0..e7a1f6e4ffeafc573437d3f9de263610bd504f76 100644 (file)
@@ -65,3 +65,14 @@ class ModalDrawOperator(bpy.types.Operator):
         else:
             self.report({'WARNING'}, "View3D not found, cannot run operator")
             return {'CANCELLED'}
+
+
+def register():
+    bpy.utils.register_class(ModalDrawOperator)
+
+
+def unregister():
+    bpy.utils.unregister_class(ModalDrawOperator)
+
+if __name__ == "__main__":
+    register()