]> git.tdb.fi Git - libs/gl.git/commitdiff
Minor adjustments
authorMikko Rasa <tdb@tdb.fi>
Mon, 15 Sep 2014 10:35:11 +0000 (13:35 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 15 Sep 2014 10:35:11 +0000 (13:35 +0300)
blender/io_mspgl/__init__.py
blender/io_mspgl/export_mesh.py
blender/io_mspgl/export_scene.py
blender/io_mspgl/mesh.py

index 38e697b1c4a651390717da0c236f8d735eddd514..b1bb2f0de8c83c9af12ebace525624c66582194c 100644 (file)
@@ -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"
index 7f6674d31beacd7988d0d01147608cd9a9710c68..cae0e5894b97fa05f6f9fa21bd3c2f2b6bdc03b9 100644 (file)
@@ -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
 
index 03a02ed47903cd57d7c7e94a656b8f099664162f..a76b635ae0d791096adca2230a99e397baf3c55a 100644 (file)
@@ -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
index 3a7400b7e6c2f296c2a582d42af19847bdaca143..3ad3cecc7c570d47b3d8cad22c3dbf0949c11b83 100644 (file)
@@ -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):