mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Fix playblasting in Maya 2020 with override viewport options #4730
This commit is contained in:
parent
2b540f1b2e
commit
32a30127a3
1 changed files with 8 additions and 0 deletions
8
openpype/vendor/python/common/capture.py
vendored
8
openpype/vendor/python/common/capture.py
vendored
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue