From c38dfed216b0685bfe37897e8d56012b01190ba3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 4 Feb 2013 01:02:46 +0000 Subject: fix for error exporting a dupli that contained no objects. --- io_scene_x3d/export_x3d.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'io_scene_x3d/export_x3d.py') 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 -- cgit v1.2.3