mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
use 'LegacyCreator' instead of 'avalon.api.Creator'
This commit is contained in:
parent
3ce66cd098
commit
d4434fd1b7
1 changed files with 3 additions and 1 deletions
|
|
@ -1594,11 +1594,13 @@ def get_creator_by_name(creator_name, case_sensitive=False):
|
|||
Returns:
|
||||
Creator: Return first matching plugin or `None`.
|
||||
"""
|
||||
from openpype.pipeline import LegacyCreator
|
||||
|
||||
# Lower input creator name if is not case sensitive
|
||||
if not case_sensitive:
|
||||
creator_name = creator_name.lower()
|
||||
|
||||
for creator_plugin in avalon.api.discover(avalon.api.Creator):
|
||||
for creator_plugin in avalon.api.discover(LegacyCreator):
|
||||
_creator_name = creator_plugin.__name__
|
||||
|
||||
# Lower creator plugin name if is not case sensitive
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue