From 212b140d82cda570c20532c21534be9c3c137c45 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 34f37c779abc..5388226d6ff2 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();