]> git.tdb.fi Git - libs/gl.git/commitdiff
Minor tweaks to the Blender exporter
authorMikko Rasa <tdb@tdb.fi>
Tue, 6 May 2014 21:17:26 +0000 (00:17 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 6 May 2014 21:17:26 +0000 (00:17 +0300)
blender/io_mspgl/__init__.py
blender/io_mspgl/export_object.py
blender/io_mspgl/outfile.py

index a8cdb4c1d4f10cb3e80fbc9dddaaf4af204351d7..1e085baf9cf4559d9f85885c78174ef5310b2627 100644 (file)
@@ -137,7 +137,7 @@ class ExportMspGLArmature(bpy.types.Operator, ExportMspGLBase):
        bl_idname = "export.mspgl_armature"
        bl_label = "Export Msp GL armature"
 
-       filename_ext = ".armature"
+       filename_ext = ".arma"
 
        def create_exporter(self):
                from .export_armature import ArmatureExporter
index 7b9ee6a44cfb2c8eb888c237b7e1579e358c1fff..aad1c0876a40823bca2f1d4bc3ce5b7fe125ba41 100644 (file)
@@ -33,7 +33,7 @@ class ObjectExporter:
                        base, ext = os.path.splitext(base)
                        mesh_out = open_output(os.path.join(path, base+".mesh"))
                        mesh = mesh_export.export(context, mesh_out)
-                       out_file.write("mesh", "\""+base+".mesh\"")
+                       out_file.write("mesh", '"{}.mesh"'.format(base))
                else:
                        out_file.begin("mesh")
                        mesh = mesh_export.export(context, out_file)
index 2ccaa1b0008ede74db44fc2c8135a80978b1a1c5..2c747a8713dbbb697007bc15f5fe671d0cfc986b 100644 (file)
@@ -13,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)