提交 3bbe3eb2 编写于 作者: T Takahiro

PropertyBinding.parseTracnName dash support

上级 9e3d48ef
......@@ -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.
先完成此消息的编辑!
想要评论请 注册