mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
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:
commit
db05543e30
1 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue