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/src/meshtools.c | |
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/src/meshtools.c')
-rw-r--r-- | source/blender/src/meshtools.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/meshtools.c b/source/blender/src/meshtools.c index 26696b9bda2..4dd3825c134 100644 --- a/source/blender/src/meshtools.c +++ b/source/blender/src/meshtools.c @@ -450,7 +450,7 @@ void fasterdraw(void) Mesh *me; int toggle, a; - if(G.obedit) return; + if(G.obedit || G.vd==NULL) return; /* reset flags */ me= G.main->mesh.first; @@ -494,7 +494,7 @@ void slowerdraw(void) /* reset fasterdraw */ Mesh *me; int a; - if(G.obedit) return; + if(G.obedit || G.vd==NULL) return; base= FIRSTBASE; while(base) { |