|
|
|
@ -183,22 +183,27 @@ export class Board extends ExtrudeSolid
|
|
|
|
|
let arr = this.CreateArray() as any[];
|
|
|
|
|
arr.push(...value);
|
|
|
|
|
target[key] = arr;
|
|
|
|
|
if (key === EBoardKeyList.HighSealed)
|
|
|
|
|
if (!this.__ReadFileIng__ && key === EBoardKeyList.HighSealed)
|
|
|
|
|
this.Update(UpdateDraw.Geometry);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
let result = Reflect.set(target, key, value, receiver);
|
|
|
|
|
|
|
|
|
|
if (!this.__ReadFileIng__)//看起来使用 this.ReadFileIng 似乎也是没问题的
|
|
|
|
|
{
|
|
|
|
|
if (key === EBoardKeyList.Lines)
|
|
|
|
|
this.Update(UpdateDraw.Geometry);
|
|
|
|
|
else if (key === EBoardKeyList.ComposingFace)
|
|
|
|
|
{
|
|
|
|
|
let obj = this.GetDrawObjectFromRenderType(RenderType.PlaceFace);
|
|
|
|
|
let obj = this.CacheDrawObject.get(RenderType.PlaceFace);
|
|
|
|
|
if (obj)
|
|
|
|
|
{
|
|
|
|
|
this.UpdateDrawObject(RenderType.PlaceFace, obj);
|
|
|
|
|
obj.updateMatrixWorld(true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|