diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-08-17 11:14:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-08-17 11:14:36 +0400 |
commit | 4d884c0fbfd8c7588f6e082adc8925a8df44be24 (patch) | |
tree | 3700d4984862d158d448b8b8254ffa9ca89a2f63 /source/blender/python/api2_2x/rgbTuple.c | |
parent | 5a9d5a8ce7157f97444bf6621f609804d7dc3f62 (diff) |
this broke on some compilers
Diffstat (limited to 'source/blender/python/api2_2x/rgbTuple.c')
-rw-r--r-- | source/blender/python/api2_2x/rgbTuple.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/rgbTuple.c b/source/blender/python/api2_2x/rgbTuple.c index a49f8dd9d9e..db92e93fdd6 100644 --- a/source/blender/python/api2_2x/rgbTuple.c +++ b/source/blender/python/api2_2x/rgbTuple.c @@ -86,7 +86,7 @@ PyTypeObject rgbTuple_Type = { PyObject_HEAD_INIT( NULL ) 0, /* ob_size */ "rgbTuple", /* tp_name */ - sizeof( BPy_rgbTuple ), /* tp_basicsize */ + NULL, /* tp_basicsize */ 0, /* tp_itemsize */ /* methods */ ( destructor )PyObject_Del, /* tp_dealloc */ @@ -114,7 +114,7 @@ PyObject *rgbTuple_New( float *rgb[3] ) BPy_rgbTuple *rgbTuple; rgbTuple_Type.ob_type = &PyType_Type; - + rgbTuple_Type.tp_dealloc = (destructor)&PyObject_Del; rgbTuple = ( BPy_rgbTuple * ) PyObject_NEW( BPy_rgbTuple, &rgbTuple_Type ); |