From: Mikko Rasa Date: Tue, 6 May 2014 21:17:26 +0000 (+0300) Subject: Minor tweaks to the Blender exporter X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=36ce025ec317bbe57719f94886d5d31932754d40;p=libs%2Fgl.git Minor tweaks to the Blender exporter --- diff --git a/blender/io_mspgl/__init__.py b/blender/io_mspgl/__init__.py index a8cdb4c1..1e085baf 100644 --- a/blender/io_mspgl/__init__.py +++ b/blender/io_mspgl/__init__.py @@ -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 diff --git a/blender/io_mspgl/export_object.py b/blender/io_mspgl/export_object.py index 7b9ee6a4..aad1c087 100644 --- a/blender/io_mspgl/export_object.py +++ b/blender/io_mspgl/export_object.py @@ -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) diff --git a/blender/io_mspgl/outfile.py b/blender/io_mspgl/outfile.py index 2ccaa1b0..2c747a87 100644 --- a/blender/io_mspgl/outfile.py +++ b/blender/io_mspgl/outfile.py @@ -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)