瀏覽代碼

Use new .applyMatrix4() method

WestLangley 5 年之前
父節點
當前提交
d8d0bdd512
共有 1 個文件被更改,包括 2 次插入1 次删除
  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 ) {
 		if ( position !== undefined ) {
 
 
-			matrix.applyToBufferAttribute( position );
+			position.applyMatrix4( matrix );
+
 			position.needsUpdate = true;
 			position.needsUpdate = true;
 
 
 		}
 		}