[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12709] trunk/blender/release/scripts/ flt_export.py: -> Fix for FLT export

Geoffrey Bantle hairbat at yahoo.com
Wed Nov 28 20:06:00 CET 2007


Revision: 12709
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12709
Author:   briggs
Date:     2007-11-28 20:06:00 +0100 (Wed, 28 Nov 2007)

Log Message:
-----------
-> 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

Modified Paths:
--------------
    trunk/blender/release/scripts/flt_export.py

Modified: trunk/blender/release/scripts/flt_export.py
===================================================================
--- trunk/blender/release/scripts/flt_export.py	2007-11-28 18:43:09 UTC (rev 12708)
+++ trunk/blender/release/scripts/flt_export.py	2007-11-28 19:06:00 UTC (rev 12709)
@@ -1352,7 +1352,8 @@
 				#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:





More information about the Bf-blender-cvs mailing list