mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
renamed AvalonInstance to CreatedInstance
This commit is contained in:
parent
3fd37de800
commit
dee5b66292
3 changed files with 7 additions and 7 deletions
|
|
@ -4,7 +4,7 @@ from .creator_plugins import (
|
|||
BaseCreator,
|
||||
Creator,
|
||||
AutoCreator,
|
||||
AvalonInstance
|
||||
CreatedInstance
|
||||
)
|
||||
|
||||
from .publish_plugins import OpenPypePyblishPluginMixin
|
||||
|
|
@ -16,7 +16,7 @@ __all__ = (
|
|||
"BaseCreator",
|
||||
"Creator",
|
||||
"AutoCreator",
|
||||
"AvalonInstance",
|
||||
"CreatedInstance",
|
||||
|
||||
"OpenPypePyblishPluginMixin"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ class PublishAttributes:
|
|||
continue
|
||||
|
||||
|
||||
class AvalonInstance:
|
||||
class CreatedInstance:
|
||||
"""Instance entity with data that will be stored to workfile.
|
||||
|
||||
I think `data` must be required argument containing all minimum information
|
||||
|
|
@ -307,7 +307,7 @@ class AvalonInstance:
|
|||
|
||||
@classmethod
|
||||
def from_existing(cls, host, creator, instance_data, attr_plugins=None):
|
||||
"""Convert instance data from workfile to AvalonInstance."""
|
||||
"""Convert instance data from workfile to CreatedInstance."""
|
||||
instance_data = copy.deepcopy(instance_data)
|
||||
|
||||
family = instance_data.get("family", None)
|
||||
|
|
@ -496,7 +496,7 @@ class Creator(BaseCreator):
|
|||
instance_data(dict):
|
||||
"""
|
||||
|
||||
# instance = AvalonInstance(
|
||||
# instance = CreatedInstance(
|
||||
# self.family, subset_name, instance_data
|
||||
# )
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ from openpype.api import (
|
|||
from openpype.pipeline import (
|
||||
OpenPypePyblishPluginMixin,
|
||||
BaseCreator,
|
||||
AvalonInstance
|
||||
CreatedInstance
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -128,7 +128,7 @@ class PublisherController:
|
|||
attr_plugins = self._get_publish_plugins_with_attr_for_family(
|
||||
family
|
||||
)
|
||||
instance = AvalonInstance.from_existing(
|
||||
instance = CreatedInstance.from_existing(
|
||||
self.host, creator, instance_data, attr_plugins
|
||||
)
|
||||
instances.append(instance)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue