Преглед на файлове

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 ) {
 
-			matrix.applyToBufferAttribute( position );
+			position.applyMatrix4( matrix );
+
 			position.needsUpdate = true;
 
 		}