From 0219276da716f79df2480b584600026f533ad8e6 Mon Sep 17 00:00:00 2001 From: Matt Ebb Date: Thu, 5 Aug 2004 00:03:53 +0000 Subject: [PATCH] Fix for crash in select_parent() - check for OBACT Thanks to Campbell for the last minute report! --- source/blender/src/space.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/src/space.c b/source/blender/src/space.c index 9eb559f6579..3d8350e23e8 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -536,8 +536,8 @@ void select_children(Object *ob, int recursive) void select_parent(void) /* Makes parent active and de-selected OBACT */ { Base *base, *startbase, *basact=NULL, *oldbasact; - - if (!(OBACT->parent)) return; + + if (!(OBACT) || !(OBACT->parent)) return; BASACT->flag &= (~SELECT); BASACT->object->flag &= (~SELECT); startbase= FIRSTBASE;