]> git.tdb.fi Git - libs/gl.git/commitdiff
Compatibility with Blender 2.6
authorMikko Rasa <tdb@tdb.fi>
Tue, 7 Feb 2012 17:44:02 +0000 (17:44 +0000)
committerMikko Rasa <tdb@tdb.fi>
Tue, 7 Feb 2012 17:44:02 +0000 (17:44 +0000)
blender/io_mesh_mspgl/__init__.py
blender/io_mesh_mspgl/export_mspgl.py

index 5fa70c200c19e518bbb7825da0683326583b2207..c6d250fb87061d9d9665b54a5281c810f96b8add 100644 (file)
@@ -12,7 +12,7 @@ if "bpy" in locals():
                        imp.reload(locals()[sub])
 
 import bpy
-from io_utils import ExportHelper
+from bpy_extras.io_utils import ExportHelper
 
 class ExportMspGL(bpy.types.Operator, ExportHelper):
        bl_idname = "export_mesh.mspgl"
index aa02c13a3e1cd09864d9047d5204f9a8c32bb663..46f6fcafccf56a558e48d1afb3588d8bbc8aac89 100644 (file)
@@ -229,7 +229,7 @@ class Exporter:
                mesh = None
                bmeshes = []
                for o in objs:
-                       bmesh = o.create_mesh(context.scene, True, "PREVIEW")
+                       bmesh = o.to_mesh(context.scene, True, "PREVIEW")
                        bmeshes.append(bmesh)
                        if not mesh:
                                mesh = Mesh(bmesh)