Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5876 from ynput/bugfix/ayon-loader-icons-fix
Browse files Browse the repository at this point in the history
AYON tools: Handle empty icon definition
  • Loading branch information
iLLiCiTiT authored Nov 7, 2023
2 parents 414df23 + ce41304 commit 4bb7c58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openpype/tools/ayon_utils/widgets/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def _get_cache_key(cls, icon_def):

@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)
Expand Down

0 comments on commit 4bb7c58

Please sign in to comment.