mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
store creators by family
This commit is contained in:
parent
b65fc7f76e
commit
4dfc0b7fa7
1 changed files with 3 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ class PublisherController:
|
|||
self.log = logging.getLogger("PublisherController")
|
||||
self.host = avalon.api.registered_host()
|
||||
|
||||
self.creators = []
|
||||
self.creators = {}
|
||||
self.publish_plugins = []
|
||||
self.instances = []
|
||||
|
||||
|
|
@ -26,17 +26,17 @@ class PublisherController:
|
|||
|
||||
def _reset(self):
|
||||
"""Reset to initial state."""
|
||||
creators = []
|
||||
publish_plugins = pyblish.api.discover()
|
||||
self.publish_plugins = publish_plugins
|
||||
|
||||
creators = {}
|
||||
for creator in avalon.api.discover(BaseCreator):
|
||||
if inspect.isabstract(creator):
|
||||
self.log.info(
|
||||
"Skipping abstract Creator {}".format(str(creator))
|
||||
)
|
||||
continue
|
||||
creators.append(creator)
|
||||
creators[creator.family] = creator
|
||||
|
||||
self.creators = creators
|
||||
self.publish_plugins = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue