开发:简化代码

pull/1498/MERGE
ChenX 3 years ago
parent 468aeab427
commit c768e0f65f

@ -478,9 +478,8 @@ export class Viewer
}
let box = new Box3();
ens.reduce((b, e) => b.union(e.BoundingBox), box);
if (box.isEmpty())
return;
for (let e of ens) box.union(e.BoundingBox);
if (box.isEmpty()) return;
this.CameraCtrl.ZoomExtensBox3(box);
this.CameraCtrl.Zoom(1.2);
this.UpdateRender();

Loading…
Cancel
Save