Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Bantle <hairbat@yahoo.com>2007-11-28 22:06:00 +0300
committerGeoffrey Bantle <hairbat@yahoo.com>2007-11-28 22:06:00 +0300
commit2d38926f134f932698c36db2cdb59bb050ca9e3b (patch)
treec9547fe157cab3a78f826f55080df75e87c0d89c /release
parentce52384e9f7d5dee531edf50b76a9edbe982863b (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
Diffstat (limited to 'release')
-rw-r--r--release/scripts/flt_export.py3
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: