mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-04 01:45:11 +01:00
publish plugins can be passed to avaloninstance
This commit is contained in:
parent
d20b42797e
commit
7afca818a6
1 changed files with 5 additions and 3 deletions
|
|
@ -127,7 +127,8 @@ class AvalonInstance:
|
|||
already existing instance.
|
||||
"""
|
||||
def __init__(
|
||||
self, host, creator, family, subset_name, data=None, new=True
|
||||
self, host, creator, family, subset_name, data=None,
|
||||
attr_plugins=None, new=True
|
||||
):
|
||||
self.host = host
|
||||
self.creator = creator
|
||||
|
|
@ -241,7 +242,7 @@ class AvalonInstance:
|
|||
self.data = data
|
||||
|
||||
@classmethod
|
||||
def from_existing(cls, host, creator, instance_data):
|
||||
def from_existing(cls, host, creator, instance_data, attr_plugins=None):
|
||||
"""Convert instance data from workfile to AvalonInstance."""
|
||||
instance_data = copy.deepcopy(instance_data)
|
||||
|
||||
|
|
@ -249,7 +250,8 @@ class AvalonInstance:
|
|||
subset_name = instance_data.get("subset", None)
|
||||
|
||||
return cls(
|
||||
host, creator, family, subset_name, instance_data, new=False
|
||||
host, creator, family, subset_name, instance_data,
|
||||
attr_plugins, new=False
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue