Преглед изворни кода

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;