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>2013-02-04 05:02:46 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-02-04 05:02:46 +0400
commitc38dfed216b0685bfe37897e8d56012b01190ba3 (patch)
tree384487df788decebc208f8f24d60158ef687c6ac /io_scene_x3d
parent3be4eb61c8caac0d92cf6430e591ed5b7a3feb7b (diff)
fix for error exporting a dupli that contained no objects.
Diffstat (limited to 'io_scene_x3d')
-rw-r--r--io_scene_x3d/export_x3d.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py
index e43dc124..70321305 100644
--- a/io_scene_x3d/export_x3d.py
+++ b/io_scene_x3d/export_x3d.py
@@ -1399,6 +1399,9 @@ def export(file,
ident = writeTransform_begin(ident, obj_main_matrix if obj_main_parent else global_matrix * obj_main_matrix, suffix_quoted_str(obj_main_id, _TRANSFORM))
+ # Set here just incase we dont enter the loop below.
+ is_dummy_tx = False
+
for obj, obj_matrix in (() if derived is None else derived):
obj_type = obj.type