Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-12-14 18:45:57 +0300
committerAntonioya <blendergit@gmail.com>2018-12-14 18:52:12 +0300
commit780f0f646da1aac01dc3164fd7d493426aca9e19 (patch)
tree453cb60e732399e22279e8eee7a1c9725416c427 /source/blender/makesrna/intern/rna_brush.c
parenta1c8595b090254c1270bb66118304186a3add913 (diff)
GP: Rename CTX and OB modes
Part of T59335.
Diffstat (limited to 'source/blender/makesrna/intern/rna_brush.c')
-rw-r--r--source/blender/makesrna/intern/rna_brush.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c
index d9b9677bbc6..445ceb6ddb5 100644
--- a/source/blender/makesrna/intern/rna_brush.c
+++ b/source/blender/makesrna/intern/rna_brush.c
@@ -675,7 +675,7 @@ static void rna_BrushGpencilSettings_default_eraser_update(Main *bmain, Scene *s
/* disable default eraser in all brushes */
for (Brush *brush = bmain->brush.first; brush; brush = brush->id.next) {
if ((brush != brush_cur) &&
- (brush->ob_mode == OB_MODE_GPENCIL_PAINT) &&
+ (brush->ob_mode == OB_MODE_PAINT_GPENCIL) &&
(brush->gpencil_tool == GPAINT_TOOL_ERASE))
{
brush->gpencil_settings->flag &= ~GP_BRUSH_DEFAULT_ERASER;
@@ -1820,7 +1820,7 @@ static void rna_def_brush(BlenderRNA *brna)
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_boolean_sdna(prop, NULL, "ob_mode", OB_MODE_PAINT_GPENCIL);
RNA_def_property_ui_text(prop, "Use Sculpt", "Use this brush in grease pencil drawing mode");
/* texture */