[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4236] trunk/py/scripts/addons/ io_scene_x3d/export_x3d.py: fix for error exporting a dupli that contained no objects.
Campbell Barton
ideasman42 at gmail.com
Mon Feb 4 02:02:47 CET 2013
Revision: 4236
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4236
Author: campbellbarton
Date: 2013-02-04 01:02:46 +0000 (Mon, 04 Feb 2013)
Log Message:
-----------
fix for error exporting a dupli that contained no objects.
Modified Paths:
--------------
trunk/py/scripts/addons/io_scene_x3d/export_x3d.py
Modified: trunk/py/scripts/addons/io_scene_x3d/export_x3d.py
===================================================================
--- trunk/py/scripts/addons/io_scene_x3d/export_x3d.py 2013-02-04 00:36:51 UTC (rev 4235)
+++ trunk/py/scripts/addons/io_scene_x3d/export_x3d.py 2013-02-04 01:02:46 UTC (rev 4236)
@@ -1399,6 +1399,9 @@
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
More information about the Bf-extensions-cvs
mailing list