浏览代码

Merge pull request #7723 from simonThiele/unittests

Fix unit test for edgesgeometry
Mr.doob 9 年之前
父节点
当前提交
9067519c48
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      test/unit/geometry/EdgesGeometry.js

+ 3 - 2
test/unit/geometry/EdgesGeometry.js

@@ -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;