From 592697fbde56df9c508045b2997fb86e8eb8650d Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Wed, 6 Jan 2021 14:24:55 +0100 Subject: [PATCH] removed Appliction initialization which does nothing special in pype --- pype/hosts/maya/__init__.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/pype/hosts/maya/__init__.py b/pype/hosts/maya/__init__.py index afd2e399eb..06b3e2c63c 100644 --- a/pype/hosts/maya/__init__.py +++ b/pype/hosts/maya/__init__.py @@ -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():