[Bf-blender-cvs] [fa12428ede9] master: Fix T69729: Missing Direction buttons in Draw Sharp brush

Pablo Dobarro noreply at git.blender.org
Tue Sep 10 22:03:39 CEST 2019


Commit: fa12428ede9acc51b3ca1f2fbefb4cfb32d4d089
Author: Pablo Dobarro
Date:   Tue Sep 10 21:27:55 2019 +0200
Branches: master
https://developer.blender.org/rBfa12428ede9acc51b3ca1f2fbefb4cfb32d4d089

Fix T69729: Missing Direction buttons in Draw Sharp brush

Reviewed By: brecht

Maniphest Tasks: T69729

Differential Revision: https://developer.blender.org/D5746

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

M	source/blender/makesrna/intern/rna_brush.c

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

diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c
index a7e68ec29c2..c3bdbfdd893 100644
--- a/source/blender/makesrna/intern/rna_brush.c
+++ b/source/blender/makesrna/intern/rna_brush.c
@@ -385,6 +385,7 @@ static bool rna_BrushCapabilitiesSculpt_has_direction_get(PointerRNA *ptr)
   Brush *br = (Brush *)ptr->data;
   return !ELEM(br->sculpt_tool,
                SCULPT_TOOL_DRAW,
+               SCULPT_TOOL_DRAW_SHARP,
                SCULPT_TOOL_CLAY,
                SCULPT_TOOL_CLAY_STRIPS,
                SCULPT_TOOL_LAYER,
@@ -648,6 +649,7 @@ static const EnumPropertyItem *rna_Brush_direction_itemf(bContext *C,
     case PAINT_MODE_SCULPT:
       switch (me->sculpt_tool) {
         case SCULPT_TOOL_DRAW:
+        case SCULPT_TOOL_DRAW_SHARP:
         case SCULPT_TOOL_CREASE:
         case SCULPT_TOOL_BLOB:
         case SCULPT_TOOL_LAYER:



More information about the Bf-blender-cvs mailing list