[Bf-blender-cvs] [1a2dabbdc76] greasepencil-object: Small adjust to lazy mouse parameters

Antonio Vazquez noreply at git.blender.org
Sun Jan 28 13:44:04 CET 2018


Commit: 1a2dabbdc7692a59e2b2b0f39369c23ef3820c0d
Author: Antonio Vazquez
Date:   Sun Jan 28 13:36:14 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB1a2dabbdc7692a59e2b2b0f39369c23ef3820c0d

Small adjust to lazy mouse parameters

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

M	source/blender/editors/gpencil/gpencil_paint.c
M	source/blender/makesrna/intern/rna_scene.c

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

diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 95968f16a4e..ab6fc1826ec 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -549,13 +549,6 @@ static bool gp_smooth_buffer_point(bGPdata *gpd, float inf)
 	float estimated_co[2] = { 0.0f };
 	float sco[3] = { 0.0f };
 
-	/* the influence never can be 1. We keep the range between 0 and 1 on the UI for
-	* consistency, but internally never can be 1 because then the estimated position
-	* would be used always and this makes impossible to draw.
-	* We adjust between 0 and 0.8 that gets good results
-	*/
-	inf *= 0.8f;
-
 	/* Do nothing if not enough points to smooth out */
 	if (gpd->sbuffer_size < 3) {
 		return false;
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 7bca11ca9d2..d604bd571a5 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -2337,7 +2337,7 @@ static void rna_def_gpencil_brush(BlenderRNA *brna)
 	prop = RNA_def_property(srna, "lazy_factor", PROP_FLOAT, PROP_FACTOR);
 	RNA_def_property_float_sdna(prop, NULL, "lazy_factor");
 	RNA_def_property_range(prop, 0.5, 1.0);
-	RNA_def_property_ui_text(prop, "Factor", "Higher values give a smoother stroke");
+	RNA_def_property_ui_text(prop, "Factor", "Higher values give a more precise stroke");
 	RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, NULL);
 
 	/* Flags */



More information about the Bf-blender-cvs mailing list