Merge pull request #382 from BigRoy/enhancement/maya_validate_model_content_root_unique

Maya: Validate Model Content support for non-unique top group names
This commit is contained in:
Toke Jepsen 2024-04-11 09:31:02 +01:00 committed by GitHub
commit b965f754ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,7 +79,7 @@ class ValidateModelContent(pyblish.api.InstancePlugin,
return [instance.data["instance_node"]]
# Ensure single top group
top_parents = {x.split("|", 2)[1] for x in content_instance}
top_parents = {"|" + x.split("|", 2)[1] for x in content_instance}
if cls.validate_top_group and len(top_parents) != 1:
cls.log.error(
"A model instance must have exactly one top group. "