diff options
author | Ton Roosendaal <ton@blender.org> | 2003-09-02 23:32:48 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-09-02 23:32:48 +0400 |
commit | bdaa5eaad676747f031f7eabebe739eb54c686b7 (patch) | |
tree | 091b08a0360d000fab718d3f54c9b8d9fedaa819 | |
parent | 5cc50a7b60e724beba7a76a0c3f894908db8c998 (diff) |
- fixed crash when you render a scene without emit Material and
new Radio render on.
crash happened after redraw in 3d window.
-rw-r--r-- | source/blender/radiosity/intern/source/radrender.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/radiosity/intern/source/radrender.c b/source/blender/radiosity/intern/source/radrender.c index 151b5cd40ff..aa7e0d589d1 100644 --- a/source/blender/radiosity/intern/source/radrender.c +++ b/source/blender/radiosity/intern/source/radrender.c @@ -520,16 +520,18 @@ void do_radio_render(void) set_radglobal(); /* init the RG struct */ initradfaces(); /* add radface structs to render faces */ - if(RG.totenergy==0.0) return; + if(RG.totenergy>0.0) { - initradiosity(); /* LUT's */ - inithemiwindows(); /* views, need RG.maxsize for clipping */ + initradiosity(); /* LUT's */ + inithemiwindows(); /* views, need RG.maxsize for clipping */ - progressiverad_rr(); /* main radio loop */ + progressiverad_rr(); /* main radio loop */ + + make_vertex_rad_values(); /* convert face energy to vertex ones */ + + } freeAllRad(); /* luts, hemis, sets vars at zero */ - - make_vertex_rad_values(); /* convert face energy to vertex ones */ } /* free call, after rendering, extern */ |