修复:实体未清理

pull/1892/MERGE
ChenX 2 years ago
parent a9c586a65e
commit 95d1661562

@ -33,9 +33,13 @@ export class Jig
*/ */
RestoreOriginEntity() RestoreOriginEntity()
{ {
this._OrgEntitys.forEach(e => e.RestoreJigMaterial()); for (let e of this._OrgEntitys)
e.RestoreJigMaterial();
this._OrgEntitys.length = 0;
for (let l of this._LightEnts) for (let l of this._LightEnts)
l.DrawObject.visible = true; l.DrawObject.visible = true;
this._LightEnts.length = 0; this._LightEnts.length = 0;
this.EntityCacheData.length = 0; this.EntityCacheData.length = 0;
} }

Loading…
Cancel
Save