提交 41b1a45a 编写于 作者: Z zexee 提交者: Mr.doob

Update Geometry.js

fixed a bug in mergeVertices, which removes wrong faces.
上级 fa44aacd
......@@ -573,12 +573,13 @@ THREE.Geometry.prototype = {
}
for ( i = faceIndicesToRemove.length - 1; i >= 0; i -- ) {
this.faces.splice( i, 1 );
var idx = faceIndicesToRemove[ i ];
this.faces.splice( idx, 1 );
for ( j = 0, jl = this.faceVertexUvs.length; j < jl; j ++ ) {
this.faceVertexUvs[ j ].splice( i, 1 );
this.faceVertexUvs[ j ].splice( idx, 1 );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册