diff options
author | Antonioya <blendergit@gmail.com> | 2019-07-04 18:38:40 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-07-04 18:38:40 +0300 |
commit | 178bae9504dea108fb7d635f54d6628493c21d87 (patch) | |
tree | 735af0415660030b97edc9d9a699cbf9fe80dcf6 /source/blender/makesrna | |
parent | 9ffce6da6525e70b3e5e4bd1e70808b63d021729 (diff) |
GPencil: Fix unreported error with occlude eraser
The option was inverted in RNA and worked opposite of expected.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_brush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c index fabbc7ca18b..8549da6a6b7 100644 --- a/source/blender/makesrna/intern/rna_brush.c +++ b/source/blender/makesrna/intern/rna_brush.c @@ -1426,7 +1426,7 @@ static void rna_def_gpencil_options(BlenderRNA *brna) RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); prop = RNA_def_property(srna, "use_occlude_eraser", PROP_BOOLEAN, PROP_NONE); - RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", GP_BRUSH_OCCLUDE_ERASER); + RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_BRUSH_OCCLUDE_ERASER); RNA_def_property_ui_text(prop, "Occlude Eraser", "Erase only strokes visible and not occluded"); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); } |