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:
authorCampbell Barton <ideasman42@gmail.com>2006-06-25 17:58:42 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-06-25 17:58:42 +0400
commita966a72cd6afda7782170476d30ebcc7bcd17859 (patch)
tree1b5d5dd4ede3915e15ca4774203fb42c4b719beb /source/blender/radiosity
parent223ec5074d3a71714121449d760e71721b905f21 (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.c5
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;