[Bf-blender-cvs] [88556d8] master: Fix T46870: bge globalDict kept between sessions

Campbell Barton noreply at git.blender.org
Thu Nov 26 01:22:58 CET 2015


Commit: 88556d801febc4fd02cb93302a7c25dcdd3d166e
Author: Campbell Barton
Date:   Thu Nov 26 11:08:35 2015 +1100
Branches: master
https://developer.blender.org/rB88556d801febc4fd02cb93302a7c25dcdd3d166e

Fix T46870: bge globalDict kept between sessions

===================================================================

M	source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp

===================================================================

diff --git a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
index 6832b41..976590c 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




More information about the Bf-blender-cvs mailing list