From dc548101b4f1f7a77ba99fd73644ebdb9cf7f9a4 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Tue, 16 Jul 2024 12:39:31 +0200 Subject: [PATCH] Remove unused context manager --- client/ayon_maya/api/lib.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/client/ayon_maya/api/lib.py b/client/ayon_maya/api/lib.py index aaee4ff6..6df01f49 100644 --- a/client/ayon_maya/api/lib.py +++ b/client/ayon_maya/api/lib.py @@ -143,20 +143,6 @@ def maintained_selection(): cmds.select(clear=True) -@contextlib.contextmanager -def maintained_transformation(transform): - """Maintain object transform during context - - Args: - transform (OpenMaya.MFnTransform): object transfrom - """ - original_transform = transform.transformation() - try: - yield - finally: - transform.setTransformation(original_transform) - - def reload_all_udim_tile_previews(): """Regenerate all UDIM tile preview in texture file""" for texture_file in cmds.ls(type="file"):