瀏覽代碼

BufferGeometryUtils: Fix assignment bug.

Mugen87 4 年之前
父節點
當前提交
8151f97c09
共有 2 個文件被更改,包括 8 次插入8 次删除
  1. 4 4
      examples/js/utils/BufferGeometryUtils.js
  2. 4 4
      examples/jsm/utils/BufferGeometryUtils.js

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

@@ -674,13 +674,13 @@ THREE.BufferGeometryUtils = {
 				for ( var i = 0, il = morphAttribute.length; i < il; i ++ ) {
 
 					var influence = morphInfluences[ i ];
-					var morphAttribute = morphAttribute[ i ];
+					var morph = morphAttribute[ i ];
 
 					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 ) {
 

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

@@ -686,13 +686,13 @@ var BufferGeometryUtils = {
 				for ( var i = 0, il = morphAttribute.length; i < il; i ++ ) {
 
 					var influence = morphInfluences[ i ];
-					var morphAttribute = morphAttribute[ i ];
+					var morph = morphAttribute[ i ];
 
 					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 ) {