Blender Git Loki

Git Commits -> Revision 6238226

Revision 6238226 by Campbell Barton (master)
March 1, 2011, 14:53 (GMT)
Py/RNA Stability: don't allow python to reference freed ID's and crash.
Second method for not having python crash blender on invalid access (ifdef'd out ATM, so no functional change).

This uses a weakref list per ID, and invalidates all members of that list when the ID is freed.
the list is not stores in the ID pointer but using a hash table since storing python in DNA data is not acceptable.

This is more correct then the previous method but shows down execution of scripts significantly since its always adding and removing from lists when data is created and freed.

Commit Details:

Full Hash: 623822626a954fe9f83f18af4b3699c6e80b5313
SVN Revision: 35282
Parent Commit: f0f639f
Lines Changed: +163, -6

2 Modified Paths:

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