mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
return original plugins if registered host is not set
This commit is contained in:
parent
61152744d1
commit
581ba78aff
1 changed files with 2 additions and 0 deletions
|
|
@ -35,6 +35,8 @@ def patched_discover(superclass):
|
|||
plugins = _original_discover(superclass)
|
||||
|
||||
# determine host application to use for finding presets
|
||||
if avalon.registered_host() is None:
|
||||
return plugins
|
||||
host = avalon.registered_host().__name__.split(".")[-1]
|
||||
|
||||
# map plugin superclass to preset json. Currenly suppoted is load and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue