修复:PU后访问到空对象的问题

pull/1839/MERGE
ChenX 3 years ago
parent a901b9626d
commit 2116647cd1

@ -172,8 +172,12 @@ export class ViewportEntity extends Entity
get Entitys()
{
let ens: Entity[] = [];
for (let id of [...this._ShowObjectIds, ...this._HideObjectIds])
ens.push(id.Object as Entity);
for (let id of this._ShowObjectIds)
if (id?.Object) ens.push(id.Object as Entity);
for (let id of this._HideObjectIds)
if (id?.Object) ens.push(id.Object as Entity);
return ens;
}
get Points()

Loading…
Cancel
Save