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 | |
parent | ed74bfe14d302ab15c843ef0397fce9aa4008717 (diff) |
patch [#29261] X3D exporter if hierarchy is on you get duplicated ids which are not allowed
from Paulo Dias (paxnubis)
-rw-r--r-- | io_anim_acclaim/__init__.py | 2 | ||||
-rw-r--r-- | io_scene_x3d/export_x3d.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/io_anim_acclaim/__init__.py b/io_anim_acclaim/__init__.py index 4a47b9a3..9c50f919 100644 --- a/io_anim_acclaim/__init__.py +++ b/io_anim_acclaim/__init__.py @@ -40,7 +40,7 @@ bl_info = { import re import bpy from mathutils import Vector, Matrix -from math import radians, degrees +from math import radians from bpy.props import (StringProperty, BoolProperty, FloatProperty, 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)) |