Added missing null check to convertmenu

Remported by alxarch.
If you remove the active object and then tried alt-c it would crash.

Kent
This commit is contained in:
Kent Mein
2008-08-29 14:19:34 +00:00
parent b77e130dd6
commit 4d888fb6c8

View File

@@ -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;