[Bf-committers] CVS commit: blender/source/blender/python/api2_2x
Mesh.c Mesh.h blender/source/blender/python/api2_2x/doc Mesh.py
LECOCQ Guillaume
lecocqguillaume at gmail.com
Tue Oct 11 13:36:21 CEST 2005
Hello, I have a problem to compile
blender/source/blender/python/api2_2x Mesh.c on MSVC free toolkit +
scons.
First error :
source\blender\python\api2_2x\Mesh.c(945) : error C2275: 'MVert' :
illegal use of this type as an expression
static PyObject *PVert_CreatePyObject( MVert *vert )
{
BPy_MVert *obj = PyObject_NEW( BPy_MVert, &PVert_Type );
if( !obj )
return EXPP_ReturnPyObjError( PyExc_RuntimeError,
"PyObject_New() failed" );
MVert *newvert = (MVert *)MEM_callocN( sizeof( MVert ), "MVert" );
Change by:
static PyObject *PVert_CreatePyObject( MVert *vert )
{
BPy_MVert *obj = PyObject_NEW( BPy_MVert, &PVert_Type );
MVert *newvert;
if( !obj )
return EXPP_ReturnPyObjError( PyExc_RuntimeError,
"PyObject_New() failed" );
newvert = (MVert *)MEM_callocN( sizeof( MVert ), "MVert" );
Second error:
source\blender\python\api2_2x\Mesh.c(1271) : error C2036: 'void *' :
unknown size
I don't know how I can correct the error.
Third error:
source\blender\python\api2_2x\Mesh.c(2983) : error C2275: 'BPy_MVert'
: illegal use of this type as an expression
I move the definition of the variable just under the variable unsigned
char order[4]={0,1,2,3};
BPy_MVert *e;
MFace tmpface;
More information about the Bf-committers
mailing list