From 88556d801febc4fd02cb93302a7c25dcdd3d166e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 26 Nov 2015 11:08:35 +1100 Subject: [PATCH] Fix T46870: bge globalDict kept between sessions --- source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp index 6832b4191f5..976590cadaf 100644 --- a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp +++ b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp @@ -677,6 +677,7 @@ extern "C" void StartKetsjiShell(struct bContext *C, struct ARegion *ar, rcti *c BLI_strncpy(G.main->name, oldsce, sizeof(G.main->name)); #ifdef WITH_PYTHON + PyDict_Clear(pyGlobalDict); Py_DECREF(pyGlobalDict); // Release Python's GIL