mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
OP-2813 - fixed duplication of representations
nuke.api.plugin.ExporterReview adds representation explicitly via publish_on_farm, so skip adding repre if already there. (Issue in ExtractBurnin other way.) ExporterReview should be probably refactored and publish_on_farm removed altogether.
This commit is contained in:
parent
87b44b4b14
commit
e208e7976d
1 changed files with 11 additions and 2 deletions
|
|
@ -601,13 +601,22 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
|
||||||
"files": os.path.basename(remainder),
|
"files": os.path.basename(remainder),
|
||||||
"stagingDir": os.path.dirname(remainder),
|
"stagingDir": os.path.dirname(remainder),
|
||||||
}
|
}
|
||||||
representations.append(rep)
|
|
||||||
if "render" in instance.get("families"):
|
if "render" in instance.get("families"):
|
||||||
rep.update({
|
rep.update({
|
||||||
"fps": instance.get("fps"),
|
"fps": instance.get("fps"),
|
||||||
"tags": ["review"]
|
"tags": ["review"]
|
||||||
})
|
})
|
||||||
self._solve_families(instance, True)
|
self._solve_families(instance, True)
|
||||||
|
|
||||||
|
already_there = False
|
||||||
|
for repre in instance.get("representations", []):
|
||||||
|
# might be added explicitly before by publish_on_farm
|
||||||
|
already_there = repre.get("files") == rep["files"]
|
||||||
|
if already_there:
|
||||||
|
break
|
||||||
|
self.log.debug("repre {} already_there".format(repre))
|
||||||
|
if not already_there:
|
||||||
|
representations.append(rep)
|
||||||
|
|
||||||
return representations
|
return representations
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue