Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_scene_obj/export_obj.py')
-rw-r--r--io_scene_obj/export_obj.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py
index e458f2d7..f0418a54 100644
--- a/io_scene_obj/export_obj.py
+++ b/io_scene_obj/export_obj.py
@@ -352,18 +352,16 @@ def write_file(filepath, objects, scene,
subprogress1.step("Ignoring %s, dupli child..." % ob_main.name)
continue
- obs = []
+ obs = [(ob_main, ob_main.matrix_world)]
if ob_main.dupli_type != 'NONE':
# XXX
print('creating dupli_list on', ob_main.name)
ob_main.dupli_list_create(scene)
- obs = [(dob.object, dob.matrix) for dob in ob_main.dupli_list]
+ obs += [(dob.object, dob.matrix) for dob in ob_main.dupli_list]
# XXX debug print
- print(ob_main.name, 'has', len(obs), 'dupli children')
- else:
- obs = [(ob_main, ob_main.matrix_world)]
+ print(ob_main.name, 'has', len(obs) - 1, 'dupli children')
subprogress1.enter_substeps(len(obs))
for ob, ob_mat in obs: