From 36ce025ec317bbe57719f94886d5d31932754d40 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 7 May 2014 00:17:26 +0300 Subject: [PATCH] Minor tweaks to the Blender exporter --- blender/io_mspgl/__init__.py | 2 +- blender/io_mspgl/export_object.py | 2 +- blender/io_mspgl/outfile.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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) -- 2.45.2