Godot_bridge/addon/icons/__init__.py

22 lines
349 B
Python
Raw Normal View History

import bpy
import os
2023-03-29 10:43:53 +00:00
from ..common import icons
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-29 10:43:53 +00:00
def unload_icons():
bpy.utils.previews.remove(icons.icons_collection)
def register_icons():
2023-03-29 10:43:53 +00:00
initialize_icons_collection()
def unregister_icons():
2023-03-29 10:43:53 +00:00
unload_icons()