Garrett Johnson 5 лет назад
Родитель
Сommit
0d282a6ce4
1 измененных файлов с 1 добавлено и 1 удалено
  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 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 vertKeys = [ 'a', 'b', 'c' ];

粤ICP备19079148号