From 1afa97d5479dbb5cea8a85c85ad1f1250c80ddf0 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Tue, 19 May 2020 13:17:26 +1000 Subject: Fix T76859: Cannot switch from editmode to texturepaint mode Caused by 5159b8e1eadb. --- source/blender/editors/sculpt_paint/paint_image.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c index e227db1c644..fd5018f76ff 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -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; } -- cgit v1.2.3