diff options
author | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2018-08-15 09:57:49 +0300 |
---|---|---|
committer | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2018-08-15 09:57:49 +0300 |
commit | 7f1e29377ee94160a64b9e1a2e5fe067ef787f44 (patch) | |
tree | c0da1e6dfa3811b7c53f1f93c14b564485ba8ae4 /io_coat3D/tex.py | |
parent | e8279e84a2e03dbf38d1b3fde9e244e1d6134c6c (diff) |
delete oldes file if exchange forlder becomes too large
Diffstat (limited to 'io_coat3D/tex.py')
-rw-r--r-- | io_coat3D/tex.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/io_coat3D/tex.py b/io_coat3D/tex.py index 5df312ea..1c8c7db1 100644 --- a/io_coat3D/tex.py +++ b/io_coat3D/tex.py @@ -46,9 +46,8 @@ def readtexturefolder(objekti,is_new): #read textures from texture file else: if(bpy.data.filepath == ''): files_dir = os.path.dirname(os.path.abspath(objekti.coat3D.applink_address)) - files_dir = files_dir.replace('3DC2Blender' + os.sep + 'Objects','3DC2Blender' + os.sep + 'Textures') else: - files_dir = os.path.dirname(bpy.data.filepath) + os.sep + '3DCApplink' + os.sep + 'Textures' + files_dir = os.path.dirname(bpy.data.filepath) + os.sep + '3DCApplink' files = os.listdir(files_dir) materiaali_muutos = objekti.active_material.name uusin_mat = materiaali_muutos.replace('Material.','Material_') |