修复:二维刀路绘制失败

pull/2555/head
ChenX 9 months ago
parent 2ed566b935
commit 726502417b

@ -517,7 +517,7 @@ export class BoardConfigModal extends React.Component<BoardConfigProps, {}>{
if (!halfWidth)
{
//从刀库获取新的刀具 否则使用缓存刀具轮廓 解决不同店铺编辑保存二维刀路时鉴权失败问题
let polyline = useNewKnife ? await this.getToplinesDetailPolyline(id) : br.KnifePolylineMap.get(id);
let polyline = useNewKnife ? await this.getToplinesDetailPolyline(id) : br.KnifePolylineMap.get(id) ?? await this.getToplinesDetailPolyline(id);
halfWidth = polyline.BoundingBox.getSize(new Vector3).x / 2;
knifeSizeMap.set(id, halfWidth);
knifeMap.set(id, polyline);

Loading…
Cancel
Save