make sure reloadtextures is popped when it exists in the preset dict

This commit is contained in:
Kayla Man 2023-11-27 23:32:47 +08:00
parent 84f58241a6
commit 69c45c517f
2 changed files with 2 additions and 3 deletions

View file

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

View file

@ -157,7 +157,7 @@ class ExtractThumbnail(publish.Extractor):
and preset["viewport_options"].get("textures")
):
lib.reload_textures()
preset.pop("reloadTextures") # not supported by `capture`
preset.pop("reloadTextures") # not supported by `capture`
path = capture.capture(**preset)
playblast = self._fix_playblast_output_path(path)