mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
added attribute change uuid check
This commit is contained in:
parent
569d093ee4
commit
d66c2123b6
1 changed files with 10 additions and 2 deletions
|
|
@ -71,10 +71,18 @@ class ValidateLookContents(pyblish.api.InstancePlugin):
|
|||
|
||||
# Validate at least one single relationship is collected
|
||||
if not lookdata["relationships"]:
|
||||
cls.log.error("Look '{}' has no "
|
||||
"`relationships`".format(instance.name))
|
||||
cls.log.error("Look '%s' has no "
|
||||
"`relationships`" % instance.name)
|
||||
invalid.add(instance.name)
|
||||
|
||||
# Check if attributes are on a node with an ID, crucial for rebuild!
|
||||
for attr_changes in lookdata["attributes"]:
|
||||
if not attr_changes["uuid"]:
|
||||
cls.log.error("Node '%s' has no cbId, please set the "
|
||||
"attributes to its children if it has any"
|
||||
% attr_changes["name"])
|
||||
invalid.add(instance.name)
|
||||
|
||||
return list(invalid)
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue