Fix for edit modes (sculpt, weight paint) menus not showing in header

But introduced on 2b0f02057f
This commit is contained in:
Dalai Felinto 2017-05-12 15:46:00 +02:00
parent 18a96e39ea
commit 24168f72c3
1 changed files with 1 additions and 1 deletions

View File

@ -992,7 +992,7 @@ int CTX_data_mode_enum_ex(const Object *obedit, const Object *ob)
int CTX_data_mode_enum(const bContext *C)
{
Object *obedit = CTX_data_edit_object(C);
Object *obact = obedit ? CTX_data_active_object(C) : NULL;
Object *obact = obedit ? NULL : CTX_data_active_object(C);
return CTX_data_mode_enum_ex(obedit, obact);
}