rewrote python IDProperty metaclass in C, this was a quick hack to get it working.

The reason this didnt work is all sibclasses of pythons type() or PyType_Type in C, have to have their size set to sizeof(PyHeapTypeObject) rather then sizeof(PyTypeObject) as you might expect.
This is strange since its not a heap-class (defined in pythons runtime), but a static C type, so Im not sure about this, and cant find any documentation but it seems to work ok.
This commit is contained in:
2010-09-10 14:54:50 +00:00
parent fc6d27313b
commit 5559a0d52e
4 changed files with 65 additions and 106 deletions

View File

@@ -30,6 +30,7 @@
#include "RNA_types.h"
#include "BKE_idprop.h"
extern PyTypeObject pyrna_struct_meta_idprop_Type;
extern PyTypeObject pyrna_struct_Type;
extern PyTypeObject pyrna_prop_Type;
extern PyTypeObject pyrna_prop_array_Type;