]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/outfile.py
Combine shared_mesh and shared_tech into a single option
[libs/gl.git] / blender / io_mspgl / outfile.py
index 5d5cb8ea798c80b5b352d82883fd39a4e3131d01..2c747a8713dbbb697007bc15f5fe671d0cfc986b 100644 (file)
@@ -2,6 +2,7 @@ import sys
 
 class OutFile:
        def __init__(self, fn):
+               self.filename = fn
                if fn==None:
                        self.file = sys.stdout
                else:
@@ -12,7 +13,7 @@ class OutFile:
                pstr = ""
                for p in params:
                        if type(p)==float:
-                               pstr += " %.6g"%p
+                               pstr += " %#.6g"%p
                        else:
                                pstr += " %s"%p
                return "%s%s"%(kwd, pstr)