Browse Source

Use new .applyMatrix4() method

WestLangley 5 năm trước cách đây
mục cha
commit
d8d0bdd512
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/core/BufferGeometry.js

+ 2 - 1
src/core/BufferGeometry.js

@@ -129,7 +129,8 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
 
 		if ( position !== undefined ) {
 
-			matrix.applyToBufferAttribute( position );
+			position.applyMatrix4( matrix );
+
 			position.needsUpdate = true;
 
 		}