diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-12 11:04:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-12 11:04:32 +0300 |
commit | 9bd57cd302aefe540ebd28dcc2653c03883d426b (patch) | |
tree | e33a4c49f933db2c2926b8dad382e295d9056cd1 /release/scripts/templates/operator_modal_draw.py | |
parent | 0a4eb24ca0e0cf7e4e1b615e0929ec50bf030d74 (diff) |
update templates for registration changes
Diffstat (limited to 'release/scripts/templates/operator_modal_draw.py')
-rw-r--r-- | release/scripts/templates/operator_modal_draw.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/release/scripts/templates/operator_modal_draw.py b/release/scripts/templates/operator_modal_draw.py index 52259e4b8e7..e7a1f6e4ffe 100644 --- a/release/scripts/templates/operator_modal_draw.py +++ b/release/scripts/templates/operator_modal_draw.py @@ -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() |