mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
new integrator can tell legacy one that should not process the instance
This commit is contained in:
parent
84781c12e5
commit
842cf06bf9
2 changed files with 5 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
|
|||
template_name_profiles = None
|
||||
|
||||
def process(self, instance):
|
||||
|
||||
instance.data["processedWithNewIntegrator"] = True
|
||||
# Exclude instances that also contain families from exclude families
|
||||
families = set(get_instance_families(instance))
|
||||
exclude = families & set(self.exclude_families)
|
||||
|
|
|
|||
|
|
@ -145,6 +145,10 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
subset_grouping_profiles = None
|
||||
|
||||
def process(self, instance):
|
||||
if instance.data.get("processedWithNewIntegrator"):
|
||||
self.log.info("Instance was already processed with new integrator")
|
||||
return
|
||||
|
||||
for ef in self.exclude_families:
|
||||
if (
|
||||
instance.data["family"] == ef or
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue