Only get path if a value is found

This commit is contained in:
Roy Nieterau 2023-09-06 00:07:39 +02:00
parent a61f7ac799
commit b953391f43

View file

@ -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)