diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-04 05:02:46 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-04 05:02:46 +0400 |
commit | c38dfed216b0685bfe37897e8d56012b01190ba3 (patch) | |
tree | 384487df788decebc208f8f24d60158ef687c6ac | |
parent | 3be4eb61c8caac0d92cf6430e591ed5b7a3feb7b (diff) |
fix for error exporting a dupli that contained no objects.
-rw-r--r-- | io_scene_x3d/export_x3d.py | 3 |
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 |