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:
parent
15f6ce46b1
commit
676b9013ea
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue