2023-03-21 20:39:30 +00:00
|
|
|
import bpy
|
|
|
|
import os
|
|
|
|
|
2023-03-29 10:43:53 +00:00
|
|
|
from ..common import icons
|
|
|
|
|
2023-03-21 20:39:30 +00:00
|
|
|
|
|
|
|
def initialize_icons_collection():
|
2023-03-29 10:43:53 +00:00
|
|
|
import bpy.utils.previews
|
|
|
|
icons.icons_collection = bpy.utils.previews.new()
|
2023-03-21 20:39:30 +00:00
|
|
|
|
|
|
|
|
2023-03-29 10:43:53 +00:00
|
|
|
def unload_icons():
|
|
|
|
bpy.utils.previews.remove(icons.icons_collection)
|
2023-03-21 20:39:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
def register_icons():
|
2023-03-29 10:43:53 +00:00
|
|
|
initialize_icons_collection()
|
|
|
|
|
2023-03-21 20:39:30 +00:00
|
|
|
|
|
|
|
def unregister_icons():
|
2023-03-29 10:43:53 +00:00
|
|
|
unload_icons()
|