2
0
Эх сурвалжийг харах

Save animations of MD2 files

Temdog007 6 жил өмнө
parent
commit
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 ) );