GuiPy: allow to call setupWithoutGUI more than once

This commit is contained in:
wmayer
2022-07-06 10:54:29 +02:00
parent b3e8efc9f9
commit fb3ad48c20

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();