Blender Git Loki

Git Commits -> Revision 25569b0

Revision 25569b0 by Campbell Barton (master)
May 26, 2009, 18:06 (GMT)
BGE PyAPI Bug reported by Pitel on blenderartist.
importing "pygame" failed when running the BGE for the second time.

Rather then clearing modules, backup and restore them (as its doing with sys.path)

This way the BGE will never remember any modules imported during game play (which can cause bugs/crashes), but it also wont break pythons state by possibly removing modules that are being used internally.

Commit Details:

Full Hash: 25569b0f7df6c29033834c281f246523b42bf16c
SVN Revision: 20434
Parent Commit: 7497772
Lines Changed: +38, -66

3 Modified Paths:

/source/blender/python/api2_2x/bpy_internal_import.c (+2, -1) (Diff)
/source/blender/python/api2_2x/bpy_internal_import.h (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_PythonInit.cpp (+35, -64) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021