fix for using an un-initialized pointer & quiet compiler wanring on raytrace test.
This commit is contained in:
@@ -450,6 +450,7 @@ int RE_rayobject_intersect(RayObject *r, Isect *i)
|
||||
return r->api->raycast( r, i );
|
||||
}
|
||||
else assert(0);
|
||||
return 0; /* wont reach this, quiet compilers */
|
||||
}
|
||||
|
||||
void RE_rayobject_add(RayObject *r, RayObject *o)
|
||||
|
||||
@@ -2627,7 +2627,7 @@ static void init_render_dm(DerivedMesh *dm, Render *re, ObjectRen *obr,
|
||||
int a, a1, end, totvert, vertofs;
|
||||
VertRen *ver;
|
||||
VlakRen *vlr;
|
||||
Curve *cu;
|
||||
Curve *cu= NULL;
|
||||
MVert *mvert = NULL;
|
||||
MFace *mface;
|
||||
Material *ma;
|
||||
|
||||
Reference in New Issue
Block a user