mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
'create' returns output from creator
This commit is contained in:
parent
0a900f8ae1
commit
8678f4e2fa
1 changed files with 3 additions and 1 deletions
|
|
@ -1429,6 +1429,7 @@ class CreateContext:
|
||||||
failed = False
|
failed = False
|
||||||
add_traceback = False
|
add_traceback = False
|
||||||
exc_info = None
|
exc_info = None
|
||||||
|
result = None
|
||||||
try:
|
try:
|
||||||
# Fake CreatorError (Could be maybe specific exception?)
|
# Fake CreatorError (Could be maybe specific exception?)
|
||||||
if creator is None:
|
if creator is None:
|
||||||
|
|
@ -1436,7 +1437,7 @@ class CreateContext:
|
||||||
"Creator {} was not found".format(identifier)
|
"Creator {} was not found".format(identifier)
|
||||||
)
|
)
|
||||||
|
|
||||||
creator.create(*args, **kwargs)
|
result = creator.create(*args, **kwargs)
|
||||||
|
|
||||||
except CreatorError:
|
except CreatorError:
|
||||||
failed = True
|
failed = True
|
||||||
|
|
@ -1458,6 +1459,7 @@ class CreateContext:
|
||||||
identifier, label, exc_info, add_traceback
|
identifier, label, exc_info, add_traceback
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
|
return result
|
||||||
|
|
||||||
def creator_removed_instance(self, instance):
|
def creator_removed_instance(self, instance):
|
||||||
"""When creator removes instance context should be acknowledged.
|
"""When creator removes instance context should be acknowledged.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue