浏览代码

Save animations of MD2 files

Temdog007 6 年之前
父节点
当前提交
8be4a88a71
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/js/Loader.js

+ 1 - 0
editor/js/Loader.js

@@ -347,6 +347,7 @@ var Loader = function ( editor ) {
 					var mesh = new THREE.Mesh( geometry, material );
 					mesh.mixer = new THREE.AnimationMixer( mesh );
 					mesh.name = filename;
+					editor.addAnimation( mesh, geometry.animations );
 
 					editor.execute( new AddObjectCommand( mesh ) );