mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
make hero integrator optional
This commit is contained in:
parent
092d6fcf46
commit
7682137190
1 changed files with 7 additions and 2 deletions
|
|
@ -13,7 +13,10 @@ from ayon_api.operations import (
|
|||
from ayon_api.utils import create_entity_id
|
||||
|
||||
from ayon_core.lib import create_hard_link, source_hash
|
||||
from ayon_core.pipeline.publish import get_publish_template_name
|
||||
from ayon_core.pipeline.publish import (
|
||||
get_publish_template_name,
|
||||
OptionalPyblishPluginMixin,
|
||||
)
|
||||
|
||||
|
||||
def prepare_changes(old_entity, new_entity):
|
||||
|
|
@ -46,7 +49,9 @@ def prepare_changes(old_entity, new_entity):
|
|||
return changes
|
||||
|
||||
|
||||
class IntegrateHeroVersion(pyblish.api.InstancePlugin):
|
||||
class IntegrateHeroVersion(
|
||||
OptionalPyblishPluginMixin, pyblish.api.InstancePlugin
|
||||
):
|
||||
label = "Integrate Hero Version"
|
||||
# Must happen after IntegrateNew
|
||||
order = pyblish.api.IntegratorOrder + 0.1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue