Arch: fix ArchSectionPlane getSceneGraph problem (#8171)

This commit is contained in:
Roy-043
2023-01-12 15:28:00 +01:00
committed by GitHub
parent ed995b5a15
commit d9144213c2

View File

@@ -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: