Browse Source

fix non indexed

Garrett Johnson 4 years ago
parent
commit
0d282a6ce4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/geometries/EdgesGeometry.js

+ 1 - 1
src/geometries/EdgesGeometry.js

@@ -29,7 +29,7 @@ class EdgesGeometry extends BufferGeometry {
 
 
 		const indexAttr = geometry.getIndex();
 		const indexAttr = geometry.getIndex();
 		const positionAttr = geometry.getAttribute( 'position' );
 		const positionAttr = geometry.getAttribute( 'position' );
-		const indexCount = indexAttr ? indexAttr.count : positionAttr.count / 3;
+		const indexCount = indexAttr ? indexAttr.count : positionAttr.count;
 
 
 		const indexArr = [ 0, 0, 0 ];
 		const indexArr = [ 0, 0, 0 ];
 		const vertKeys = [ 'a', 'b', 'c' ];
 		const vertKeys = [ 'a', 'b', 'c' ];