diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-07 12:41:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-07 12:41:33 +0400 |
commit | 50bbabdc0485b3d75eabaef27e21c91556fd73b4 (patch) | |
tree | 2ab4af85cc8c582a88dd480d71c2d998e8310a99 /io_scene_x3d | |
parent | dee6d90df47b502e26ed09c1487bfa8f4bb4634e (diff) |
export objects in predictable order
Diffstat (limited to 'io_scene_x3d')
-rw-r--r-- | io_scene_x3d/export_x3d.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index 56a59752..5a18c16b 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -92,7 +92,7 @@ def build_hierarchy(objects): parent = parent.parent return parent - for obj in objects_set: + for obj in objects: par_lookup.setdefault(test_parent(obj.parent), []).append((obj, [])) for parent, children in par_lookup.items(): @@ -1181,9 +1181,9 @@ def export(file, ident = '\t\t' if use_selection: - objects = (obj for obj in scene.objects if obj.is_visible(scene) and o.select) + objects = [obj for obj in scene.objects if obj.is_visible(scene) and o.select] else: - objects = (obj for obj in scene.objects if obj.is_visible(scene)) + objects = [obj for obj in scene.objects if obj.is_visible(scene)] if use_hierarchy: objects_hierarchy = build_hierarchy(objects) |