removed Appliction initialization which does nothing special in pype

This commit is contained in:
iLLiCiTiT 2021-01-06 14:24:55 +01:00
parent 7510261ce8
commit 592697fbde

View file

@ -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():