Skip to content

Commit

Permalink
GuiPy: allow to call setupWithoutGUI more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jul 6, 2022
1 parent b4c4807 commit 212b140
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Main/FreeCADGuiPy.cpp
Expand Up @@ -194,11 +194,6 @@ FreeCADGui_setupWithoutGUI(PyObject * /*self*/, PyObject *args)
_isSetupWithoutGui = true;
Q_UNUSED(app);
}
else {
PyErr_SetString(PyExc_RuntimeError, "FreeCADGui already initialized");
return nullptr;
}

if (!SoDB::isInitialized()) {
// init the Inventor subsystem
SoDB::init();
Expand Down

0 comments on commit 212b140

Please sign in to comment.