From d9144213c2fef4260607bb758f7cb6f2ffc21d02 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Thu, 12 Jan 2023 15:28:00 +0100 Subject: [PATCH] Arch: fix ArchSectionPlane getSceneGraph problem (#8171) --- src/Mod/Arch/ArchSectionPlane.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchSectionPlane.py b/src/Mod/Arch/ArchSectionPlane.py index c52acb4726..a82ebb112f 100644 --- a/src/Mod/Arch/ArchSectionPlane.py +++ b/src/Mod/Arch/ArchSectionPlane.py @@ -1160,7 +1160,9 @@ class _ViewProviderSectionPlane: elif prop == "LineWidth": self.drawstyle.lineWidth = vobj.LineWidth elif prop in ["CutView","CutMargin"]: - if hasattr(vobj,"CutView") and FreeCADGui.ActiveDocument.ActiveView: + if hasattr(vobj, "CutView") \ + and FreeCADGui.ActiveDocument.ActiveView \ + and hasattr(FreeCADGui.ActiveDocument.ActiveView, "getSceneGraph"): sg = FreeCADGui.ActiveDocument.ActiveView.getSceneGraph() if vobj.CutView: if self.clip: