Update Files

This commit is contained in:
2025-01-22 16:18:30 +01:00
parent ed4603cf95
commit a36294b518
16718 changed files with 2960346 additions and 0 deletions

View File

@ -0,0 +1,31 @@
import os
import bpy
from bpy.utils import previews
icons = None
directory = os.path.abspath(os.path.join(__file__, '..', '..', '..', 'icons'))
def id(identifier):
return image(identifier).icon_id
def image(identifier):
def icon(identifier):
if identifier in icons:
return icons[identifier]
return icons.load(identifier, os.path.join(directory, identifier + '.png'), 'IMAGE')
if icons:
return icon(identifier)
else:
create()
return icon(identifier)
def create():
global icons
icons = previews.new()
def remove():
previews.remove(icons)