diff options
author | Matt Ebb <matt@mke3.net> | 2004-08-05 04:03:53 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2004-08-05 04:03:53 +0400 |
commit | 0219276da716f79df2480b584600026f533ad8e6 (patch) | |
tree | 5b3dbb0add5f1f29a316cb252b4e72fc07d947cc | |
parent | aae60395830c04b36fee5dfd89182d5e61554745 (diff) |
Fix for crash in select_parent() - check for OBACT
Thanks to Campbell for the last minute report!
-rw-r--r-- | source/blender/src/space.c | 4 |
1 files 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; |