diff --git a/src/UI/Components/Board/BoardConfigModal.tsx b/src/UI/Components/Board/BoardConfigModal.tsx index 2e33007df..6d3cc0481 100644 --- a/src/UI/Components/Board/BoardConfigModal.tsx +++ b/src/UI/Components/Board/BoardConfigModal.tsx @@ -518,12 +518,24 @@ export class BoardConfigModal extends React.Component{ { //从刀库获取新的刀具 否则使用缓存刀具轮廓 解决不同店铺编辑保存二维刀路时鉴权失败问题 let polyline = useNewKnife ? await this.getToplinesDetailPolyline(id) : br.KnifePolylineMap.get(id) ?? await this.getToplinesDetailPolyline(id); + + //二维刀路时鉴权失败时 保存路径后退出 + if (!polyline) + { + path.ColorIndex = c.ColorIndex; + if (!pathMap.has(c.ColorIndex)) + pathMap.set(c.ColorIndex, [path]); + else + pathMap.get(c.ColorIndex).push(path); + break; + } + halfWidth = polyline.BoundingBox.getSize(new Vector3).x / 2; knifeSizeMap.set(id, halfWidth); knifeMap.set(id, polyline); } - //忽略与板没有交集的刀路 + //提示与板没有交集的刀路 if (brCurveBox.intersectsBox(path.BoundingBox, halfWidth)) { //异型板情况