Arch: fix ArchSectionPlane getSceneGraph problem (#8171)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user