[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1888] trunk/py/scripts/addons/ io_scene_x3d/export_x3d.py: patch [#27237] Export to X3D uses incorrect < group> and <transform> node names
Campbell Barton
ideasman42 at gmail.com
Tue May 3 08:02:18 CEST 2011
Revision: 1888
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1888
Author: campbellbarton
Date: 2011-05-03 06:02:17 +0000 (Tue, 03 May 2011)
Log Message:
-----------
patch [#27237] Export to X3D uses incorrect <group> and <transform> node names
from Yaroslav Zubkov (yzubkov)
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 2011-05-03 02:22:58 UTC (rev 1887)
+++ trunk/py/scripts/addons/io_scene_x3d/export_x3d.py 2011-05-03 06:02:17 UTC (rev 1888)
@@ -278,7 +278,8 @@
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 @@
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, )))
More information about the Bf-extensions-cvs
mailing list