From 370b15a0d12641659083a0c3802286836ba5bb55 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 6 Dec 2011 00:40:02 +0000 Subject: patch [#29261] X3D exporter if hierarchy is on you get duplicated ids which are not allowed from Paulo Dias (paxnubis) --- io_anim_acclaim/__init__.py | 2 +- 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\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\n' % (ident, mesh_id_group)) -- cgit v1.2.3