-> Fix for FLT export

Silly mistake on FLT export meant that when copying textures no check was done
to see if the file being copied existed or not. Fixed
This commit is contained in:
Geoffrey Bantle 2007-11-28 19:06:00 +00:00
parent ce52384e9f
commit 2d38926f13

@ -1352,7 +1352,8 @@ def dbexport():
#Get original Blender file name
origpath = Blender.sys.expandpath(Blender.Image.Get(imgname).getFilename())
#copy original to new
shutil.copyfile(origpath,tex_files[imgname])
if os.path.exists(origpath):
shutil.copyfile(origpath,tex_files[imgname])
#optional: Write attribute files
if options.write_attrib_files: