mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Lazy initialization of get_hook_loaders_by_identifier
This commit is contained in:
parent
a5c10767fd
commit
82ae29dc12
1 changed files with 3 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ class SceneInventoryController:
|
|||
self._projects_model = ProjectsModel(self)
|
||||
self._event_system = self._create_event_system()
|
||||
|
||||
self._hooks_by_identifier = get_hook_loaders_by_identifier()
|
||||
self._hooks_by_identifier = None
|
||||
|
||||
def get_host(self) -> HostBase:
|
||||
return self._host
|
||||
|
|
@ -120,6 +120,8 @@ class SceneInventoryController:
|
|||
|
||||
def get_hook_loaders_by_identifier(self):
|
||||
"""Returns lists of pre|post hooks per Loader identifier."""
|
||||
if self._hooks_by_identifier is None:
|
||||
self._hooks_by_identifier = get_hook_loaders_by_identifier()
|
||||
return self._hooks_by_identifier
|
||||
|
||||
# Site Sync methods
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue