Update openpype/hosts/maya/api/lib.py

Co-authored-by: Kayla Man <64118225+moonyuet@users.noreply.github.com>
This commit is contained in:
Roy Nieterau 2023-12-21 07:41:39 +01:00 committed by GitHub
parent fa032d5f55
commit f922d3c8f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -335,7 +335,7 @@ def generate_capture_preset(instance, camera, path,
# Update preset with current panel setting
# if override_viewport_options is turned off
if not capture_preset["Viewport Options"]["override_viewport_options"]:
panel_preset = capture.parse_view(instance.data["panel"])
panel_preset = capture.parse_view(preset["panel"])
panel_preset.pop("camera")
preset.update(panel_preset)