Skip to content
Snippets Groups Projects
Commit 48d37ace authored by Eugenio Pignataro's avatar Eugenio Pignataro
Browse files

Bugfix Collect

parent 7aef9abb
No related branches found
Tags
No related merge requests found
...@@ -127,10 +127,8 @@ class collectImagesOsc(Operator): ...@@ -127,10 +127,8 @@ class collectImagesOsc(Operator):
shutil.copy(image.filepath, 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)) image.filepath = os.path.join(imagespath,os.path.basename(image.filepath))
else: else:
os.remove(os.path.join(imagespath,os.path.basename(image.filepath))) print("%s exists." % (image))
shutil.copy(image.filepath, os.path.join(imagespath,os.path.basename(image.filepath)))
image.filepath = os.path.join(imagespath,os.path.basename(image.filepath))
bpy.ops.file.make_paths_relative() bpy.ops.file.make_paths_relative()
return {'FINISHED'} return {'FINISHED'}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment