[Bf-blender-cvs] [46bdca99ab7] greasepencil-object: Revert "GPencil: Increase Input Samples and reduce distance"

Antonio Vazquez noreply at git.blender.org
Sun Aug 18 11:40:37 CEST 2019


Commit: 46bdca99ab79f96187a49f44c747dfecb0ea4c7d
Author: Antonio Vazquez
Date:   Sat Aug 17 19:00:12 2019 +0200
Branches: greasepencil-object
https://developer.blender.org/rB46bdca99ab79f96187a49f44c747dfecb0ea4c7d

Revert "GPencil: Increase Input Samples and reduce distance"

This reverts commit 351f87fc84a2394b4862144a024e3d1eb903e551.

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

M	source/blender/editors/gpencil/gpencil_paint.c
M	source/blender/makesdna/DNA_gpencil_types.h

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

diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 3984a256c10..ce4b89f0d2e 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -3371,11 +3371,6 @@ static void gpencil_add_missing_events(bContext *C,
   }
   float factor = ((thickness * dot_factor) / scale) * samples;
 
-  /* If samples are more than 33%, divide the factor. */
-  if (input_samples > (GP_MAX_INPUT_SAMPLES / 3)) {
-    factor *= 0.5f;
-  }
-
   copy_v2_v2(a, p->mvalo);
   b[0] = (float)event->mval[0] + 1.0f;
   b[1] = (float)event->mval[1] + 1.0f;
diff --git a/source/blender/makesdna/DNA_gpencil_types.h b/source/blender/makesdna/DNA_gpencil_types.h
index 64a5b6e7091..3edd529eb68 100644
--- a/source/blender/makesdna/DNA_gpencil_types.h
+++ b/source/blender/makesdna/DNA_gpencil_types.h
@@ -36,7 +36,7 @@ struct MDeformVert;
 
 #define GP_DEFAULT_PIX_FACTOR 1.0f
 #define GP_DEFAULT_GRID_LINES 4
-#define GP_MAX_INPUT_SAMPLES 100
+#define GP_MAX_INPUT_SAMPLES 50
 
 /* ***************************************** */
 /* GP Stroke Points */



More information about the Bf-blender-cvs mailing list