def unregister(): global icons_collection bpy.types.INFO_MT_mesh_add.remove(menu_func) bpy.utils.unregister_class(ARCHIPACK_MT_create) bpy.utils.unregister_class(TOOLS_PT_Archipack_Tools) bpy.utils.unregister_class(TOOLS_PT_Archipack_Create) bpy.utils.unregister_class(Archipack_Pref) archipack_progressbar.unregister() archipack_material.unregister() archipack_snap.unregister() archipack_manipulator.unregister() archipack_reference_point.unregister() archipack_autoboolean.unregister() archipack_door.unregister() archipack_window.unregister() archipack_stair.unregister() archipack_wall2.unregister() archipack_roof.unregister() archipack_slab.unregister() archipack_fence.unregister() archipack_truss.unregister() archipack_floor.unregister() archipack_rendering.unregister() bpy.utils.unregister_class(archipack_data) del WindowManager.archipack for icons in icons_collection.values(): previews.remove(icons) icons_collection.clear()
def unregister(): bpy.utils.unregister_module(__name__) for pcoll in preview_collections.values(): previews.remove(pcoll) preview_collections.clear() del bpy.types.Scene.prev del bpy.types.Scene.favs del bpy.types.Scene.display_location del bpy.types.Scene.dynamic_load del bpy.types.Scene.dynamic_cleanup del bpy.types.Scene.previews_dir
def cleanup(): """Release custom icons internal data. This results in deleting of preview collections entries and preview collections dictionary itself. """ if CUSTOM_ICONS in _preview_collections: for pcoll in _preview_collections.values(): previews.remove(pcoll) _preview_collections.clear()
def unregister(): global icons_dict iconsLib.remove(icons_dict) bpy.types.INFO_MT_file_import.remove(menu_func_import) bpy.types.INFO_MT_file_export.append(menu_func_export) wm = bpy.context.window_manager km = wm.keyconfigs.active.keymaps['3D View'] kmi = km.keymap_items.remove(km.keymap_items['view3d.map_start']) #>>cause warnings prints : "search for unknown operator 'VIEW3D_OT_map_start', 'VIEW3D_OT_map_start' " reclassify.unregister() bpy.utils.unregister_module(__name__)
def unregister(): global icons_dict iconsLib.remove(icons_dict) bpy.types.INFO_MT_file_import.remove(menu_func_import) bpy.types.INFO_MT_file_export.append(menu_func_export) try: #windows manager may be unavailable (for example whne running Blender command line) wm = bpy.context.window_manager km = wm.keyconfigs.active.keymaps['3D View'] if BASEMAPS: kmi = km.keymap_items.remove(km.keymap_items['view3d.map_start']) #>>cause warnings prints : "search for unknown operator 'VIEW3D_OT_map_start', 'VIEW3D_OT_map_start' " except: pass if TERRAIN_RECLASS: nodes_terrain_analysis_reclassify.unregister() bpy.utils.unregister_module(__name__)
def unregister(self): previews.remove(self.preview_handler) self.preview_handler = None
def unregister_infofonts(): global infofonts delattr(bpy.types.WindowManager, "infofonts") previews.remove(infofonts)
def unregister_lockedlib(): global locked delattr(bpy.types.WindowManager, "lockeddecallib") previews.remove(locked)
def unregister_infotextures(): global infotextures delattr(bpy.types.WindowManager, "infotextures") previews.remove(infotextures)
def clean_up(self): # Remove previews. previews.remove(self.previews) self.material_preview_cache.clear()
def unregister_icons(icons): previews.remove(icons)
def unregister_previews(): previews.remove(reference_collections["previews"])
def unregister(): for pcoll in preview_images.values(): previews.remove(pcoll) preview_images.clear() bpy.utils.unregister_module(__name__) del bpy.types.WindowManager.image_preview
def remove(): previews.remove(icons)
def remove_icons(): previews.remove(preview_collections["main"])
def unregister(): for pcoll in preview_collections.values(): previews.remove(pcoll) preview_collections.clear()
def unregister_icons(): for collection in ICON_COLLECTION.values(): previews.remove(collection) ICON_COLLECTION.clear()
def unload_icons(): global icons if icons: previews.remove(icons)