Browse Source

code style.

Pan Xinmiao 6 năm trước cách đây
mục cha
commit
b247af1bd2
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      examples/js/animation/MMDPhysics.js

+ 2 - 2
examples/js/animation/MMDPhysics.js

@@ -1079,9 +1079,9 @@ THREE.MMDPhysics = ( function () {
 			matrixInv.copy( this.bone.parent.matrixWorld ).getInverse( matrixInv );
 			
 			var pos = manager.allocThreeVector3();
-			pos.set(origin.x(), origin.y(), origin.z()).applyMatrix4(matrixInv);
+			pos.set( origin.x(), origin.y(), origin.z() ).applyMatrix4( matrixInv );
 
-			this.bone.position.copy(pos);
+			this.bone.position.copy( pos );
 
 			manager.freeThreeVector3( pos );
 			manager.freeThreeMatrix4( matrixInv );