Commit: 178bae9504dea108fb7d635f54d6628493c21d87
Author: Antonioya
Date:   Thu Jul 4 17:38:40 2019 +0200
Branches: master
https://developer.blender.org/rB178bae9504dea108fb7d635f54d6628493c21d87

GPencil: Fix unreported error with occlude eraser

The option was inverted in RNA and worked opposite of expected.

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

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 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);
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to