Browse Source

Remove operators when unloading Korman.

No need to keep cruft around!
pull/6/head
Adam Johnson 11 years ago
parent
commit
f38d32e37c
  1. 3
      korman/__init__.py
  2. 3
      korman/operators/__init__.py
  3. 3
      korman/operators/op_export.py

3
korman/__init__.py

@ -20,7 +20,7 @@ from . import operators, properties, ui
bl_info = {
"name": "Korman",
"author": "Guild of Writers",
"blender": (2, 67, 0), # I can't be bothered to support old stuff
"blender": (2, 70, 0), # I can't be bothered to support old stuff
"location": "File > Import-Export",
"description": "Exporter for Cyan Worlds' Plasma Engine",
"warning": "alpha",
@ -43,6 +43,7 @@ def register():
def unregister():
"""Unregisters all Blender operators and GUI items"""
bpy.utils.unregister_module(__name__)
operators.unregister()
if __name__ == "__main__":

3
korman/operators/__init__.py

@ -18,3 +18,6 @@ from . import op_world as world
def register():
exporter.register()
def unregister():
exporter.unregister()

3
korman/operators/op_export.py

@ -96,3 +96,6 @@ def menu_cb(self, context):
def register():
bpy.types.INFO_MT_file_export.append(menu_cb)
def unregister():
bpy.types.INFO_MT_file_export.remove(menu_cb)

Loading…
Cancel
Save