forked from bartvdbraak/blender
Fix compiler warnings in particle.c and editface.c.
* unitialised/unused vars
This commit is contained in:
parent
b9c66e88ea
commit
2d96d1189f
@ -565,7 +565,6 @@ PyObject *M_ParticleSys_Get( PyObject * self, PyObject * args )
|
|||||||
}else { /* no arg - return a list of bpy objs all P. systems */
|
}else { /* no arg - return a list of bpy objs all P. systems */
|
||||||
|
|
||||||
PyObject *pylist;
|
PyObject *pylist;
|
||||||
PyObject *pyobj;
|
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
|
||||||
pylist = PyList_New( BLI_countlist( &G.main->particle ));
|
pylist = PyList_New( BLI_countlist( &G.main->particle ));
|
||||||
@ -804,7 +803,7 @@ static PyObject *Part_GetLoc( BPy_PartSys * self, PyObject * args ){
|
|||||||
ParticleSystem *psys = 0L;
|
ParticleSystem *psys = 0L;
|
||||||
Object *ob = 0L;
|
Object *ob = 0L;
|
||||||
PyObject *partlist,*seglist;
|
PyObject *partlist,*seglist;
|
||||||
PyObject* loc;
|
PyObject* loc = 0L;
|
||||||
ParticleCacheKey **cache,*path;
|
ParticleCacheKey **cache,*path;
|
||||||
ParticleKey state;
|
ParticleKey state;
|
||||||
float cfra=bsystem_time(ob,(float)CFRA,0.0);
|
float cfra=bsystem_time(ob,(float)CFRA,0.0);
|
||||||
@ -952,7 +951,7 @@ static PyObject *Part_GetLoc( BPy_PartSys * self, PyObject * args ){
|
|||||||
static PyObject *Part_GetRot( BPy_PartSys * self, PyObject * args ){
|
static PyObject *Part_GetRot( BPy_PartSys * self, PyObject * args ){
|
||||||
ParticleSystem *psys = 0L;
|
ParticleSystem *psys = 0L;
|
||||||
Object *ob = 0L;
|
Object *ob = 0L;
|
||||||
PyObject *partlist;
|
PyObject *partlist = 0L;
|
||||||
PyObject* loc = 0L;
|
PyObject* loc = 0L;
|
||||||
ParticleKey state;
|
ParticleKey state;
|
||||||
int i;
|
int i;
|
||||||
|
@ -151,6 +151,7 @@ int facesel_face_pick(Mesh *me, short *mval, unsigned int *index, short rect)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0 // not used
|
||||||
/* returns 0 if not found, otherwise 1 */
|
/* returns 0 if not found, otherwise 1 */
|
||||||
static int facesel_edge_pick(Mesh *me, short *mval, unsigned int *index)
|
static int facesel_edge_pick(Mesh *me, short *mval, unsigned int *index)
|
||||||
{
|
{
|
||||||
@ -175,6 +176,7 @@ static int facesel_edge_pick(Mesh *me, short *mval, unsigned int *index)
|
|||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* only operates on the edit object - this is all thats needed at the moment */
|
/* only operates on the edit object - this is all thats needed at the moment */
|
||||||
static void uv_calc_center_vector(float *result, Object *ob, EditMesh *em)
|
static void uv_calc_center_vector(float *result, Object *ob, EditMesh *em)
|
||||||
@ -958,7 +960,6 @@ int edgetag_shortest_path(EditEdge *source, EditEdge *target)
|
|||||||
EditVert *ev;
|
EditVert *ev;
|
||||||
|
|
||||||
Heap *heap;
|
Heap *heap;
|
||||||
EdgeHash *ehash;
|
|
||||||
float *cost;
|
float *cost;
|
||||||
int a, totvert=0, totedge=0, *nedges, *edges, *prevedge, mednum = -1, nedgeswap = 0;
|
int a, totvert=0, totedge=0, *nedges, *edges, *prevedge, mednum = -1, nedgeswap = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user