GuiPy: allow to call setupWithoutGUI more than once

This commit is contained in:
wmayer
2022-07-09 20:12:41 +02:00
committed by Uwe
parent 1861868428
commit 3dadeab9e0
-5
View File
@@ -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();