diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-12-06 04:40:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-12-06 04:40:02 +0400 |
commit | 370b15a0d12641659083a0c3802286836ba5bb55 (patch) | |
tree | 39614416d88c52beb3c39fe3dc981741180ea53b /io_scene_x3d/export_x3d.py | |
parent | ed74bfe14d302ab15c843ef0397fce9aa4008717 (diff) |
patch [#29261] X3D exporter if hierarchy is on you get duplicated ids which are not allowed
from Paulo Dias (paxnubis)
Diffstat (limited to 'io_scene_x3d/export_x3d.py')
-rw-r--r-- | io_scene_x3d/export_x3d.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index 86b9d119..6cc1fb2b 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -496,7 +496,9 @@ def export(file, fw('%s<Collision enabled="true">\n' % ident) ident += '\t' - ident = writeTransform_begin(ident, matrix, suffix_quoted_str(obj_id, "_TRANSFORM")) + # use _ifs_TRANSFORM suffix so we dont collide with transform node when + # hierarchys are used. + ident = writeTransform_begin(ident, matrix, suffix_quoted_str(obj_id, "_ifs_TRANSFORM")) if mesh.tag: fw('%s<Group USE=%s />\n' % (ident, mesh_id_group)) |