Exemple #1
0
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()
Exemple #2
0
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   
Exemple #3
0
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__)
Exemple #5
0
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__)
Exemple #6
0
 def unregister(self):
     previews.remove(self.preview_handler)
     self.preview_handler = None
Exemple #7
0
def unregister_infofonts():
    global infofonts

    delattr(bpy.types.WindowManager, "infofonts")
    previews.remove(infofonts)
Exemple #8
0
def unregister_lockedlib():
    global locked

    delattr(bpy.types.WindowManager, "lockeddecallib")
    previews.remove(locked)
Exemple #9
0
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()
Exemple #11
0
def unregister_icons(icons):
    previews.remove(icons)
Exemple #12
0
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
Exemple #14
0
def remove():
    previews.remove(icons)
Exemple #15
0
def remove_icons():
    previews.remove(preview_collections["main"])
Exemple #16
0
def unregister():
    for pcoll in preview_collections.values():
        previews.remove(pcoll)
    preview_collections.clear()
Exemple #17
0
def unregister_icons():
    for collection in ICON_COLLECTION.values():
        previews.remove(collection)
    ICON_COLLECTION.clear()
Exemple #18
0
def unload_icons():
    global icons
    if icons:
        previews.remove(icons)