remove shape key textures on clean

This commit is contained in:
QuantumCoderQC 2021-11-02 15:56:46 +01:00
parent a1951bb66e
commit 03090cafa2
1 changed files with 4 additions and 0 deletions

View File

@ -900,6 +900,10 @@ def clean():
shutil.rmtree('Sources/' + pkg_dir, onerror=remove_readonly)
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: