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/src/buttons_object.c
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/src/buttons_object.c')
-rw-r--r--source/blender/src/buttons_object.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/buttons_object.c b/source/blender/src/buttons_object.c
index be7de2a02f3..8d61e751d35 100644
--- a/source/blender/src/buttons_object.c
+++ b/source/blender/src/buttons_object.c
@@ -1924,6 +1924,9 @@ void do_effects_panels(unsigned short event)
allqueue(REDRAWVIEW3D, 0);
break;
case B_RECALCAL:
+ if (G.vd==NULL)
+ break;
+
base= FIRSTBASE;
while(base) {
if(base->lay & G.vd->lay) {