Skip to content
Snippets Groups Projects
Commit ac866cad authored by Willian Padovani Germano's avatar Willian Padovani Germano
Browse files

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.
parent 5f5445dd
Branches
Tags
No related merge requests found
...@@ -101,7 +101,7 @@ static PyMethodDef BPy_ThemeSpace_methods[] = { ...@@ -101,7 +101,7 @@ static PyMethodDef BPy_ThemeSpace_methods[] = {
PyTypeObject ThemeSpace_Type = { PyTypeObject ThemeSpace_Type = {
PyObject_HEAD_INIT( NULL ) 0, /* ob_size */ PyObject_HEAD_INIT( NULL ) 0, /* ob_size */
"Blender Space Theme", /* tp_name */ "Blender Space Theme", /* tp_name */
sizeof( BPy_Theme ), /* tp_basicsize */ sizeof( BPy_ThemeSpace ), /* tp_basicsize */
0, /* tp_itemsize */ 0, /* tp_itemsize */
/* methods */ /* methods */
( destructor ) ThemeSpace_dealloc, /* tp_dealloc */ ( destructor ) ThemeSpace_dealloc, /* tp_dealloc */
...@@ -277,7 +277,7 @@ static PyMethodDef BPy_ThemeUI_methods[] = { ...@@ -277,7 +277,7 @@ static PyMethodDef BPy_ThemeUI_methods[] = {
PyTypeObject ThemeUI_Type = { PyTypeObject ThemeUI_Type = {
PyObject_HEAD_INIT( NULL ) 0, /* ob_size */ PyObject_HEAD_INIT( NULL ) 0, /* ob_size */
"Blender UI Theme", /* tp_name */ "Blender UI Theme", /* tp_name */
sizeof( BPy_Theme ), /* tp_basicsize */ sizeof( BPy_ThemeUI ), /* tp_basicsize */
0, /* tp_itemsize */ 0, /* tp_itemsize */
/* methods */ /* methods */
( destructor ) ThemeUI_dealloc, /* tp_dealloc */ ( destructor ) ThemeUI_dealloc, /* tp_dealloc */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment