提交 14c47ec3 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #10292 from takahirox/DashSupport

PropertyBinding.parseTracnName dash support
......@@ -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 ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册