diff --git a/avalon/tools/lib.py b/avalon/tools/lib.py index fd8f4609a..f30c6be46 100644 --- a/avalon/tools/lib.py +++ b/avalon/tools/lib.py @@ -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)) @@ -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) @@ -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() diff --git a/res/icons/png/hou.png b/res/icons/png/hou.png new file mode 100644 index 000000000..69a0e5a87 Binary files /dev/null and b/res/icons/png/hou.png differ