Browse Source

Changed regex to support morph animations from blender using the Three.js exporter. Exports in the following form: Animation_0000

Jos Dirksen 11 years ago
parent
commit
808fb42e75
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extras/objects/MorphBlendMesh.js

+ 1 - 1
src/extras/objects/MorphBlendMesh.js

@@ -61,7 +61,7 @@ THREE.MorphBlendMesh.prototype.createAnimation = function ( name, start, end, fp
 
 THREE.MorphBlendMesh.prototype.autoCreateAnimations = function ( fps ) {
 
-	var pattern = /([a-z]+)(\d+)/;
+    var pattern = /([a-z]+)_?(\d+)/;
 
 	var firstAnimation, frameRanges = {};