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/editobject.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/editobject.c')
-rw-r--r-- | source/blender/src/editobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index f6bb8eac466..c0a2bb9ff50 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -1590,7 +1590,7 @@ void docentre(int centremode) int a, total= 0; MVert *mvert; - if(G.scene->id.lib) return; + if(G.scene->id.lib || G.vd==NULL) return; cent[0]= cent[1]= cent[2]= 0.0; @@ -4820,7 +4820,7 @@ void auto_timeoffs(void) int tot=0, a; short offset=25; - if(BASACT==0) return; + if(BASACT==0 || G.vd==NULL) return; if(button(&offset, 0, 1000,"Total time")==0) return; /* make array of all bases, xco yco (screen) */ |