[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35552] trunk/blender/source/blender/ python/intern/bpy_library.c: fix for building on some configurations.
Campbell Barton
ideasman42 at gmail.com
Tue Mar 15 02:48:01 CET 2011
Revision: 35552
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35552
Author: campbellbarton
Date: 2011-03-15 01:48:01 +0000 (Tue, 15 Mar 2011)
Log Message:
-----------
fix for building on some configurations.
Modified Paths:
--------------
trunk/blender/source/blender/python/intern/bpy_library.c
Modified: trunk/blender/source/blender/python/intern/bpy_library.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_library.c 2011-03-15 01:31:07 UTC (rev 35551)
+++ trunk/blender/source/blender/python/intern/bpy_library.c 2011-03-15 01:48:01 UTC (rev 35552)
@@ -102,7 +102,7 @@
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 @@
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;
More information about the Bf-blender-cvs
mailing list