diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-11 04:29:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-11 04:29:13 +0300 |
commit | 61d5b389e2424ff22576cc07b99260f952f6f97b (patch) | |
tree | 70707fe8017ba115d22ad723451ec9183cc0d242 /io_coat3D | |
parent | bdfca1046394902777ebe075b37597d416d634a9 (diff) |
add in module register calls (first pass, batch replace, will test each addon next).
Diffstat (limited to 'io_coat3D')
-rw-r--r-- | io_coat3D/__init__.py | 4 | ||||
-rw-r--r-- | io_coat3D/coat.py | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py index 0a7d5d8f..b6aecccb 100644 --- a/io_coat3D/__init__.py +++ b/io_coat3D/__init__.py @@ -46,6 +46,8 @@ from bpy.props import * def register(): + bpy.utils.register_module(__name__) + bpy.coat3D = dict() bpy.coat3D['active_coat'] = '' @@ -276,6 +278,8 @@ def register(): def unregister(): + bpy.utils.unregister_module(__name__) + import bpy del bpy.types.Object.coat3D diff --git a/io_coat3D/coat.py b/io_coat3D/coat.py index 48a2c996..fc989dd6 100644 --- a/io_coat3D/coat.py +++ b/io_coat3D/coat.py @@ -519,9 +519,13 @@ class SCENE_OT_deltex(bpy.types.Operator): return('FINISHED') def register(): + bpy.utils.register_module(__name__) + pass def unregister(): + bpy.utils.unregister_module(__name__) + pass if __name__ == "__main__": |