修复:在布局中隐藏图框,一键打印时崩溃

pull/1482/head
ChenX 3 years ago
parent 3f90a1d675
commit a11c76b389

@ -941,7 +941,12 @@ export async function GetImgElement(ens: Entity[], isReset = true)
{ {
if (e instanceof ViewportEntity) if (e instanceof ViewportEntity)
{ {
if (!e.Visible) continue;
let o = e.DrawObject; let o = e.DrawObject;
if (!o.children.length)
continue;
(o.children[0].children[0] as Line).material = ColorMaterial.TransparentLineMaterial; (o.children[0].children[0] as Line).material = ColorMaterial.TransparentLineMaterial;
app.Viewer.Scene.add(o); app.Viewer.Scene.add(o);
} }

Loading…
Cancel
Save