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

Merge pull request #15846 from mrdoob/editor

Editor: Added animation support for dae files.
......@@ -244,7 +244,11 @@ Editor.prototype = {
addAnimation: function ( object, animations ) {
this.animations[ object.uuid ] = animations;
if ( animations.length > 0 ) {
this.animations[ object.uuid ] = animations;
}
},
......
......@@ -180,6 +180,7 @@ var Loader = function ( editor ) {
collada.scene.name = filename;
editor.addAnimation( collada.scene, collada.animations );
editor.execute( new AddObjectCommand( collada.scene ) );
}, false );
......
......@@ -1506,7 +1506,7 @@ THREE.ColladaLoader.prototype = {
}
material.name = data.name;
material.name = data.name || '';
function getTexture( textureObject ) {
......@@ -1834,7 +1834,7 @@ THREE.ColladaLoader.prototype = {
}
camera.name = data.name;
camera.name = data.name || '';
return camera;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册