Преглед изворни кода

Merge pull request #7641 from leitzler/leitzler-regexcase-1

Ignore case on name match
Mr.doob пре 9 година
родитељ
комит
4c115d0513
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/extras/objects/MorphBlendMesh.js

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

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