[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4501] trunk/py/scripts/addons/ io_scene_x/export_x.py: Added ExportSkinWeights to the condition for using an unrolled mesh enumerator .

Chris Foster cdbfoster at gmail.com
Sat May 4 08:25:56 CEST 2013


Revision: 4501
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4501
Author:   kiravakaan
Date:     2013-05-04 06:25:55 +0000 (Sat, 04 May 2013)
Log Message:
-----------
Added ExportSkinWeights to the condition for using an unrolled mesh enumerator.  For some very strange reason, it appears that DirectX will only transform a skinned vertex correctly for the first face that uses it.  All others will appear at the origin.  This can be worked around by using an unrolled mesh enumerator (in other words duplicating each vertex per face that uses it).  DirectX bug?

Modified Paths:
--------------
    trunk/py/scripts/addons/io_scene_x/export_x.py

Modified: trunk/py/scripts/addons/io_scene_x/export_x.py
===================================================================
--- trunk/py/scripts/addons/io_scene_x/export_x.py	2013-04-30 23:34:04 UTC (rev 4500)
+++ trunk/py/scripts/addons/io_scene_x/export_x.py	2013-05-04 06:25:55 UTC (rev 4501)
@@ -442,7 +442,8 @@
         # Create the mesh enumerator based on options
         MeshEnumerator = None
         if (self.Config.ExportUVCoordinates and Mesh.uv_textures) or \
-            (self.Config.ExportVertexColors and Mesh.vertex_colors):
+            (self.Config.ExportVertexColors and Mesh.vertex_colors) or \
+            (self.Config.ExportSkinWeights):
             MeshEnumerator = MeshExportObject._UnrolledFacesMeshEnumerator(Mesh)
         else:
             MeshEnumerator = MeshExportObject._OneToOneMeshEnumerator(Mesh)



More information about the Bf-extensions-cvs mailing list