diff options
author | Eugenio Pignataro <info@oscurart.com.ar> | 2017-04-03 17:40:17 +0300 |
---|---|---|
committer | Eugenio Pignataro <info@oscurart.com.ar> | 2017-04-03 17:40:17 +0300 |
commit | 48d37aced7e51fb720f2329207bfdd4cac1cc25e (patch) | |
tree | c6008f0ce6e616e0e4bc1c53e7675f1792d74f19 /oscurart_tools | |
parent | 7aef9abb9dd1b1939f8256151ad77d34a3554bc0 (diff) |
Bugfix Collect
Diffstat (limited to 'oscurart_tools')
-rw-r--r-- | oscurart_tools/oscurart_files.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/oscurart_tools/oscurart_files.py b/oscurart_tools/oscurart_files.py index f22c833f..355a5e3d 100644 --- a/oscurart_tools/oscurart_files.py +++ b/oscurart_tools/oscurart_files.py @@ -127,10 +127,8 @@ class collectImagesOsc(Operator): shutil.copy(image.filepath, os.path.join(imagespath,os.path.basename(image.filepath))) image.filepath = os.path.join(imagespath,os.path.basename(image.filepath)) else: - os.remove(os.path.join(imagespath,os.path.basename(image.filepath))) - shutil.copy(image.filepath, os.path.join(imagespath,os.path.basename(image.filepath))) - image.filepath = os.path.join(imagespath,os.path.basename(image.filepath)) + print("%s exists." % (image)) bpy.ops.file.make_paths_relative() - return {'FINISHED'}
\ No newline at end of file + return {'FINISHED'} |