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:
authorBastien Montagne <bastien@blender.org>2020-12-02 11:29:37 +0300
committerBastien Montagne <bastien@blender.org>2020-12-02 11:29:37 +0300
commit2afc508eb4bd1fb325ce726eed62ed1d82b25833 (patch)
treefacd50b4b346fb428a77699098f64d901fdb46f1
parentda22ec125457f0e605de576c90ced15229facca8 (diff)
Fix T83090: Multiple warnings accessing brush enum data.
We already have generic enums for empty and default 'none' value.
-rw-r--r--source/blender/makesrna/intern/rna_brush.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c
index 736edc61d74..1e5309e5869 100644
--- a/source/blender/makesrna/intern/rna_brush.c
+++ b/source/blender/makesrna/intern/rna_brush.c
@@ -786,10 +786,6 @@ static const EnumPropertyItem *rna_Brush_direction_itemf(bContext *C,
{
ePaintMode mode = BKE_paintmode_get_active_from_context(C);
- static const EnumPropertyItem prop_default_items[] = {
- {0, NULL, 0, NULL, NULL},
- };
-
/* sculpt mode */
static const EnumPropertyItem prop_flatten_contrast_items[] = {
{BRUSH_DIR_IN, "CONTRAST", ICON_ADD, "Contrast", "Subtract effect of brush"},
@@ -849,10 +845,10 @@ static const EnumPropertyItem *rna_Brush_direction_itemf(bContext *C,
return prop_direction_items;
case BRUSH_MASK_SMOOTH:
- return prop_default_items;
+ return DummyRNA_DEFAULT_items;
default:
- return prop_default_items;
+ return DummyRNA_DEFAULT_items;
}
case SCULPT_TOOL_FLATTEN:
@@ -871,7 +867,7 @@ static const EnumPropertyItem *rna_Brush_direction_itemf(bContext *C,
return prop_inflate_deflate_items;
default:
- return prop_default_items;
+ return DummyRNA_DEFAULT_items;
}
case PAINT_MODE_TEXTURE_2D:
@@ -881,11 +877,11 @@ static const EnumPropertyItem *rna_Brush_direction_itemf(bContext *C,
return prop_soften_sharpen_items;
default:
- return prop_default_items;
+ return DummyRNA_DEFAULT_items;
}
default:
- return prop_default_items;
+ return DummyRNA_DEFAULT_items;
}
}