Fix T67174: Weight paint gradient has empty redo panel

This commit is contained in:
Germano Cavalcante 2019-09-20 12:48:37 +10:00 committed by Campbell Barton
parent fd51d5d412
commit 9dd64cb088
Notes: blender-bot 2023-02-14 01:43:46 +01:00
Referenced by issue #70093, Can't open Blender
Referenced by issue #67174, Weight paint gradient shows emty undo popup
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ static bool weight_paint_poll_ex(bContext *C, bool check_tool)
(BKE_paint_brush(&CTX_data_tool_settings(C)->wpaint->paint) != NULL) &&
(sa = CTX_wm_area(C)) && (sa->spacetype == SPACE_VIEW3D)) {
ARegion *ar = CTX_wm_region(C);
if (ar->regiontype == RGN_TYPE_WINDOW) {
if (ELEM(ar->regiontype, RGN_TYPE_WINDOW, RGN_TYPE_HUD)) {
if (!check_tool || WM_toolsystem_active_tool_is_brush(C)) {
return 1;
}