mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added docstring to 'get_asset_icon'
This commit is contained in:
parent
9156bd08bd
commit
e3b0bb98af
1 changed files with 14 additions and 0 deletions
|
|
@ -65,6 +65,20 @@ def _get_asset_icon_name(asset_doc, has_children=True):
|
|||
|
||||
|
||||
def get_asset_icon(asset_doc, has_children=False):
|
||||
"""Get asset icon.
|
||||
|
||||
Deprecated:
|
||||
This function will be removed in future releases. Use on your own
|
||||
risk.
|
||||
|
||||
Args:
|
||||
asset_doc (dict): Asset document.
|
||||
has_children (Optional[bool]): Asset has children assets.
|
||||
|
||||
Returns:
|
||||
QIcon: Asset icon.
|
||||
|
||||
"""
|
||||
icon_name = _get_asset_icon_name(asset_doc, has_children)
|
||||
icon_color = _get_asset_icon_color(asset_doc)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue