update templates for registration changes
[blender.git] / release / scripts / templates / operator_modal_view3d.py
index eacd335c1daa0ed0244d360830cdffed3a2af32c..c494f121017e2660c4acd779eccdbaf5aa2c6bbb 100644 (file)
@@ -54,3 +54,15 @@ class ViewOperator(bpy.types.Operator):
         else:
             self.report({'WARNING'}, "Active space must be a View3d")
             return {'CANCELLED'}
+
+
+def register():
+    bpy.utils.register_class(ViewOperator)
+
+
+def unregister():
+    bpy.utils.unregister_class(ViewOperator)
+
+
+if __name__ == "__main__":
+    register()