[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4381] contrib/py/scripts/addons/ io_scene_x/export_x.py: - Fixed a couple animation bugs and a skin weight bug.

Chris Foster cdbfoster at gmail.com
Sat Mar 16 19:36:34 CET 2013


Revision: 4381
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4381
Author:   kiravakaan
Date:     2013-03-16 18:36:34 +0000 (Sat, 16 Mar 2013)
Log Message:
-----------
- Fixed a couple animation bugs and a skin weight bug.

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

Modified: contrib/py/scripts/addons/io_scene_x/export_x.py
===================================================================
--- contrib/py/scripts/addons/io_scene_x/export_x.py	2013-03-15 15:56:48 UTC (rev 4380)
+++ contrib/py/scripts/addons/io_scene_x/export_x.py	2013-03-16 18:36:34 UTC (rev 4381)
@@ -72,6 +72,7 @@
                     Object.Children.append(self.ExportMap[Child])
         self.Log("Done")
         
+        self.AnimationWriter = None
         if self.Config.ExportAnimation:
             AnimationGenerators = self.__GatherAnimationGenerators()
             
@@ -660,7 +661,7 @@
                 for VertexGroup in Vertex.groups:
                     BoneVertexGroup = GroupIndexToBoneVertexGroups.get(VertexGroup.group)
                     if BoneVertexGroup is not None:
-                        VertexWeightTotal += VertexGroup.group
+                        VertexWeightTotal += VertexGroup.weight
                         VertexInfluences += 1
                 
                 if VertexInfluences > MaximumInfluences:
@@ -964,7 +965,7 @@
                     
                     self.Exporter.File.Write("AnimationKey { // Position\n");
                     self.Exporter.File.Indent()
-                    self.Exporter.File.Write("1;\n")
+                    self.Exporter.File.Write("2;\n")
                     self.Exporter.File.Write("{};\n".format(KeyCount))
                     
                     for Frame, Key in enumerate(CurrentAnimation.PositionKeys):



More information about the Bf-extensions-cvs mailing list