mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
attr plugins are not passed as argument on instance creation
This commit is contained in:
parent
ed61da911b
commit
4ead375a6f
4 changed files with 14 additions and 19 deletions
|
|
@ -17,7 +17,7 @@ class MyAutoCreator(AutoCreator):
|
|||
]
|
||||
return output
|
||||
|
||||
def collect_instances(self, attr_plugins=None):
|
||||
def collect_instances(self):
|
||||
for instance_data in pipeline.list_instances():
|
||||
creator_id = instance_data.get("creator_identifier")
|
||||
if creator_id is not None:
|
||||
|
|
@ -31,7 +31,7 @@ class MyAutoCreator(AutoCreator):
|
|||
elif instance_data["family"] == self.identifier:
|
||||
instance_data["creator_identifier"] = self.identifier
|
||||
instance = CreatedInstance.from_existing(
|
||||
instance_data, self, attr_plugins
|
||||
instance_data, self
|
||||
)
|
||||
self._add_instance_to_context(instance)
|
||||
|
||||
|
|
|
|||
|
|
@ -15,20 +15,20 @@ class TestCreatorOne(Creator):
|
|||
def get_icon(self):
|
||||
return resources.get_openpype_splash_filepath()
|
||||
|
||||
def collect_instances(self, attr_plugins):
|
||||
def collect_instances(self):
|
||||
for instance_data in pipeline.list_instances():
|
||||
instance = None
|
||||
creator_id = instance_data.get("creator_identifier")
|
||||
if creator_id is not None:
|
||||
if creator_id == self.identifier:
|
||||
instance = CreatedInstance.from_existing(
|
||||
instance_data, self, attr_plugins
|
||||
instance_data, self
|
||||
)
|
||||
|
||||
elif instance_data["family"] == self.identifier:
|
||||
instance_data["creator_identifier"] = self.identifier
|
||||
instance = CreatedInstance.from_existing(
|
||||
instance_data, self, attr_plugins
|
||||
instance_data, self
|
||||
)
|
||||
|
||||
if instance is not None:
|
||||
|
|
|
|||
|
|
@ -20,20 +20,20 @@ class TestCreatorTwo(Creator):
|
|||
self.log.info(new_instance.data)
|
||||
self._add_instance_to_context(new_instance)
|
||||
|
||||
def collect_instances(self, attr_plugins):
|
||||
def collect_instances(self):
|
||||
for instance_data in pipeline.list_instances():
|
||||
instance = None
|
||||
creator_id = instance_data.get("creator_identifier")
|
||||
if creator_id is not None:
|
||||
if creator_id == self.identifier:
|
||||
instance = CreatedInstance.from_existing(
|
||||
instance_data, self, attr_plugins
|
||||
instance_data, self
|
||||
)
|
||||
|
||||
elif instance_data["family"] == self.identifier:
|
||||
instance_data["creator_identifier"] = self.identifier
|
||||
instance = CreatedInstance.from_existing(
|
||||
instance_data, self, attr_plugins
|
||||
instance_data, self
|
||||
)
|
||||
|
||||
if instance is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue