mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
removed Appliction initialization which does nothing special in pype
This commit is contained in:
parent
7510261ce8
commit
592697fbde
1 changed files with 0 additions and 17 deletions
|
|
@ -206,23 +206,6 @@ def on_new(_):
|
|||
|
||||
def on_task_changed(*args):
|
||||
"""Wrapped function of app initialize and maya's on task changed"""
|
||||
|
||||
# Inputs (from the switched session and running app)
|
||||
session = avalon.Session.copy()
|
||||
app_name = os.environ["AVALON_APP_NAME"]
|
||||
|
||||
# Find the application definition
|
||||
app_definition = pipeline.lib.get_application(app_name)
|
||||
|
||||
App = type("app_%s" % app_name,
|
||||
(avalon.Application,),
|
||||
{"config": app_definition.copy()})
|
||||
|
||||
# Initialize within the new session's environment
|
||||
app = App()
|
||||
env = app.environ(session)
|
||||
app.initialize(env)
|
||||
|
||||
# Run
|
||||
maya.pipeline._on_task_changed()
|
||||
with maya.suspended_refresh():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue