Skip to content

Commit

Permalink
Start: Fixed loading of non-FCStd files from Start page
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed May 29, 2020
1 parent da4baa7 commit 66d7583
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/Start/StartPage/LoadCustom.py
Expand Up @@ -31,7 +31,10 @@
if not os.path.isdir(cfolder):
cfolder = os.path.dirname(cfolder)
f = unquote(filename).replace("+"," ")
FreeCAD.open(os.path.join(cfolder,f))
if f.lower().endswith(".fcstd"):
FreeCAD.open(os.path.join(cfolder,f))
else:
FreeCAD.loadFile(os.path.join(cfolder,f))
FreeCADGui.activeDocument().sendMsgToViews("ViewFit")

from StartPage import StartPage
Expand Down

0 comments on commit 66d7583

Please sign in to comment.