diff options
author | Ken Hughes <khughes@pacific.edu> | 2006-01-25 05:18:20 +0300 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2006-01-25 05:18:20 +0300 |
commit | dc103bceabb770f440f5ef618d12bdf4fe436058 (patch) | |
tree | 8275d96e3ec24f1ddb3578117f991235040ad629 /source/blender/src | |
parent | 164a7929ce3a8a2acda64bf0df59f7369a5e615a (diff) |
==bugfix==
Access to G.vd without an active 3D window from sequences during Alt-A
playback caused segfault; check and return if it's NULL, and print an error
to stderr. (Someone should check why viewmove() is being called).
Diffstat (limited to 'source/blender/src')
-rw-r--r-- | source/blender/src/view.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/src/view.c b/source/blender/src/view.c index e13a23691f9..8d39a0c9eef 100644 --- a/source/blender/src/view.c +++ b/source/blender/src/view.c @@ -536,7 +536,14 @@ void viewmove(int mode) short mvalball[2], mval[2], mvalo[2]; short use_sel = 0; + /* 3D window may not be defined */ + if( !G.vd ) { + fprintf( stderr, "G.vd == NULL in viewmove()\n" ); + return; + } + /* sometimes this routine is called from headerbuttons */ + areawinset(curarea->win); initgrabz(-G.vd->ofs[0], -G.vd->ofs[1], -G.vd->ofs[2]); |