mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
PS - fix repair validator - limit duplication of family
This commit is contained in:
parent
628b34a3cd
commit
2f8ecc6d82
1 changed files with 1 additions and 1 deletions
|
|
@ -25,12 +25,12 @@ class ValidateNamingRepair(pyblish.api.Action):
|
|||
for instance in instances:
|
||||
self.log.info("validate_naming instance {}".format(instance))
|
||||
name = instance.data["name"].replace(" ", "_")
|
||||
name = name.replace(instance.data["family"], '')
|
||||
instance[0].Name = name
|
||||
data = stub.read(instance[0])
|
||||
data["subset"] = "image" + name
|
||||
stub.imprint(instance[0], data)
|
||||
|
||||
name = name.replace(instance.data["family"], '')
|
||||
name = stub.PUBLISH_ICON + name
|
||||
stub.rename_layer(instance.data["uuid"], name)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue