Pārlūkot izejas kodu

Merge pull request #10223 from takahirox/MinorMMDLoaderUpdate

Minor MMDLoader Update
Mr.doob 8 gadi atpakaļ
vecāks
revīzija
26fdd09769
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      examples/js/loaders/MMDLoader.js

+ 2 - 2
examples/js/loaders/MMDLoader.js

@@ -2215,7 +2215,7 @@ THREE.MMDHelper.prototype = {
 
 		var physics = new THREE.MMDPhysics( mesh, params );
 
-		if ( mesh.mixer !== null && mesh.mixer !== undefined && params.preventAnimationWarmup !== false ) {
+		if ( mesh.mixer !== null && mesh.mixer !== undefined && params.preventAnimationWarmup !== true ) {
 
 			this.animateOneMesh( 0, mesh );
 			physics.reset();
@@ -2557,7 +2557,7 @@ THREE.MMDHelper.prototype = {
 
 		}
 
-		if ( physics !== null && this.doPhysics && ! this.sharedPhysics) {
+		if ( physics !== null && this.doPhysics && ! this.sharedPhysics ) {
 
 			physics.update( delta );