未验证 提交 bbfbe98c 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #13943 from etr2460/patch-1

Add uuid field to AnimationClip.toJSON
......@@ -59,7 +59,8 @@ Object.assign( AnimationClip, {
'name': clip.name,
'duration': clip.duration,
'tracks': tracks
'tracks': tracks,
'uuid': clip.uuid
};
......
......@@ -458,7 +458,11 @@ Object.assign( ObjectLoader.prototype, {
for ( var i = 0; i < json.length; i ++ ) {
var clip = AnimationClip.parse( json[ i ] );
var data = json[ i ];
var clip = AnimationClip.parse( data );
if ( data.uuid !== undefined ) clip.uuid = data.uuid;
animations.push( clip );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册