From: Mikko Rasa Date: Mon, 15 Sep 2014 10:35:11 +0000 (+0300) Subject: Minor adjustments X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=af4769679fc41cfd95bb12777423f7672ba5f661;p=libs%2Fgl.git Minor adjustments --- diff --git a/blender/io_mspgl/__init__.py b/blender/io_mspgl/__init__.py index 38e697b1..b1bb2f0d 100644 --- a/blender/io_mspgl/__init__.py +++ b/blender/io_mspgl/__init__.py @@ -146,7 +146,7 @@ class ExportMspGLArmature(bpy.types.Operator, ExportMspGLBase): return ArmatureExporter() class ExportMspGLScene(bpy.types.Operator, ExportMspGLBase): - bl_idname = "export.mspgl_scene" + bl_idname = "export_scene.mspgl_scene" bl_label = "Export Msp GL scene" filename_ext = ".scene" diff --git a/blender/io_mspgl/export_mesh.py b/blender/io_mspgl/export_mesh.py index 7f6674d3..cae0e589 100644 --- a/blender/io_mspgl/export_mesh.py +++ b/blender/io_mspgl/export_mesh.py @@ -50,7 +50,7 @@ class MeshExporter: self.export_groups = False self.max_groups = 2 - def stripify(self, mesh, progress = None): + def stripify(self, mesh, progress=None): for f in mesh.faces: f.flag = False diff --git a/blender/io_mspgl/export_scene.py b/blender/io_mspgl/export_scene.py index 03a02ed4..a76b635a 100644 --- a/blender/io_mspgl/export_scene.py +++ b/blender/io_mspgl/export_scene.py @@ -1,7 +1,5 @@ import math import os -from .export_object import ObjectExporter -from .outfile import OutFile class SceneExporter: def __init__(self): @@ -18,6 +16,7 @@ class SceneExporter: path, base = os.path.split(out_file.filename) base, ext = os.path.splitext(base) + from .export_object import ObjectExporter object_export = ObjectExporter() object_export.compound = True object_export.external_tech = self.external_tech diff --git a/blender/io_mspgl/mesh.py b/blender/io_mspgl/mesh.py index 3a7400b7..3ad3cecc 100644 --- a/blender/io_mspgl/mesh.py +++ b/blender/io_mspgl/mesh.py @@ -292,10 +292,10 @@ class Mesh: if progress: progress.set_progress(0.5+i*0.5/len(self.vertices)) - def split_smooth(self, progress = None): + def split_smooth(self, progress=None): self.split_vertices(self.find_smooth_group, progress) - def split_uv(self, index, progress = None): + def split_uv(self, index, progress=None): self.split_vertices(self.find_uv_group, progress, index) def find_smooth_group(self, vertex, face):