Explorar o código

Save animations of MD2 files

Temdog007 %!s(int64=6) %!d(string=hai) anos
pai
achega
8be4a88a71
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 ) );