Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2005-07-21 09:43:49 +0400
committerMartin Poirier <theeth@yahoo.com>2005-07-21 09:43:49 +0400
commit676b9013ea5c71a1c0b3ec023f70791e2227991f (patch)
treed00a8e7de65fbcb6cd88a99a528b674fa98e7014 /source/blender/radiosity
parent15f6ce46b152de3068f4203448ea3550fe732487 (diff)
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.
Diffstat (limited to 'source/blender/radiosity')
-rw-r--r--source/blender/radiosity/intern/source/radpreprocess.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/radiosity/intern/source/radpreprocess.c b/source/blender/radiosity/intern/source/radpreprocess.c
index 0c22717e696..f343db2cee8 100644
--- a/source/blender/radiosity/intern/source/radpreprocess.c
+++ b/source/blender/radiosity/intern/source/radpreprocess.c
@@ -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);