Godot_bridge/addon/icons/__init__.py
2023-03-29 12:43:53 +02:00

21 lines
349 B
Python

import bpy
import os
from ..common import icons
def initialize_icons_collection():
import bpy.utils.previews
icons.icons_collection = bpy.utils.previews.new()
def unload_icons():
bpy.utils.previews.remove(icons.icons_collection)
def register_icons():
initialize_icons_collection()
def unregister_icons():
unload_icons()