提交 3cdfe526 编写于 作者: M Mr.doob

BufferGeometry: applyToBuffer seems to be adding NaNs. Reverting.

/cc @benadams
上级 0f7ba90a
......@@ -68,7 +68,7 @@ THREE.BufferGeometry.prototype = {
if ( position !== undefined ) {
matrix.applyToBuffer( position );
matrix.applyToVector3Array( position.array );
position.needsUpdate = true;
}
......@@ -79,7 +79,7 @@ THREE.BufferGeometry.prototype = {
var normalMatrix = new THREE.Matrix3().getNormalMatrix( matrix );
normalMatrix.applyToBuffer( normal );
normalMatrix.applyToVector3Array( normal.array );
normal.needsUpdate = true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册