Pacify travis

pull/546/head
marko 2020-08-13 21:49:50 -04:00
parent 6294402ebe
commit 1cdf5d5ba8
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ function initNormals() {
function readSTL(fn) { function readSTL(fn) {
var fb = require("Storage").read(fn); var fb = require("Storage").read(fn);
var nverts=0,i=0; while(i=fb.indexOf("vertex",i)+1) nverts++; var nverts=0,i=0; while((i=fb.indexOf("vertex",i)+1)!=0) nverts++;
points = new Float32Array(nverts); points = new Float32Array(nverts);
p_points = E.getAddressOf(points, true); p_points = E.getAddressOf(points, true);
faces = new Uint16Array(nverts); faces = new Uint16Array(nverts);