Procházet zdrojové kódy

fix bad names in animation tracks on geometries.

Ben Houston před 10 roky
rodič
revize
412044d236

+ 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