mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
OP-4504 - use always stagingDir from instance instead of repre
Representation stagingDir might be in temporary folders (for thumbnails etc.), use value from instance as a backup instead.
This commit is contained in:
parent
726c8f2cc1
commit
a1f85d3978
1 changed files with 2 additions and 2 deletions
|
|
@ -581,7 +581,8 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
|
|||
# store as originalDirname only original value without project root
|
||||
# if instance collected originalDirname it should be used for all repre
|
||||
# useful to storing transient items, eg. thumbnails, from temp to final
|
||||
original_directory = instance.data.get("originalDirname") or stagingdir
|
||||
original_directory = (
|
||||
instance.data.get("originalDirname") or instance_stagingdir)
|
||||
_rootless = self.get_rootless_path(anatomy, original_directory)
|
||||
without_root = _rootless[_rootless.rfind('}')+2:]
|
||||
template_data["originalDirname"] = without_root
|
||||
|
|
@ -694,7 +695,6 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
|
|||
template_data.pop("frame", None)
|
||||
if is_udim:
|
||||
template_data["udim"] = repre["udim"][0]
|
||||
|
||||
# Construct destination filepath from template
|
||||
anatomy_filled = anatomy.format(template_data)
|
||||
template_filled = anatomy_filled[template_name]["path"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue