From 3dadeab9e0c107861e371fd42e31e535898f286a Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 6 Jul 2022 10:54:29 +0200 Subject: [PATCH] GuiPy: allow to call setupWithoutGUI more than once --- src/Main/FreeCADGuiPy.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Main/FreeCADGuiPy.cpp b/src/Main/FreeCADGuiPy.cpp index 5694d4125b..cc74be5bdd 100644 --- a/src/Main/FreeCADGuiPy.cpp +++ b/src/Main/FreeCADGuiPy.cpp @@ -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();