diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-12-16 06:42:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-12-16 06:42:41 +0300 |
commit | afb869fbe0ac591695d8faf5b98a782b3919ebc6 (patch) | |
tree | cccc70ec7d6849b56c8c8ef794fcd05d495937f7 /source | |
parent | 1fe2c51966d3023cb1f056bf2f3c1f6648ff40f7 (diff) |
Python API Merged from branch,
http://wiki.blender.org/index.php/Rewriting_the_2.4x_BPython_API
Some areas are not yet finished, the 2.4 api can remain "import Blender" and the bpy api "import bpy" gives access to the new api.
Todo
* event, link, etc are not assigned to Blender.*
* Scripts need to be tested and updated.
* Scripts cannot mix bpy and Blender modules anymore.
* Makefiles need to be updated (only works with scons now)
* Make the 2.4 api optional with IFDEF's
* Lots of testing and small fixes
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/library.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c index e81d3bac655..6e80a677a7a 100644 --- a/source/blender/blenkernel/intern/library.c +++ b/source/blender/blenkernel/intern/library.c @@ -116,6 +116,9 @@ #include "BPI_script.h" +/* for maintaining the python id hash when removeing data */ +#include "BPY_extern.h" + #define MAX_IDPUP 60 /* was 24 */ /* ************* general ************************ */ @@ -432,6 +435,9 @@ void free_libblock(ListBase *lb, void *idv) { ID *id= idv; + /* invalidate the data if its in the python pool */ + BPY_idhash_invalidate(id); + switch( GS(id->name) ) { /* GetShort from util.h */ case ID_SCE: free_scene((Scene *)id); |