remove register/unregister from templates
[blender.git] / release / scripts / templates / operator_modal_draw.py
index 1f24672346bb0043f35ebcd7e6d770734fb41d74..56ffb95f5552d6adbef24abc07fcf0ade4ef31ac 100644 (file)
@@ -64,15 +64,3 @@ class ModalDrawOperator(bpy.types.Operator):
         else:
             self.report({'WARNING'}, "View3D not found, cannot run operator")
             return {'CANCELLED'}
-
-
-def register():
-    bpy.types.register(ModalDrawOperator)
-
-
-def unregister():
-    bpy.types.unregister(ModalDrawOperator)
-
-
-if __name__ == "__main__":
-    register()