option to lock alpha while projection painting.
[blender.git] / source / blender / makesrna / intern / rna_brush.c
index 2d81a9d66c180291d4c7abe1c41cd92175914a4c..df08dc7b861e1c9f3994716799b633b44a7523b8 100644 (file)
@@ -279,6 +279,12 @@ static void rna_def_brush(BlenderRNA *brna)
        RNA_def_property_boolean_sdna(prop, NULL, "flag", BRUSH_FIXED_TEX);
        RNA_def_property_ui_text(prop, "Fixed Texture", "Keep texture origin in fixed position");
        RNA_def_property_update(prop, 0, "rna_Brush_update"); */
+       
+       /* only for projection paint, TODO, other paint modes */
+       prop= RNA_def_property(srna, "use_alpha", PROP_BOOLEAN, PROP_NONE);
+       RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", BRUSH_LOCK_ALPHA);
+       RNA_def_property_ui_text(prop, "Alpha", "When this is disabled, lock alpha while painting");
+       RNA_def_property_update(prop, 0, "rna_Brush_update");
 
        prop= RNA_def_property(srna, "curve", PROP_POINTER, PROP_NONE);
        RNA_def_property_flag(prop, PROP_NEVER_NULL);