Fix for edit modes (sculpt, weight paint) menus not showing in header
But introduced on 2b0f02057f
This commit is contained in:
parent
18a96e39ea
commit
24168f72c3
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue