Fix T46870: bge globalDict kept between sessions
This commit is contained in:
parent
d0b453577a
commit
88556d801f
Notes:
blender-bot
2024-01-16 18:05:25 +01:00
Referenced by issue #46870, The python objects in the `bge.logic.globalDict` are not destructed at the end of the game
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue