diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-03 10:02:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-03 10:02:17 +0400 |
commit | afb5e0e411e74a4406db0db69945005ba1527b90 (patch) | |
tree | 865ab1e046a276ce19f7902dedf92a5d8618a5d3 /io_scene_x3d | |
parent | a90a6e1405c12aa9bfb5d71d58e69d9d304b0713 (diff) |
patch [#27237] Export to X3D uses incorrect <group> and <transform> node names
from Yaroslav Zubkov (yzubkov)
Diffstat (limited to 'io_scene_x3d')
-rw-r--r-- | io_scene_x3d/export_x3d.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index 2dc9f638..94bb3bd5 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -278,7 +278,8 @@ class x3d_class: def writeIndexedFaceSet(self, ob, mesh, mtx, world, EXPORT_TRI=False): fw = self.file.write - mesh_name_x3d = self.cleanStr(ob.name) + shape_name_x3d = self.cleanStr(ob.name) + mesh_name_x3d = self.cleanStr(mesh.name) if not mesh.faces: return @@ -314,7 +315,7 @@ class x3d_class: loc, quat, sca = mtx.decompose() - self.write_indented("<Transform DEF=\"%s\" " % mesh_name_x3d, 1) + self.write_indented("<Transform DEF=\"%s\" " % shape_name_x3d, 1) fw("translation=\"%.6f %.6f %.6f\" " % loc[:]) fw("scale=\"%.6f %.6f %.6f\" " % sca[:]) fw("rotation=\"%.6f %.6f %.6f %.6f\" " % (quat.axis[:] + (quat.angle, ))) |