make sure the contextlib.nested used before material loading while it is compatible for both python2 and 3

This commit is contained in:
Kayla Man 2023-12-15 23:09:11 +08:00
parent 28a62bff59
commit 4648895291
3 changed files with 39 additions and 29 deletions

View file

@ -172,8 +172,9 @@ def maintained_selection():
cmds.select(clear=True)
def reload_textures():
"""Reload textures during playblast
def reload_all_udim_tile_previews():
"""Regenerate all UDIM tile preview in texture file
nodes during context
"""
texture_files = cmds.ls(type="file")
if texture_files: