Skip to content

Commit

Permalink
Remove unused context manager
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Jul 16, 2024
1 parent 1b09793 commit dc54810
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions client/ayon_maya/api/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit dc54810

Please sign in to comment.