!692 优化:模块在更新时,如果定位错误,那么退出模块更新.

pull/692/MERGE
ChenX 5 years ago
parent 815a00f0fb
commit 6aade61d27

@ -265,6 +265,16 @@ export class TemplateRecord extends SymbolTableRecord
for (let param of this.Params) for (let param of this.Params)
paramMap.set(param.name, param); paramMap.set(param.name, param);
if (this._Positioning)
{
await this._Positioning.Positioning();
if (!this._Positioning.SpaceCS)
{
Log("模块定位错误!");
return;//出事故
}
}
for (let en of ens) for (let en of ens)
{ {
en.ApplyMatrix(en.SpaceOCSInv); en.ApplyMatrix(en.SpaceOCSInv);
@ -282,13 +292,6 @@ export class TemplateRecord extends SymbolTableRecord
if (this._Positioning) if (this._Positioning)
{ {
await this._Positioning.Positioning();
if (!this._Positioning.SpaceCS)
{
Log("模块定位错误!");
return;//出事故
}
this._CacheSpaceCS = this._Positioning.SpaceCS; this._CacheSpaceCS = this._Positioning.SpaceCS;
this._CacheSpaceSize = this._Positioning.SpaceSize; this._CacheSpaceSize = this._Positioning.SpaceSize;

Loading…
Cancel
Save