Annotations: Remove Simplify option from Userprefs
authorAntonio Vazquez <blendergit@gmail.com>
Tue, 6 Aug 2019 16:53:24 +0000 (18:53 +0200)
committerAntonio Vazquez <blendergit@gmail.com>
Tue, 6 Aug 2019 16:53:39 +0000 (18:53 +0200)
This option was an old option for Grease Pencil tools and it's not logic for Annotations.

Differential Revision: http://developer.blender.org/D5426

release/scripts/startup/bl_ui/space_userpref.py
source/blender/editors/gpencil/annotate_paint.c
source/blender/makesdna/DNA_userdef_types.h
source/blender/makesrna/intern/rna_userdef.c

index 08f36bb15bb9a2656abde43218f74f2cfdd6cced..48aaf55bdfa2d7432747745a19246faa1c927299 100644 (file)
@@ -427,7 +427,6 @@ class USERPREF_PT_edit_annotations(PreferencePanel, Panel):
 
         flow.prop(edit, "grease_pencil_default_color", text="Default Color")
         flow.prop(edit, "grease_pencil_eraser_radius", text="Eraser Radius")
-        flow.prop(edit, "use_grease_pencil_simplify_stroke", text="Simplify Stroke")
 
 
 class USERPREF_PT_edit_weight_paint(PreferencePanel, Panel):
index 6a635720d093ce32e18280ba3bab751e1b7c5973..c9c4a67644e6fe3ccaa3c2cbea6e592ae004096c 100644 (file)
@@ -758,12 +758,6 @@ static void gp_stroke_newfrombuffer(tGPsdata *p)
     }
   }
 
-  /* Simplify stroke */
-  if ((p->sa->spacetype == SPACE_VIEW3D) && (U.gp_settings & GP_PAINT_DOSIMPLIFY) &&
-      (p->paintmode != GP_PAINTMODE_DRAW_STRAIGHT)) {
-    BKE_gpencil_simplify_stroke(gps, 0.05f);
-  }
-
   /* add stroke to frame */
   BLI_addtail(&p->gpf->strokes, gps);
   gp_stroke_added_enable(p);
index f8ee29c94cca8087ea895a194d4be769964a2a45..b8914c7a74fcea9c3672ae91e4b455d1152b664b 100644 (file)
@@ -1069,7 +1069,6 @@ typedef enum eText_Draw_Options {
  * #UserDef.gp_settings */
 typedef enum eGP_UserdefSettings {
   GP_PAINT_UNUSED_0 = (1 << 0),
-  GP_PAINT_DOSIMPLIFY = (1 << 1),
 } eGP_UserdefSettings;
 
 enum {
index bed06171cbfdab525f077f28a8a2d1208f6ff304..38cb3e1d222e977025ee4f6c0c3095f5cda121cb 100644 (file)
@@ -4590,10 +4590,6 @@ static void rna_def_userdef_edit(BlenderRNA *brna)
                            "Grease Pencil Euclidean Distance",
                            "Distance moved by mouse when drawing stroke to include");
 
-  prop = RNA_def_property(srna, "use_grease_pencil_simplify_stroke", PROP_BOOLEAN, PROP_NONE);
-  RNA_def_property_boolean_sdna(prop, NULL, "gp_settings", GP_PAINT_DOSIMPLIFY);
-  RNA_def_property_ui_text(prop, "Grease Pencil Simplify Stroke", "Simplify the final stroke");
-
   prop = RNA_def_property(srna, "grease_pencil_eraser_radius", PROP_INT, PROP_PIXEL);
   RNA_def_property_int_sdna(prop, NULL, "gp_eraser");
   RNA_def_property_range(prop, 1, 500);