Browse Source

fix bad names in animation tracks on geometries.

Ben Houston 9 years ago
parent
commit
412044d236
1 changed files with 5 additions and 0 deletions
  1. 5 0
      utils/exporters/blender/addons/io_three/exporter/api/mesh.py

+ 5 - 0
utils/exporters/blender/addons/io_three/exporter/api/mesh.py

@@ -465,6 +465,11 @@ def animated_blend_shapes(mesh, name, options):
     :param options:
 
     """
+
+    # let filter the name to only keep the node's name
+    # the two cases are '%sGeometry' and '%sGeometry.%d', and we want %s
+    name = re.search("^(.*)Geometry(\..*)?$", name).group(1)
+
     logger.debug("mesh.animated_blend_shapes(%s, %s)", mesh, options)
     tracks = []
     shp = mesh.shape_keys