mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
pop the value of reloadTextures before capture
This commit is contained in:
parent
950581fcd8
commit
39faa7001e
2 changed files with 2 additions and 2 deletions
|
|
@ -48,6 +48,8 @@ class ExtractPlayblast(publish.Extractor):
|
||||||
and preset["viewport_options"].get("textures")
|
and preset["viewport_options"].get("textures")
|
||||||
):
|
):
|
||||||
lib.reload_textures()
|
lib.reload_textures()
|
||||||
|
|
||||||
|
preset.pop("reloadTextures") # not supported by `capture`
|
||||||
path = capture.capture(log=self.log, **preset)
|
path = capture.capture(log=self.log, **preset)
|
||||||
self.log.debug("playblast path {}".format(path))
|
self.log.debug("playblast path {}".format(path))
|
||||||
|
|
||||||
|
|
|
||||||
2
openpype/vendor/python/common/capture.py
vendored
2
openpype/vendor/python/common/capture.py
vendored
|
|
@ -760,8 +760,6 @@ def _applied_viewport_options(options, panel):
|
||||||
# Try to set as much as possible of the state by setting them one by
|
# Try to set as much as possible of the state by setting them one by
|
||||||
# one. This way we can also report the failing key values explicitly.
|
# one. This way we can also report the failing key values explicitly.
|
||||||
for key, value in options.items():
|
for key, value in options.items():
|
||||||
if key == "reloadTextures":
|
|
||||||
continue
|
|
||||||
try:
|
try:
|
||||||
cmds.modelEditor(panel, edit=True, **{key: value})
|
cmds.modelEditor(panel, edit=True, **{key: value})
|
||||||
except TypeError:
|
except TypeError:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue