Merge pull request #4926 from Syres916/patch-24
[Draft] gui_utils Minor bugfix on change to...
This commit is contained in:
@@ -64,6 +64,10 @@ def get_3d_view():
|
||||
Return `None` if the graphical interface is not available.
|
||||
"""
|
||||
if App.GuiUp:
|
||||
# FIXME The following two imports were added as part of PR4926
|
||||
# Also see discussion https://forum.freecadweb.org/viewtopic.php?f=3&t=60251
|
||||
import FreeCADGui as Gui
|
||||
from pivy import coin
|
||||
if Gui.ActiveDocument:
|
||||
v = Gui.ActiveDocument.ActiveView
|
||||
if "View3DInventor" in str(type(v)):
|
||||
|
||||
Reference in New Issue
Block a user