remove shape key textures on clean

This commit is contained in:
QuantumCoderQC 2021-11-02 15:56:46 +01:00
parent a1951bb66e
commit 03090cafa2

View file

@ -901,6 +901,10 @@ def clean():
if os.path.exists('Sources') and os.listdir('Sources') == []:
shutil.rmtree('Sources/', onerror=remove_readonly)
# Remove Shape key Textures
if os.path.exists('MorphTargets/'):
shutil.rmtree('MorphTargets/', onerror=remove_readonly)
# To recache signatures for batched materials
for mat in bpy.data.materials:
mat.signature = ''