diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2004-11-11 20:59:36 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2004-11-11 20:59:36 +0300 |
commit | ac866cad12bcae16b9da23c1bc93daeb45ecd527 (patch) | |
tree | b424c0a956e2a774944a0b6377138c50562f22e2 /source/blender/python/api2_2x/windowTheme.c | |
parent | 5f5445ddbe9fa80b57ec0628739a7fa0a8fb3e58 (diff) |
BPython:
- Stephan Gartner reported a crash with Scripts Help Browser script found while porting blender to Linux/x86_64, related to bugs in Blender.Window.Theme module:
two object types were being defined with wrong sizes. My mistake, when I wrote that code I copied/pasted those portions around and didn't check properly. Should be fixed now. Thanks Stephan.
Diffstat (limited to 'source/blender/python/api2_2x/windowTheme.c')
-rw-r--r-- | source/blender/python/api2_2x/windowTheme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/windowTheme.c b/source/blender/python/api2_2x/windowTheme.c index 0cb3c08cb10..4464fb83b96 100644 --- a/source/blender/python/api2_2x/windowTheme.c +++ b/source/blender/python/api2_2x/windowTheme.c @@ -101,7 +101,7 @@ static PyMethodDef BPy_ThemeSpace_methods[] = { PyTypeObject ThemeSpace_Type = { PyObject_HEAD_INIT( NULL ) 0, /* ob_size */ "Blender Space Theme", /* tp_name */ - sizeof( BPy_Theme ), /* tp_basicsize */ + sizeof( BPy_ThemeSpace ), /* tp_basicsize */ 0, /* tp_itemsize */ /* methods */ ( destructor ) ThemeSpace_dealloc, /* tp_dealloc */ @@ -277,7 +277,7 @@ static PyMethodDef BPy_ThemeUI_methods[] = { PyTypeObject ThemeUI_Type = { PyObject_HEAD_INIT( NULL ) 0, /* ob_size */ "Blender UI Theme", /* tp_name */ - sizeof( BPy_Theme ), /* tp_basicsize */ + sizeof( BPy_ThemeUI ), /* tp_basicsize */ 0, /* tp_itemsize */ /* methods */ ( destructor ) ThemeUI_dealloc, /* tp_dealloc */ |