Core: Add missing Python interpreter locks

This commit is contained in:
Pieter Hijma
2024-07-10 17:02:09 +02:00
committed by wwmayer
parent f0024a8930
commit 44387a793b
2 changed files with 3 additions and 0 deletions

View File

@@ -220,6 +220,7 @@ Document::Document(App::Document* pcDocument,Application * app)
// pointer to the python class
// NOTE: As this Python object doesn't get returned to the interpreter we
// mustn't increment it (Werner Jan-12-2006)
Base::PyGILStateLocker lock;
_pcDocPy = new Gui::DocumentPy(this);
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Document");