Merge pull request #5597 from BigRoy/bugfix/maya_fix_look_assigner_items_with_not_found

Maya: Fix look assigner showing no asset if 'not found' representations are present
This commit is contained in:
Jakub Trllo 2023-09-08 12:17:34 +02:00 committed by GitHub
commit db05543e30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,8 +138,13 @@ def create_items_from_nodes(nodes):
asset_doc = asset_docs_by_id.get(asset_id) asset_doc = asset_docs_by_id.get(asset_id)
# Skip if asset id is not found # Skip if asset id is not found
if not asset_doc: if not asset_doc:
log.warning("Id not found in the database, skipping '%s'." % _id) log.warning(
log.warning("Nodes: %s" % id_nodes) "Id found on {num} nodes for which no asset is found database,"
" skipping '{asset_id}'".format(
num=len(nodes),
asset_id=asset_id
)
)
continue continue
# Collect available look subsets for this asset # Collect available look subsets for this asset