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:
authorEugenio Pignataro <info@oscurart.com.ar>2017-04-03 17:40:17 +0300
committerEugenio Pignataro <info@oscurart.com.ar>2017-04-03 17:40:17 +0300
commit48d37aced7e51fb720f2329207bfdd4cac1cc25e (patch)
treec6008f0ce6e616e0e4bc1c53e7675f1792d74f19
parent7aef9abb9dd1b1939f8256151ad77d34a3554bc0 (diff)
Bugfix Collect
-rw-r--r--oscurart_tools/oscurart_files.py6
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'}