fix buffer geometry call from recent threejs upgrade. also typo fix in polygons

This commit is contained in:
Stewart Allen 2024-07-03 15:17:21 -04:00
commit d1f234fb61
2 changed files with 2 additions and 3 deletions

View file

@ -273,7 +273,7 @@ FDM.init = function(kiri, api) {
// eliminate / normalize uv to allow other widget merge
box.setAttribute('uv',new BufferAttribute(new Float32Array(0), 3));
}
let bbg = BufferGeometryUtils.mergeBufferGeometries(boxen);
let bbg = BufferGeometryUtils.mergeGeometries(boxen);
let sw = kiri.newWidget(null, group);
let fwp = group[0].track.pos;
sw.loadGeometry(bbg);