Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-15 04:48:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-15 04:48:01 +0300
commitfe529d43fec0cd225d0cf5c90f8099adadfc6710 (patch)
tree13b64ab78ca2a70f34584467b8bb52a3c654e4bc /source/blender/python/intern
parent3d0a7fdccb9859e77758411aea7b043362b63b04 (diff)
fix for building on some configurations.
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r--source/blender/python/intern/bpy_library.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_library.c b/source/blender/python/intern/bpy_library.c
index 9bd5cded038..d216c449250 100644
--- a/source/blender/python/intern/bpy_library.c
+++ b/source/blender/python/intern/bpy_library.c
@@ -102,7 +102,7 @@ PyTypeObject bpy_lib_Type = {
NULL, /* reprfunc tp_str; */
/* will only use these if this is a subtype of a py class */
- PyObject_GenericGetAttr, /* getattrofunc tp_getattro; */
+ NULL /*PyObject_GenericGetAttr is assigned later */, /* getattrofunc tp_getattro; */
NULL, /* setattrofunc tp_setattro; */
/* Functions to access object as input/output buffer */
@@ -357,6 +357,9 @@ int bpy_lib_init(PyObject *mod_par)
static PyMethodDef load_meth= {"load", (PyCFunction)bpy_lib_load, METH_STATIC|METH_VARARGS|METH_KEYWORDS, bpy_lib_load_doc};
PyModule_AddObject(mod_par, "_library_load", PyCFunction_New(&load_meth, NULL));
+ /* some compilers dont like accessing this directly, delay assignment */
+ bpy_lib_Type.tp_getattro= PyObject_GenericGetAttr;
+
if(PyType_Ready(&bpy_lib_Type) < 0)
return -1;