remove shape key textures on clean
This commit is contained in:
parent
a1951bb66e
commit
03090cafa2
|
@ -901,6 +901,10 @@ def clean():
|
||||||
if os.path.exists('Sources') and os.listdir('Sources') == []:
|
if os.path.exists('Sources') and os.listdir('Sources') == []:
|
||||||
shutil.rmtree('Sources/', onerror=remove_readonly)
|
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
|
# To recache signatures for batched materials
|
||||||
for mat in bpy.data.materials:
|
for mat in bpy.data.materials:
|
||||||
mat.signature = ''
|
mat.signature = ''
|
||||||
|
|
Loading…
Reference in a new issue