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