diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-04-07 19:20:12 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-04-07 19:20:12 +0400 |
commit | 04823258056d7092215aaf75fb1b54741b0f4e4e (patch) | |
tree | ab410223a4f59f171204573717307bf610fae833 /source/blender/python | |
parent | 59190778a8606079644b91992a3c90b7723e0adf (diff) |
RNA: fix for compile error on msvc, and a warning fix.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index b30616ba035..e0202076c4f 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -628,7 +628,7 @@ static int pyrna_prop_assign_subscript( BPy_PropertyRNA * self, PyObject *key, P static PyMappingMethods pyrna_prop_as_mapping = { - ( inquiry ) pyrna_prop_len, /* mp_length */ + ( lenfunc ) pyrna_prop_len, /* mp_length */ ( binaryfunc ) pyrna_prop_subscript, /* mp_subscript */ ( objobjargproc ) pyrna_prop_assign_subscript, /* mp_ass_subscript */ }; @@ -1819,11 +1819,13 @@ static PyObject *pyrna_basetype_dir(BPy_BaseTypeRNA *self) return list; } -PyTypeObject pyrna_basetype_Type = {}; +PyTypeObject pyrna_basetype_Type; PyObject *BPY_rna_types(void) { BPy_BaseTypeRNA *self; + + memset(&pyrna_basetype_Type, 0, sizeof(pyrna_basetype_Type)); pyrna_basetype_Type.tp_name = "RNA_Types"; pyrna_basetype_Type.tp_basicsize = sizeof( BPy_BaseTypeRNA ); pyrna_basetype_Type.tp_getattro = ( getattrofunc )pyrna_basetype_getattro; |