diff options
author | Kent Mein <mein@cs.umn.edu> | 2008-08-29 18:19:34 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2008-08-29 18:19:34 +0400 |
commit | 4d888fb6c8477704c1e502cb4b8b838abd8f02a3 (patch) | |
tree | 20c6add8fc95ab2e0ca2e46c21629d7110c82bd8 | |
parent | b77e130dd65b577f1aca9290e8313e0f1a941fdf (diff) |
Added missing null check to convertmenu
Remported by alxarch.
If you remove the active object and then tried alt-c it would crash.
Kent
-rw-r--r-- | source/blender/src/editobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index dded38a00e8..2094074e3f3 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -2828,6 +2828,7 @@ void convertmenu(void) if(G.scene->id.lib) return; obact= OBACT; + if (obact == NULL) return; if(!obact->flag & SELECT) return; if(G.obedit) return; |