diff options
Diffstat (limited to 'io_scene_obj/export_obj.py')
-rw-r--r-- | io_scene_obj/export_obj.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py index d3fd917e..73e426e7 100644 --- a/io_scene_obj/export_obj.py +++ b/io_scene_obj/export_obj.py @@ -358,7 +358,7 @@ def write_file(filepath, objects, scene, if ob_main.dupli_type != 'NONE': # XXX print('creating dupli_list on', ob_main.name) - ob_main.create_dupli_list(scene) + ob_main.dupli_list_create(scene) obs = [(dob.object, dob.matrix) for dob in ob_main.dupli_list] @@ -380,7 +380,7 @@ def write_file(filepath, objects, scene, if ob.type != 'MESH': continue - me = ob.create_mesh(scene, EXPORT_APPLY_MODIFIERS, 'PREVIEW') + me = ob.to_mesh(scene, EXPORT_APPLY_MODIFIERS, 'PREVIEW') if EXPORT_ROTX90: me.transform(mat_xrot90 * ob_mat) @@ -674,7 +674,7 @@ def write_file(filepath, objects, scene, bpy.data.meshes.remove(me) if ob_main.dupli_type != 'NONE': - ob_main.free_dupli_list() + ob_main.dupli_list_clear() file.close() |