提交 f2e3a813 编写于 作者: E Erik Ritter

Use singleline if for uuid validation

上级 232586ee
......@@ -456,13 +456,11 @@ Object.assign( ObjectLoader.prototype, {
for ( var i = 0; i < json.length; i ++ ) {
var clip = AnimationClip.parse( json[ i ] );
var data = json[ i ];
if ( json[ i ].uuid !== undefined ) {
var clip = AnimationClip.parse( data );
clip.uuid = json[ i ].uuid;
}
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.
先完成此消息的编辑!
想要评论请 注册