mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #5876 from ynput/bugfix/ayon-loader-icons-fix
AYON tools: Handle empty icon definition
This commit is contained in:
commit
4bb7c58231
1 changed files with 2 additions and 0 deletions
|
|
@ -54,6 +54,8 @@ class _IconsCache:
|
|||
|
||||
@classmethod
|
||||
def get_icon(cls, icon_def):
|
||||
if not icon_def:
|
||||
return None
|
||||
icon_type = icon_def["type"]
|
||||
cache_key = cls._get_cache_key(icon_def)
|
||||
cache = cls._cache.get(cache_key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue