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():
|
def unregister():
|
||||||
#GUI Utilities
|
|
||||||
# utilities_ui.unregister()
|
|
||||||
|
|
||||||
from bpy.utils import unregister_class
|
from bpy.utils import unregister_class
|
||||||
for cls in reversed(classes):
|
for cls in reversed(classes):
|
||||||
unregister_class(cls)
|
unregister_class(cls)
|
||||||
|
|
||||||
|
|
||||||
#Unregister Settings
|
#Unregister Settings
|
||||||
del bpy.types.Scene.texToolsSettings
|
del bpy.types.Scene.texToolsSettings
|
||||||
|
|
||||||
@ -1463,6 +1459,9 @@ def unregister():
|
|||||||
km.keymap_items.remove(kmi)
|
km.keymap_items.remove(kmi)
|
||||||
keymaps.clear()
|
keymaps.clear()
|
||||||
|
|
||||||
|
#GUI Utilities
|
||||||
|
utilities_ui.unregister()
|
||||||
|
|
||||||
bpy.types.IMAGE_MT_uvs.remove(menu_IMAGE_uvs)
|
bpy.types.IMAGE_MT_uvs.remove(menu_IMAGE_uvs)
|
||||||
bpy.types.IMAGE_MT_select.remove(menu_IMAGE_select)
|
bpy.types.IMAGE_MT_select.remove(menu_IMAGE_select)
|
||||||
bpy.types.IMAGE_MT_image.remove(menu_IMAGE_MT_image)
|
bpy.types.IMAGE_MT_image.remove(menu_IMAGE_MT_image)
|
||||||
|
@ -155,12 +155,13 @@ def unregister():
|
|||||||
from bpy.types import WindowManager
|
from bpy.types import WindowManager
|
||||||
for preview_collection in preview_collections.values():
|
for preview_collection in preview_collections.values():
|
||||||
bpy.utils.previews.remove(preview_collection)
|
bpy.utils.previews.remove(preview_collection)
|
||||||
preview_collections.clear()
|
preview_collection.clear()
|
||||||
|
|
||||||
|
|
||||||
# Unregister icons
|
# Unregister icons
|
||||||
# global preview_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
|
del bpy.types.Scene.TT_bake_mode
|
||||||
|
Loading…
Reference in New Issue
Block a user