Browse Source

Merge pull request #10292 from takahirox/DashSupport

PropertyBinding.parseTracnName dash support
Mr.doob 8 years ago
parent
commit
14c47ec320
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/animation/PropertyBinding.js

+ 1 - 1
src/animation/PropertyBinding.js

@@ -544,7 +544,7 @@ PropertyBinding.parseTrackName = function( trackName ) {
 	//    scene:helium_balloon_model:helium_balloon_model.position
 	// created and tested via https://regex101.com/#javascript
 
-	var re = /^((?:\w+[\/:])*)(\w+)?(?:\.(\w+)(?:\[(.+)\])?)?\.(\w+)(?:\[(.+)\])?$/;
+	var re = /^((?:[\w-]+[\/:])*)([\w-]+)?(?:\.([\w-]+)(?:\[(.+)\])?)?\.([\w-]+)(?:\[(.+)\])?$/;
 	var matches = re.exec( trackName );
 
 	if ( ! matches ) {