Browse Source

Save animations of MD2 files

Temdog007 6 years ago
parent
commit
8be4a88a71
1 changed files with 1 additions and 0 deletions
  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 ) );