mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Added loaded container to Post process arguments
This commit is contained in:
parent
44fc6f75ab
commit
2fe9381471
2 changed files with 9 additions and 1 deletions
|
|
@ -292,7 +292,14 @@ class PostLoadHookPlugin:
|
|||
they are loaded without need to override existing core plugins.
|
||||
loaders: ClassVar[set[str]]
|
||||
"""
|
||||
def process(self, context, name=None, namespace=None, options=None):
|
||||
def process(
|
||||
self,
|
||||
container,
|
||||
context,
|
||||
name=None,
|
||||
namespace=None,
|
||||
options=None
|
||||
):
|
||||
pass
|
||||
|
||||
def update(self, container, context):
|
||||
|
|
|
|||
|
|
@ -427,6 +427,7 @@ def _load_context(Loader, contexts, name, namespace, options, hooks):
|
|||
load_return = Loader().load(contexts, name, namespace, options)
|
||||
for hook_plugin_cls in hooks.get("post", []):
|
||||
hook_plugin_cls().process(
|
||||
load_return,
|
||||
contexts,
|
||||
name,
|
||||
namespace,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue