mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Only get path if a value is found
This commit is contained in:
parent
a61f7ac799
commit
b953391f43
1 changed files with 1 additions and 1 deletions
|
|
@ -26,10 +26,10 @@ def get_usd_ids_cache(path):
|
|||
attr = prim.GetAttribute("userProperties:cbId")
|
||||
if not attr.IsValid():
|
||||
continue
|
||||
path = str(prim.GetPath())
|
||||
value = attr.Get()
|
||||
if not value:
|
||||
continue
|
||||
path = str(prim.GetPath())
|
||||
ids[path] = value
|
||||
|
||||
cache = defaultdict(list)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue