[Draft] gui_utils Minor bugfix on change to...

...Draft Wb with grid enabled. Please backport to 0.19 branch, see discussion https://forum.freecadweb.org/viewtopic.php?f=3&t=60251
This commit is contained in:
Syres916
2021-07-17 21:52:30 +01:00
committed by GitHub
parent bbb557aab6
commit 5e1ae4e72d

View File

@@ -64,6 +64,7 @@ def get_3d_view():
Return `None` if the graphical interface is not available.
"""
if App.GuiUp:
import FreeCADGui as Gui
if Gui.ActiveDocument:
v = Gui.ActiveDocument.ActiveView
if "View3DInventor" in str(type(v)):