Skip to content

Commit cd923ea

Browse files
author
simonThiele
committed
fix unit test for edgesgeometry
1 parent d865453 commit cd923ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/unit/geometry/EdgesGeometry.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ test( "tetrahedron", function() {
8585
// HELPERS
8686
//
8787

88+
8889
function testEdges ( vertList, idxList, numAfter ) {
8990

9091
var geoms = createGeometries ( vertList, idxList );
@@ -192,8 +193,8 @@ function countEdges ( geom ) {
192193

193194
}
194195

195-
var indices = geom.getAttribute( 'index' );
196-
if ( indices !== undefined ) {
196+
var indices = geom.index;
197+
if ( indices ) {
197198

198199
return indices.count;
199200

0 commit comments

Comments
 (0)