mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge branch 'hotfix/skip_integration_if_delete_in_tags'
This commit is contained in:
commit
c52cdd5912
2 changed files with 15 additions and 1 deletions
|
|
@ -276,6 +276,9 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
|
||||
published_representations = {}
|
||||
for idx, repre in enumerate(instance.data["representations"]):
|
||||
if "delete" in repre.get("tags", []):
|
||||
continue
|
||||
|
||||
published_files = []
|
||||
|
||||
# create template data for Anatomy
|
||||
|
|
|
|||
|
|
@ -203,6 +203,9 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
|
|||
# script path for publish_filesequence.py
|
||||
publishing_script = None
|
||||
|
||||
# poor man exclusion
|
||||
skip_integration_repre_list = []
|
||||
|
||||
def _create_metadata_path(self, instance):
|
||||
ins_data = instance.data
|
||||
# Ensure output dir exists
|
||||
|
|
@ -466,6 +469,10 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
|
|||
"tags": ["review"] if preview else []
|
||||
}
|
||||
|
||||
# poor man exclusion
|
||||
if ext in self.skip_integration_repre_list:
|
||||
rep["tags"].append("delete")
|
||||
|
||||
self._solve_families(new_instance, preview)
|
||||
|
||||
new_instance["representations"] = [rep]
|
||||
|
|
@ -545,8 +552,12 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
|
|||
"tags": ["review", "preview"] if preview else [],
|
||||
}
|
||||
|
||||
# poor man exclusion
|
||||
if ext in self.skip_integration_repre_list:
|
||||
rep["tags"].append("delete")
|
||||
|
||||
if instance.get("multipartExr", False):
|
||||
rep["tags"].append["multipartExr"]
|
||||
rep["tags"].append("multipartExr")
|
||||
|
||||
representations.append(rep)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue