diff options
author | Stefan Gartner <stefang@aon.at> | 2003-07-23 04:24:42 +0400 |
---|---|---|
committer | Stefan Gartner <stefang@aon.at> | 2003-07-23 04:24:42 +0400 |
commit | 33700b8b6508bf36b972fb68b575ff0c61a7f340 (patch) | |
tree | 1a0cd520e6c07171372bed639588035350b34379 | |
parent | 46cbeb28a0a375b59c0c6fa0be915c2dea7b8c87 (diff) |
fix bug #397:
shift+o caused a crash if no object was active (tsk...)
-rw-r--r-- | source/blender/src/space.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/space.c b/source/blender/src/space.c index 61c85cf8e66..e59555a02dd 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -1040,7 +1040,7 @@ void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt) allqueue(REDRAWHEADERS, 0); } else if(G.qual & LR_SHIFTKEY) { - if(ob->type == OB_MESH) { + if(ob && ob->type == OB_MESH) { flip_subdivison(ob, 0); } } |