fixed mistakes and warnings in previous commit.

This commit is contained in:
2006-09-24 09:21:18 +00:00
parent f6a6ad5688
commit 7f7f35d1ca
4 changed files with 6 additions and 6 deletions

View File

@@ -707,7 +707,7 @@ static PyObject *GroupObSeq_getIter( BPy_GroupObSeq * self )
self->iter = self->bpygroup->group->gobject.first;
return EXPP_incr_ret ( (PyObject *) self );
} else {
return GroupObSeq_CreatePyObject(self->bpygroup->group, self->bpygroup->group->gobject.first);
return GroupObSeq_CreatePyObject(self->bpygroup, self->bpygroup->group->gobject.first);
}
}

View File

@@ -727,7 +727,7 @@ static PyObject *Metaball_copy( BPy_Metaball * self )
}
static PyObject *MetaElemSeq_CreatePyObject(PyObject *self, MetaElem *iter)
static PyObject *MetaElemSeq_CreatePyObject(BPy_Metaball *self, MetaElem *iter)
{
BPy_MetaElemSeq *seq = PyObject_NEW( BPy_MetaElemSeq, &MetaElemSeq_Type);
seq->bpymetaball = self; Py_INCREF(self);

View File

@@ -1123,7 +1123,7 @@ static PyObject *SceneObSeq_CreatePyObject( BPy_Scene *self, Base *iter, int mod
static int SceneObSeq_len( BPy_SceneObSeq * self )
{
Scene *scene= self->bpyscene->scene;
SCENE_DEL_CHECK_PY(self->bpyscene);
SCENE_DEL_CHECK_INT(self->bpyscene);
if (self->mode == 0) /* all obejcts */
return BLI_countlist( &( scene->base ) );

View File

@@ -43,13 +43,13 @@ extern PyTypeObject SceneObSeq_Type;
#define BPy_Scene_Check(v) \
((v)->ob_type == &Scene_Type)
//---------------------------Python BPy_Scene structure definition----------
/*---------------------------Python BPy_Scene structure definition----------*/
typedef struct {
PyObject_HEAD
Scene * scene;
} BPy_Scene;
//---------------------------Python BPy_Scene visible prototypes-----------
// Python Scene_Type helper functions needed by Blender (the Init function) and Object modules.
/*---------------------------Python BPy_Scene visible prototypes-----------*/
/* Python Scene_Type helper functions needed by Blender (the Init function) and Object modules. */
/* Scene object sequence, iterate on the scene object listbase*/