Commit a784a8e9 authored by Spivak Vladimir (cwolf3d)'s avatar Spivak Vladimir (cwolf3d)
Browse files

Addon: Atomic Blender - Cluster: Corrected register and unregister.

parent 7374d34f
......@@ -381,9 +381,8 @@ classes = (CLASS_ImportCluster,
def register():
from bpy.utils import register_class
for cls in classes:
register_class(cls)
bpy.utils.register_class(cls)
bpy.types.Scene.atom_cluster = bpy.props.PointerProperty(type=
CLASS_atom_cluster_Properties)
......@@ -391,12 +390,12 @@ def register():
def unregister():
from bpy.utils import unregister_class
for cls in reversed(classes):
unregister_class(cls)
bpy.types.VIEW3D_MT_mesh_add.remove(DEF_menu_func)
del bpy.types.Scene.atom_cluster
for cls in reversed(classes):
bpy.utils.unregister_class(cls)
if __name__ == "__main__":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment