!1117 优化:酒格,二维转三维,空指针报错

pull/1117/MERGE
ZoeLeeFZ 4 years ago committed by ChenX
parent 896cb538ae
commit b7c3e4f0fd

@ -85,7 +85,7 @@ export class DrawUprightWineRackTool extends DrawWineRackTool
config.widthCount--;
config.heightCount--;
this.BuildBoard(gripHeight, actualWidth, actualHeight, space);
this.AddLayerOrVerticalBoard(actualWidth, actualHeight);
// this.AddLayerOrVerticalBoard(actualWidth, actualHeight);
}
BuildBoard(gripHeight: number, spaceWidth: number, spaceHeight: number, space: ISpaceParse)
{

@ -594,7 +594,7 @@ export class TemplateManage extends React.Component<ITemplateManage, {}> {
let selectTempList: TemplateRecord[] = [];
for (let en of ens)
{
if (!selectTempsSet.has(en.Template.Index))
if (en.Template && !selectTempsSet.has(en.Template.Index))
{
let temp = en.Template.Object as TemplateRecord;
selectTempList.push(temp);

@ -2,7 +2,7 @@ import { BoardStore } from "./BoardStore";
import { IUpdateBoardInfosOption } from "../Components/Board/UpdateBoardInfointerface";
import { DefaultUpdateInfoOption } from "../../Editor/DefaultConfig";
import { observable, toJS, action } from "mobx";
import { LinesType, FaceDirection } from "./BoardInterface";
import { LinesType, FaceDirection, DrillType } from "./BoardInterface";
import { IConfigOption } from "../Components/Board/UserConfig";
import { userConfig } from "../../Editor/UserConfig";
@ -52,8 +52,11 @@ export class UpdateBoardInfosStore extends BoardStore
break;
case "底板":
case "层板":
option.bigHoleDir = FaceDirection.Back;
break;
case "收口条":
option.bigHoleDir = FaceDirection.Back;
option.drillType = DrillType.None;
default:
break;
}

Loading…
Cancel
Save