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:
authorTon Roosendaal <ton@blender.org>2006-06-18 23:11:52 +0400
committerTon Roosendaal <ton@blender.org>2006-06-18 23:11:52 +0400
commitdcbcc125824c6debc082b7ba36082602bc63f9d3 (patch)
treea6b8dea8d8806e29cb3119ac13619951ac283495 /source/blender/radiosity
parent2ca99a5e09a51706b2f9b5e8903394403f20ac33 (diff)
NULL check needed for RE_vertren_get_rad() when going over radio results...
Thanks Auralis for finding it!
Diffstat (limited to 'source/blender/radiosity')
-rw-r--r--source/blender/radiosity/intern/source/radrender.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/radiosity/intern/source/radrender.c b/source/blender/radiosity/intern/source/radrender.c
index ffb896a8c49..2ea9a8e1755 100644
--- a/source/blender/radiosity/intern/source/radrender.c
+++ b/source/blender/radiosity/intern/source/radrender.c
@@ -457,8 +457,9 @@ static void make_vertex_rad_values(Render *re)
/* make vertex colors */
for(a=0; a<re->totvert; a++) {
if((a & 255)==0) v1= RE_findOrAddVert(re, a); else v1++;
+
col= RE_vertren_get_rad(re, v1, 0);
- if(col[3]>0.0) {
+ if(col && col[3]>0.0) {
col[0]/= col[3];
col[1]/= col[3];
col[2]/= col[3];