From 7cbc694c939a612cc1e43560a6798ce935bd4d5f Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Fri, 13 Nov 2020 16:07:43 -0500 Subject: [PATCH] patchup for line basic material bug with two materials? --- src/kiri/stacks.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/kiri/stacks.js b/src/kiri/stacks.js index 72941f6b..b6752629 100644 --- a/src/kiri/stacks.js +++ b/src/kiri/stacks.js @@ -115,8 +115,8 @@ const mat = []; // materials const grp = []; // material groups const geo = new THREE.BufferGeometry(); - // map all the poly and line colors - const cmap = {} + // map all the poly and line colors for re-use + // const cmap = {} let cidx = 0; let last = undefined; for (let i=0, il=polys.length; i