Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle-Samuli Riihikoski <haikalle@gmail.com>2018-08-15 09:57:49 +0300
committerKalle-Samuli Riihikoski <haikalle@gmail.com>2018-08-15 09:57:49 +0300
commit7f1e29377ee94160a64b9e1a2e5fe067ef787f44 (patch)
treec0da1e6dfa3811b7c53f1f93c14b564485ba8ae4 /io_coat3D/tex.py
parente8279e84a2e03dbf38d1b3fde9e244e1d6134c6c (diff)
delete oldes file if exchange forlder becomes too large
Diffstat (limited to 'io_coat3D/tex.py')
-rw-r--r--io_coat3D/tex.py3
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_')