Blender Git Loki

Git Commits -> Revision 35b8dac

Revision 35b8dac by Willian Padovani Germano (master)
May 2, 2006, 02:42 (GMT)
As mentioned in the pydrivers commit, I had to change the order in
exit_usiblender() to finalize Python before main library data was freed.
This solved a somewhat specific sigsegv with pydrivers, but as Ken
Hughes found out (thanks!) caused one with scripts that called Blender.Exit().

Now running scripts (G.main->script) are freed in BPY_end_python()
itself (so before the rest of the library data is freed), before
Py_Finalize(). Works fine in all my tests so far.

The file script.c should become obsolete with this change (I added a
comment about it there). If all is indeed fine, it will be removed
later.

Commit Details:

Full Hash: 35b8dac2ca3bf8b2cdd51c8a7a071321f26753ba
SVN Revision: 7343
Parent Commit: 30f4f3e
Lines Changed: +22, -0

2 Modified Paths:

/source/blender/blenkernel/intern/script.c (+3, -0) (Diff)
/source/blender/python/BPY_interface.c (+19, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021