From d1db83b0c98b35e25e3d6c6e7b77512c3148a1c9 Mon Sep 17 00:00:00 2001 From: Braden Jennings Date: Fri, 9 Feb 2024 14:36:43 +1300 Subject: [PATCH] enhancement/OP-7955_Context_Validation_Repair_Action_enhancements --- openpype/hosts/maya/api/lib.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/openpype/hosts/maya/api/lib.py b/openpype/hosts/maya/api/lib.py index 86142b36a2a..ee4f75a2db2 100644 --- a/openpype/hosts/maya/api/lib.py +++ b/openpype/hosts/maya/api/lib.py @@ -2633,13 +2633,16 @@ def reset_scene_resolution(): # value is automatically returned instead width = task_entity["attrib"].get( width_key, - asset_data.get(width_key, project_data.get(width_key, 1920))) + asset_data.get( + width_key, project_data.get(width_key, 1920))) height = task_entity["attrib"].get( height_key, - asset_data.get(height_key, project_data.get(height_key, 1080))) + asset_data.get( + height_key, project_data.get(height_key, 1080))) pixelAspect = task_entity["attrib"].get( pixelAspect_key, - asset_data.get(pixelAspect_key, project_data.get(pixelAspect_key, 1080))) + asset_data.get( + pixelAspect_key, project_data.get(pixelAspect_key, 1080))) set_scene_resolution(width, height, pixelAspect)