diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-14 04:38:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-14 04:38:56 +0300 |
commit | 374c7c2a7ba029236c9cceb63218453579ba70d8 (patch) | |
tree | 30945030129c2276adf4edf4de6a1c6f7ed73b28 /io_scene_obj | |
parent | 741b7caf2267913135d1c352285ef4702f7f3fc7 (diff) |
update for changes in rna api
Diffstat (limited to 'io_scene_obj')
-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() |