소스 검색

BufferGeometryUtils: update outdated reference to this (#22304)

Marco Fugaro 4 년 전
부모
커밋
cc987e80aa
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      examples/jsm/utils/BufferGeometryUtils.js

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

@@ -166,7 +166,7 @@ function mergeBufferGeometries( geometries, useGroups = false ) {
 
 	for ( const name in attributes ) {
 
-		const mergedAttribute = this.mergeBufferAttributes( attributes[ name ] );
+		const mergedAttribute = mergeBufferAttributes( attributes[ name ] );
 
 		if ( ! mergedAttribute ) {
 
@@ -200,7 +200,7 @@ function mergeBufferGeometries( geometries, useGroups = false ) {
 
 			}
 
-			const mergedMorphAttribute = this.mergeBufferAttributes( morphAttributesToMerge );
+			const mergedMorphAttribute = mergeBufferAttributes( morphAttributesToMerge );
 
 			if ( ! mergedMorphAttribute ) {