Revision: 15995
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15995
Author:   briggs
Date:     2008-08-07 06:38:35 +0200 (Thu, 07 Aug 2008)

Log Message:
-----------
-> Slight tweak to FLT exporter

FLT files written by the FLT exporter would
reference external files (other FLT files,
texture maps, ect) with standard backslash
seperators on win32. However, many tools
that deal with FLT files expect directory
seperators to always be forward slashes
regardless of platform.

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

Modified: trunk/blender/release/scripts/flt_export.py
===================================================================
--- trunk/blender/release/scripts/flt_export.py 2008-08-07 01:02:06 UTC (rev 
15994)
+++ trunk/blender/release/scripts/flt_export.py 2008-08-07 04:38:35 UTC (rev 
15995)
@@ -1070,7 +1070,7 @@
 
                 if self.opcode == 63 and options.state['externalspath']:
                                try:
-                                       exportdict['3t200!filename'] = 
os.path.join(options.state['externalspath'],self.object.DupGroup.name+'.flt')
+                                       exportdict['3t200!filename'] = 
os.path.join(options.state['externalspath'],self.object.DupGroup.name+'.flt').replace("\\",
 "/")
                                        
self.header.xrefnames.append(self.object.DupGroup.name)
                                except:
                                        pass
@@ -1199,7 +1199,7 @@
                        print 'Writing texture palette.'
                # Write record for texture palette
                for i, img in enumerate(self.GRR.texture_lst):
-                       filename = tex_files[img.name]
+                       filename = tex_files[img.name].replace("\\", "/")
                        self.fw.write_short(64)                                 
        # Texture palette opcode.
                        self.fw.write_short(216)                                
        # Length of record
                        self.fw.write_string(filename, 200) # Filename


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to