From 1860441ee7cd4ec75c99cc372fccec839c525f46 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 28 Nov 2018 17:51:13 +0100 Subject: Use collection and instance terminology in Python API This follows naming convention agreed on in T56648. --- io_scene_obj/export_obj.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'io_scene_obj') diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py index 0fe7fbcc..0e905141 100644 --- a/io_scene_obj/export_obj.py +++ b/io_scene_obj/export_obj.py @@ -324,13 +324,13 @@ def write_file(filepath, objects, depsgraph, scene, subprogress1.enter_substeps(len(objects)) for i, ob_main in enumerate(objects): # ignore dupli children - if ob_main.parent and ob_main.parent.dupli_type in {'VERTS', 'FACES'}: + if ob_main.parent and ob_main.parent.instance_type in {'VERTS', 'FACES'}: # XXX subprogress1.step("Ignoring %s, dupli child..." % ob_main.name) continue obs = [(ob_main, ob_main.matrix_world)] - if ob_main.dupli_type != 'NONE': + if ob_main.instance_type != 'NONE': # XXX print('creating dupli_list on', ob_main.name) ob_main.dupli_list_create(scene) @@ -644,7 +644,7 @@ def write_file(filepath, objects, depsgraph, scene, # clean up bpy.data.meshes.remove(me) - if ob_main.dupli_type != 'NONE': + if ob_main.instance_type != 'NONE': ob_main.dupli_list_clear() subprogress1.leave_substeps("Finished writing geometry of '%s'." % ob_main.name) -- cgit v1.2.3