提交 9067519c 编写于 作者: M Mr.doob

Merge pull request #7723 from simonThiele/unittests

Fix unit test for edgesgeometry
......@@ -85,6 +85,7 @@ test( "tetrahedron", function() {
// HELPERS
//
function testEdges ( vertList, idxList, numAfter ) {
var geoms = createGeometries ( vertList, idxList );
......@@ -192,8 +193,8 @@ function countEdges ( geom ) {
}
var indices = geom.getAttribute( 'index' );
if ( indices !== undefined ) {
var indices = geom.index;
if ( indices ) {
return indices.count;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册