[Bf-extensions-cvs] [48d37ac] master: Bugfix Collect
Eugenio Pignataro
noreply at git.blender.org
Mon Apr 3 16:40:41 CEST 2017
Commit: 48d37aced7e51fb720f2329207bfdd4cac1cc25e
Author: Eugenio Pignataro
Date: Mon Apr 3 11:40:17 2017 -0300
Branches: master
https://developer.blender.org/rBA48d37aced7e51fb720f2329207bfdd4cac1cc25e
Bugfix Collect
===================================================================
M oscurart_tools/oscurart_files.py
===================================================================
diff --git a/oscurart_tools/oscurart_files.py b/oscurart_tools/oscurart_files.py
index f22c833..355a5e3 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'}
More information about the Bf-extensions-cvs
mailing list