From: Mikko Rasa Date: Tue, 7 Feb 2012 17:44:02 +0000 (+0000) Subject: Compatibility with Blender 2.6 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=6abd9639c56e263c92d1ccc4f772d7f0fca5ce6a;p=libs%2Fgl.git Compatibility with Blender 2.6 --- diff --git a/blender/io_mesh_mspgl/__init__.py b/blender/io_mesh_mspgl/__init__.py index 5fa70c20..c6d250fb 100644 --- a/blender/io_mesh_mspgl/__init__.py +++ b/blender/io_mesh_mspgl/__init__.py @@ -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" diff --git a/blender/io_mesh_mspgl/export_mspgl.py b/blender/io_mesh_mspgl/export_mspgl.py index aa02c13a..46f6fcaf 100644 --- a/blender/io_mesh_mspgl/export_mspgl.py +++ b/blender/io_mesh_mspgl/export_mspgl.py @@ -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)