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:
authorCampbell Barton <ideasman42@gmail.com>2011-06-07 12:41:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-06-07 12:41:33 +0400
commit50bbabdc0485b3d75eabaef27e21c91556fd73b4 (patch)
tree2ab4af85cc8c582a88dd480d71c2d998e8310a99 /io_scene_x3d
parentdee6d90df47b502e26ed09c1487bfa8f4bb4634e (diff)
export objects in predictable order
Diffstat (limited to 'io_scene_x3d')
-rw-r--r--io_scene_x3d/export_x3d.py6
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)