mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
collect rendered files use only path remapper
This commit is contained in:
parent
5724b36407
commit
688201ca1e
1 changed files with 1 additions and 13 deletions
|
|
@ -85,19 +85,7 @@ class CollectRenderedFiles(pyblish.api.ContextPlugin):
|
|||
representations = []
|
||||
for repre_data in instance_data.get("representations") or []:
|
||||
staging_dir = repre_data.get("stagingDir")
|
||||
if not staging_dir:
|
||||
pass
|
||||
|
||||
elif "{root" in staging_dir:
|
||||
repre_data["stagingDir"] = staging_dir.format(
|
||||
**{"root": anatomy.roots}
|
||||
)
|
||||
self.log.debug((
|
||||
"stagingDir was filled with root."
|
||||
" To: \"{}\" From: \"{}\""
|
||||
).format(repre_data["stagingDir"], staging_dir))
|
||||
|
||||
else:
|
||||
if staging_dir:
|
||||
remapped = anatomy.roots_obj.path_remapper(staging_dir)
|
||||
if remapped:
|
||||
repre_data["stagingDir"] = remapped
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue