Browse Source

BufferGeometryUtils: update outdated reference to this (#22304)

Marco Fugaro 4 years ago
parent
commit
cc987e80aa
1 changed files with 2 additions and 2 deletions
  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 ) {
 	for ( const name in attributes ) {
 
 
-		const mergedAttribute = this.mergeBufferAttributes( attributes[ name ] );
+		const mergedAttribute = mergeBufferAttributes( attributes[ name ] );
 
 
 		if ( ! mergedAttribute ) {
 		if ( ! mergedAttribute ) {
 
 
@@ -200,7 +200,7 @@ function mergeBufferGeometries( geometries, useGroups = false ) {
 
 
 			}
 			}
 
 
-			const mergedMorphAttribute = this.mergeBufferAttributes( morphAttributesToMerge );
+			const mergedMorphAttribute = mergeBufferAttributes( morphAttributesToMerge );
 
 
 			if ( ! mergedMorphAttribute ) {
 			if ( ! mergedMorphAttribute ) {