Fix playblasting in Maya 2020 with override viewport options #4730

This commit is contained in:
Roy Nieterau 2023-03-29 23:06:21 +02:00
parent 2b540f1b2e
commit 32a30127a3

View file

@ -733,6 +733,14 @@ def _applied_viewport_options(options, panel):
options = dict(ViewportOptions, **(options or {}))
# BUGFIX Maya 2020 some keys in viewport options dict may not be unicode
# This is a local OpenPype edit to capture.py for issue #4730
# TODO: Remove when dropping Maya 2020 compatibility
if int(cmds.about(version=True)) <= 2020:
options = {
str(key): value for key, value in options.items()
}
# separate the plugin display filter options since they need to
# be set differently (see #55)
plugins = cmds.pluginDisplayFilter(query=True, listFilters=True)