Explorar o código

Merge pull request #11098 from Mugen87/dev

Blender Exporter: Avoid using MorphAnimMesh
Mr.doob %!s(int64=8) %!d(string=hai) anos
pai
achega
95728fbd6c
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      utils/exporters/blender/tests/scripts/js/review.js

+ 3 - 2
utils/exporters/blender/tests/scripts/js/review.js

@@ -147,13 +147,14 @@ function loadGeometry( data, url ) {
 
     } else {
 
+        mesh = new THREE.Mesh( data.geometry, material );
+
         if ( data.geometry.morphTargets.length > 0 ) {
 
             console.log( 'loading morph targets' );
             data.materials[ 0 ].morphTargets = true;
-            mesh = new THREE.MorphAnimMesh( data.geometry, material );
 
-            mixer = mesh.mixer;
+            mixer = new THREE.AnimationMixer( mesh );
             animation = mixer.clipAction( mesh.geometry.animations[ 0 ] );
             hasMorph = true;