pop the value of reloadTextures before capture

This commit is contained in:
Kayla Man 2023-11-27 18:09:06 +08:00
parent 950581fcd8
commit 39faa7001e
2 changed files with 2 additions and 2 deletions

View file

@ -48,6 +48,8 @@ class ExtractPlayblast(publish.Extractor):
and preset["viewport_options"].get("textures")
):
lib.reload_textures()
preset.pop("reloadTextures") # not supported by `capture`
path = capture.capture(log=self.log, **preset)
self.log.debug("playblast path {}".format(path))

View file

@ -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
# one. This way we can also report the failing key values explicitly.
for key, value in options.items():
if key == "reloadTextures":
continue
try:
cmds.modelEditor(panel, edit=True, **{key: value})
except TypeError: