[Bf-blender-cvs] [ae6036e3712] greasepencil-object: Add property to check brush type

Antonio Vazquez noreply at git.blender.org
Tue Jul 10 11:11:14 CEST 2018


Commit: ae6036e3712449c439733595fcb0273f3d864328
Author: Antonio Vazquez
Date:   Tue Jul 10 11:11:04 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rBae6036e3712449c439733595fcb0273f3d864328

Add property to check brush type

This is required by Tool system.

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

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 186c858401d..c5dcbb76a63 100644
--- a/source/blender/makesrna/intern/rna_brush.c
+++ b/source/blender/makesrna/intern/rna_brush.c
@@ -1752,6 +1752,10 @@ static void rna_def_brush(BlenderRNA *brna)
 	RNA_def_property_boolean_sdna(prop, NULL, "ob_mode", OB_MODE_TEXTURE_PAINT);
 	RNA_def_property_ui_text(prop, "Use Texture", "Use this brush in texture paint mode");
 
+	prop = RNA_def_property(srna, "use_paint_grease_pencil", PROP_BOOLEAN, PROP_NONE);
+	RNA_def_property_boolean_sdna(prop, NULL, "ob_mode", OB_MODE_GPENCIL_PAINT);
+	RNA_def_property_ui_text(prop, "Use Sculpt", "Use this brush in grease pencil drawing mode");
+
 	/* texture */
 	prop = RNA_def_property(srna, "texture_slot", PROP_POINTER, PROP_NONE);
 	RNA_def_property_struct_type(prop, "BrushTextureSlot");



More information about the Bf-blender-cvs mailing list