preset pop value should be correct

This commit is contained in:
Kayla Man 2023-12-11 23:47:10 +08:00
parent cec780afc8
commit b73146a538
2 changed files with 4 additions and 2 deletions

View file

@ -49,7 +49,8 @@ class ExtractPlayblast(publish.Extractor):
else:
self.log.debug(
"Reload Textures during playblasting is disabled.")
preset.pop("reloadTextures", None) # not supported by `capture`
# not supported by `capture`
preset["viewport_options"].pop("reloadTextures", None)
path = capture.capture(log=self.log, **preset)
self.log.debug("playblast path {}".format(path))

View file

@ -158,7 +158,8 @@ class ExtractThumbnail(publish.Extractor):
else:
self.log.debug(
"Reload Textures during playblasting is disabled.")
preset.pop("reloadTextures", None)
# not supported by `capture`
preset["viewport_options"].pop("reloadTextures", None)
path = capture.capture(**preset)
playblast = self._fix_playblast_output_path(path)