提交 c364adaa 编写于 作者: M Mr.doob

Updated builds.

上级 6817765c
......@@ -11050,9 +11050,11 @@ THREE.DirectGeometry.prototype = {
var morphTargets = geometry.morphTargets;
var morphTargetsLength = morphTargets.length;
var morphTargetsPosition;
if ( morphTargetsLength > 0 ) {
var morphTargetsPosition = [];
morphTargetsPosition = [];
for ( var i = 0; i < morphTargetsLength; i ++ ) {
......@@ -11067,9 +11069,11 @@ THREE.DirectGeometry.prototype = {
var morphNormals = geometry.morphNormals;
var morphNormalsLength = morphNormals.length;
var morphTargetsNormal;
if ( morphNormalsLength > 0 ) {
var morphTargetsNormal = [];
morphTargetsNormal = [];
for ( var i = 0; i < morphNormalsLength; i ++ ) {
......@@ -17686,7 +17690,9 @@ THREE.Loader.prototype = {
}
if ( json.type === 'MeshBasicMaterial' ) delete json.emissive;
if ( json.type !== 'MeshPhongMaterial' ) delete json.specular;
if ( json.opacity < 1 ) json.transparent = true;
materialLoader.setTextures( textures );
......@@ -20322,7 +20328,7 @@ THREE.MeshBasicMaterial.prototype = Object.create( THREE.Material.prototype );
THREE.MeshBasicMaterial.prototype.constructor = THREE.MeshBasicMaterial;
THREE.MeshBasicMaterial.prototype.copy = function ( source ) {
THREE.Material.prototype.copy.call( this, source );
this.color.copy( source.color );
......@@ -20354,7 +20360,7 @@ THREE.MeshBasicMaterial.prototype.copy = function ( source ) {
this.skinning = source.skinning;
this.morphTargets = source.morphTargets;
return this;
};
......@@ -22638,7 +22644,7 @@ THREE.SkinnedMesh = function ( geometry, material, useVertexTexture ) {
gbone = this.geometry.bones[ b ];
if ( gbone.parent !== - 1 && gbone.parent !== null) {
if ( gbone.parent !== - 1 && gbone.parent !== null ) {
bones[ gbone.parent ].add( bones[ b ] );
......@@ -22670,7 +22676,7 @@ THREE.SkinnedMesh.prototype.bind = function( skeleton, bindMatrix ) {
if ( bindMatrix === undefined ) {
this.updateMatrixWorld( true );
this.skeleton.calculateInverses();
bindMatrix = this.matrixWorld;
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册