diff options
author | Geoffrey Bantle <hairbat@yahoo.com> | 2007-11-28 22:06:00 +0300 |
---|---|---|
committer | Geoffrey Bantle <hairbat@yahoo.com> | 2007-11-28 22:06:00 +0300 |
commit | 2d38926f134f932698c36db2cdb59bb050ca9e3b (patch) | |
tree | c9547fe157cab3a78f826f55080df75e87c0d89c | |
parent | ce52384e9f7d5dee531edf50b76a9edbe982863b (diff) |
-> 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
-rw-r--r-- | release/scripts/flt_export.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/flt_export.py b/release/scripts/flt_export.py index d2e90bc27b8..033a03f1163 100644 --- a/release/scripts/flt_export.py +++ b/release/scripts/flt_export.py @@ -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: |