diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-06-25 17:58:42 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-06-25 17:58:42 +0400 |
commit | a966a72cd6afda7782170476d30ebcc7bcd17859 (patch) | |
tree | 1b5d5dd4ede3915e15ca4774203fb42c4b719beb /source/blender/radiosity | |
parent | 223ec5074d3a71714121449d760e71721b905f21 (diff) |
Many buttons assumed G.vd existed. found all? buttons that cheashed Blender and made them test for G.vd
Diffstat (limited to 'source/blender/radiosity')
-rw-r--r-- | source/blender/radiosity/intern/source/radpreprocess.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/radiosity/intern/source/radpreprocess.c b/source/blender/radiosity/intern/source/radpreprocess.c index cf7385edd0c..38a28db2a04 100644 --- a/source/blender/radiosity/intern/source/radpreprocess.c +++ b/source/blender/radiosity/intern/source/radpreprocess.c @@ -313,6 +313,11 @@ void rad_collect_meshes() float *vd, *v1, *v2, *v3, *v4 = NULL; int a, b, offs, index; + if (G.vd==NULL) { + printf("Error, trying to collect radiosity meshes with no 3d view\n"); + return; + } + if(G.obedit) { if (!during_script()) error("Unable to perform function in EditMode"); return; |