mirror of
https://github.com/drewcassidy/TexTools-Blender
synced 2024-09-01 14:54:44 +00:00
commit
6f363b225a
@ -1447,14 +1447,10 @@ def register():
|
||||
|
||||
|
||||
def unregister():
|
||||
#GUI Utilities
|
||||
# utilities_ui.unregister()
|
||||
|
||||
from bpy.utils import unregister_class
|
||||
for cls in reversed(classes):
|
||||
unregister_class(cls)
|
||||
|
||||
|
||||
#Unregister Settings
|
||||
del bpy.types.Scene.texToolsSettings
|
||||
|
||||
@ -1463,6 +1459,9 @@ def unregister():
|
||||
km.keymap_items.remove(kmi)
|
||||
keymaps.clear()
|
||||
|
||||
#GUI Utilities
|
||||
utilities_ui.unregister()
|
||||
|
||||
bpy.types.IMAGE_MT_uvs.remove(menu_IMAGE_uvs)
|
||||
bpy.types.IMAGE_MT_select.remove(menu_IMAGE_select)
|
||||
bpy.types.IMAGE_MT_image.remove(menu_IMAGE_MT_image)
|
||||
|
@ -155,12 +155,13 @@ def unregister():
|
||||
from bpy.types import WindowManager
|
||||
for preview_collection in preview_collections.values():
|
||||
bpy.utils.previews.remove(preview_collection)
|
||||
preview_collections.clear()
|
||||
preview_collection.clear()
|
||||
|
||||
|
||||
# Unregister icons
|
||||
# global preview_icons
|
||||
bpy.utils.previews.remove(preview_icons)
|
||||
# bpy.utils.previews.remove(preview_icons)
|
||||
preview_icons.clear()
|
||||
|
||||
|
||||
del bpy.types.Scene.TT_bake_mode
|
||||
|
Loading…
Reference in New Issue
Block a user