Skip to content

Commit

Permalink
Add houdini icon in Loader
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccaLinx committed Mar 23, 2023
1 parent 421e1ef commit 600a224
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions avalon/tools/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ def get_family_cached_config(name):
return config.get(name, config.get("shotgun_icon", None))
if '.usd' in name:
return config.get(name, config.get("usd_icon", None))
if '.houRender' in name:
return config.get(name, config.get("hou_icon", None))

return config.get(name, config.get("__default__", None))

Expand Down Expand Up @@ -350,6 +352,7 @@ def refresh_family_config_cache():
default_icon = qtawesome.icon("fa.folder", color=FAMILY_ICON_COLOR)
shotgun_icon = QtGui.QIcon(os.path.join(ICON_DIR, 'shotgun.png'))
usd_icon = QtGui.QIcon(os.path.join(ICON_DIR, 'usd.png'))
hou_icon = QtGui.QIcon(os.path.join(ICON_DIR, 'hou.png'))
for name, family in families.items():
# Set family icon
icon = family.get("icon", None)
Expand All @@ -373,6 +376,7 @@ def refresh_family_config_cache():
# Default configuration
families["__default__"] = {"icon": default_icon}
families["shotgun_icon"] = {"icon": shotgun_icon}
families["hou_icon"] = {"icon": hou_icon}
families["usd_icon"] = {"icon": usd_icon}

FAMILY_CONFIG_CACHE.clear()
Expand Down
Binary file added res/icons/png/hou.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 600a224

Please sign in to comment.