[Bf-blender-cvs] [03c4d48cdad] greasepencil-object: Fix problem with Brush Datablock icons
Antonio Vazquez
noreply at git.blender.org
Mon Mar 12 09:59:59 CET 2018
Commit: 03c4d48cdad4b083a514b7df45736dafb55dc791
Author: Antonio Vazquez
Date: Sun Mar 11 20:04:11 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB03c4d48cdad4b083a514b7df45736dafb55dc791
Fix problem with Brush Datablock icons
The icons of grease pencil brushes did not work because the poll return false.
===================================================================
M source/blender/makesrna/intern/rna_sculpt_paint.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_sculpt_paint.c b/source/blender/makesrna/intern/rna_sculpt_paint.c
index 0da6a3d99d6..7d2fb767c70 100644
--- a/source/blender/makesrna/intern/rna_sculpt_paint.c
+++ b/source/blender/makesrna/intern/rna_sculpt_paint.c
@@ -267,6 +267,8 @@ static int rna_Brush_mode_poll(PointerRNA *ptr, PointerRNA value)
mode = OB_MODE_VERTEX_PAINT;
else if (ptr->data == ts->wpaint)
mode = OB_MODE_WEIGHT_PAINT;
+ else if (ptr->data == ts->gp_paint)
+ mode = OB_MODE_GPENCIL_PAINT;
return brush->ob_mode & mode;
}
More information about the Bf-blender-cvs
mailing list