Tsk, noob mistake in intrr's radiosity commit (not collecting invisible faces).

Didn't check pointer, so it crashed if the mesh didn't have TFaces.
This commit is contained in:
Martin Poirier 2005-07-21 05:43:49 +00:00
parent 15f6ce46b1
commit 676b9013ea
1 changed files with 2 additions and 2 deletions

View File

@ -421,9 +421,9 @@ void rad_collect_meshes()
for(a=0; a<me->totface; a++, mface++) {
if(mface->v3) {
TFace *tface = me->tface ? &((TFace*)me->tface)[a] : (TFace*)NULL;
TFace *tface = me->tface ? &((TFace*)me->tface)[a] : NULL;
if ((tface->mode & TF_INVISIBLE)==0) {
if (tface == NULL || (tface->mode & TF_INVISIBLE)==0) {
rp= callocPatch();
BLI_addtail(&(RG.patchbase), rp);