X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=blender%2Fio_mspgl%2Foutfile.py;h=5d5cb8ea798c80b5b352d82883fd39a4e3131d01;hp=ca7abcf9de4855dcd3ac3fa8029b7d7c48a809aa;hb=912ae952489699769be43f90d4478263461964a4;hpb=e37851b98dde5082ee92570354746f2f92e21940 diff --git a/blender/io_mspgl/outfile.py b/blender/io_mspgl/outfile.py index ca7abcf9..5d5cb8ea 100644 --- a/blender/io_mspgl/outfile.py +++ b/blender/io_mspgl/outfile.py @@ -28,3 +28,9 @@ class OutFile: def end(self): self.indent -= 1 self.file.write("%s};\n"%('\t'*self.indent)) + + +def open_output(f): + if isinstance(f, OutFile): + return f + return OutFile(f)