From 33700b8b6508bf36b972fb68b575ff0c61a7f340 Mon Sep 17 00:00:00 2001 From: Stefan Gartner Date: Wed, 23 Jul 2003 00:24:42 +0000 Subject: fix bug #397: shift+o caused a crash if no object was active (tsk...) --- source/blender/src/space.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.3