浏览代码

Minor MMDLoader Update

Takahiro 8 年之前
父节点
当前提交
e74c02e885
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 );