Fix T76859: Cannot switch from editmode to texturepaint mode

Caused by 5159b8e1ea.
This commit is contained in:
Philipp Oeser
2020-05-19 13:17:26 +10:00
committed by Campbell Barton
parent ff7a30d928
commit 1afa97d547

View File

@@ -1130,9 +1130,6 @@ static bool texture_paint_toggle_poll(bContext *C)
if (!ob->data || ID_IS_LINKED(ob->data)) {
return 0;
}
if (CTX_data_edit_object(C)) {
return 0;
}
return 1;
}