Browse Source

BufferGeometryUtils: Fix assignment bug.

Mugen87 4 years ago
parent
commit
8151f97c09

+ 4 - 4
examples/js/utils/BufferGeometryUtils.js

@@ -674,13 +674,13 @@ THREE.BufferGeometryUtils = {
 				for ( var i = 0, il = morphAttribute.length; i < il; i ++ ) {
 				for ( var i = 0, il = morphAttribute.length; i < il; i ++ ) {
 
 
 					var influence = morphInfluences[ i ];
 					var influence = morphInfluences[ i ];
-					var morphAttribute = morphAttribute[ i ];
+					var morph = morphAttribute[ i ];
 
 
 					if ( influence === 0 ) continue;
 					if ( influence === 0 ) continue;
 
 
-					_tempA.fromBufferAttribute( morphAttribute, a );
-					_tempB.fromBufferAttribute( morphAttribute, b );
-					_tempC.fromBufferAttribute( morphAttribute, c );
+					_tempA.fromBufferAttribute( morph, a );
+					_tempB.fromBufferAttribute( morph, b );
+					_tempC.fromBufferAttribute( morph, c );
 
 
 					if ( morphTargetsRelative ) {
 					if ( morphTargetsRelative ) {
 
 

+ 4 - 4
examples/jsm/utils/BufferGeometryUtils.js

@@ -686,13 +686,13 @@ var BufferGeometryUtils = {
 				for ( var i = 0, il = morphAttribute.length; i < il; i ++ ) {
 				for ( var i = 0, il = morphAttribute.length; i < il; i ++ ) {
 
 
 					var influence = morphInfluences[ i ];
 					var influence = morphInfluences[ i ];
-					var morphAttribute = morphAttribute[ i ];
+					var morph = morphAttribute[ i ];
 
 
 					if ( influence === 0 ) continue;
 					if ( influence === 0 ) continue;
 
 
-					_tempA.fromBufferAttribute( morphAttribute, a );
-					_tempB.fromBufferAttribute( morphAttribute, b );
-					_tempC.fromBufferAttribute( morphAttribute, c );
+					_tempA.fromBufferAttribute( morph, a );
+					_tempB.fromBufferAttribute( morph, b );
+					_tempC.fromBufferAttribute( morph, c );
 
 
 					if ( morphTargetsRelative ) {
 					if ( morphTargetsRelative ) {