[Bf-blender-cvs] [9dd64cb0883] master: Fix T67174: Weight paint gradient has empty redo panel

mano-wii noreply at git.blender.org
Fri Sep 20 04:52:43 CEST 2019


Commit: 9dd64cb08832fae36c1a3ac03127865cff09dc0e
Author: mano-wii
Date:   Fri Sep 20 12:48:37 2019 +1000
Branches: master
https://developer.blender.org/rB9dd64cb08832fae36c1a3ac03127865cff09dc0e

Fix T67174: Weight paint gradient has empty redo panel

===================================================================

M	source/blender/editors/sculpt_paint/paint_vertex.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c
index d7c419f1265..f994ae12146 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex.c
@@ -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;
       }



More information about the Bf-blender-cvs mailing list