def unregister(): bpy.utils.unregister_module(__name__) # CUSTOM ICONS CLEANUP _icons.cleanup() # REMOVE MENU ENTRIES bpy.types.INFO_MT_file_export.remove(menu_func_export) bpy.types.INFO_MT_file_import.remove(menu_func_import) # REMOVE OPENGL HANDLERS _open_gl_callback.disable() # REMOVE PERSISTENT HANDLERS _persistent_callback.disable() # REMOVE PROPERTIES FROM DATA del bpy.types.Action.scs_props del bpy.types.Material.scs_props del bpy.types.Mesh.scs_props del bpy.types.Scene.scs_props del bpy.types.Object.scs_props del bpy.types.World.scs_globals del bpy.types.Object.scs_object_look_inventory del bpy.types.Object.scs_object_part_inventory del bpy.types.Object.scs_object_variant_inventory del bpy.types.Object.scs_object_animation_inventory del bpy.types.World.scs_shader_presets_inventory
def unregister(): bpy.utils.unregister_module(__name__) # REMOVE MENU ENTRIES bpy.types.INFO_MT_file_export.remove(menu_func_export) bpy.types.INFO_MT_file_import.remove(menu_func_import) bpy.types.INFO_MT_add.remove(add_menu_func) # REMOVE OPENGL HANDLERS _open_gl_callback.disable() # REMOVE PERSISTENT HANDLERS _persistent_callback.disable() # REMOVE PROPERTIES FROM DATA del bpy.types.Action.scs_props del bpy.types.Material.scs_props del bpy.types.Mesh.scs_props del bpy.types.Scene.scs_props del bpy.types.Object.scs_props del bpy.types.World.scs_globals del bpy.types.Object.scs_object_look_inventory del bpy.types.Object.scs_object_part_inventory del bpy.types.Object.scs_object_variant_inventory del bpy.types.Object.scs_object_animation_inventory
def unregister(): # DELETE CUSTOM ICONS _icons.unregister() # REMOVE OPENGL HANDLERS _open_gl_callback.disable() # REMOVE PERSISTENT HANDLERS _persistent_callback.disable() # REMOVE MENU ENTRIES bpy.types.TOPBAR_MT_editor_menus.remove(menu_scs_tools) bpy.types.TOPBAR_MT_file_import.remove(menu_func_export) bpy.types.TOPBAR_MT_file_export.remove(menu_func_import) bpy.types.VIEW3D_MT_add.remove(add_menu_func) # REMOVE MAIN MODULE CLASSES for cls in classes: bpy.utils.unregister_class(cls) # UNREGISTER OPERATORS from io_scs_tools.operators import unregister as ops_unregister ops_unregister() # UNREGISTER UI from io_scs_tools.ui import unregister as ui_unregister ui_unregister() # REMOVE PROPERTIES FROM DATA del bpy.types.Action.scs_props del bpy.types.Material.scs_props del bpy.types.Mesh.scs_props del bpy.types.Scene.scs_props del bpy.types.Object.scs_props del bpy.types.WorkSpace.scs_props del bpy.types.Object.scs_object_look_inventory del bpy.types.Object.scs_object_part_inventory del bpy.types.Object.scs_object_variant_inventory del bpy.types.Object.scs_object_animation_inventory # UNREGISTER PROPS from io_scs_tools.properties import unregister as props_unregister props_unregister()