mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Update client/ayon_core/pipeline/publish/lib.py
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
54c10cd6da
commit
ae9c6d4218
1 changed files with 2 additions and 3 deletions
|
|
@ -1097,9 +1097,8 @@ def add_trait_representations(
|
|||
trait based representations to add.
|
||||
|
||||
"""
|
||||
if not has_trait_representations(instance):
|
||||
instance.data[TRAIT_INSTANCE_KEY] = []
|
||||
instance.data[TRAIT_INSTANCE_KEY].extend(representations)
|
||||
repres = instance.data.setdefault(TRAIT_INSTANCE_KEY, [])
|
||||
repres.extend(representations)
|
||||
|
||||
|
||||
def set_trait_representations(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue