X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspgl%2Foutfile.py;h=2c747a8713dbbb697007bc15f5fe671d0cfc986b;hb=04c89988c7eda12ea763a9283df0aeba177a11ad;hp=5d5cb8ea798c80b5b352d82883fd39a4e3131d01;hpb=912ae952489699769be43f90d4478263461964a4;p=libs%2Fgl.git diff --git a/blender/io_mspgl/outfile.py b/blender/io_mspgl/outfile.py index 5d5cb8ea..2c747a87 100644 --- a/blender/io_mspgl/outfile.py +++ b/blender/io_mspgl/outfile.py @@ -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)