[Bf-blender-cvs] [3f8be67811d] greasepencil-object: Minor tweak to the "bell" curve for Multiframe Falloff for smoother curve

Joshua Leung noreply at git.blender.org
Fri Dec 1 23:12:00 CET 2017


Commit: 3f8be67811da8a3ae45d3147ca6e4e2a38ba4fa4
Author: Joshua Leung
Date:   Sat Dec 2 11:11:50 2017 +1300
Branches: greasepencil-object
https://developer.blender.org/rB3f8be67811da8a3ae45d3147ca6e4e2a38ba4fa4

Minor tweak to the "bell" curve for Multiframe Falloff for smoother curve

While this may not be "technically" correct for a Gaussian curve,
visually (judging from the curve) this seems to be a lot smoother.

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

M	source/blender/blenkernel/intern/colortools.c

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

diff --git a/source/blender/blenkernel/intern/colortools.c b/source/blender/blenkernel/intern/colortools.c
index 6caa3aa0d11..76e5bec779d 100644
--- a/source/blender/blenkernel/intern/colortools.c
+++ b/source/blender/blenkernel/intern/colortools.c
@@ -358,14 +358,14 @@ void curvemap_reset(CurveMap *cuma, const rctf *clipr, int preset, int slope)
 			cuma->curve[0].y = 0.025f;
 			cuma->curve[1].x = 0.16f;
 			cuma->curve[1].y = 0.135f;
-			cuma->curve[2].x = 0.28f;
-			cuma->curve[2].y = 0.38f;
+			cuma->curve[2].x = 0.298f;
+			cuma->curve[2].y = 0.36f;
 			
 			cuma->curve[3].x = 0.50f;
 			cuma->curve[3].y = 1.0f;
 
-			cuma->curve[4].x = 0.72f;
-			cuma->curve[4].y = 0.38f;
+			cuma->curve[4].x = 0.70f;
+			cuma->curve[4].y = 0.36f;
 			cuma->curve[5].x = 0.84f;
 			cuma->curve[5].y = 0.135f;
 			cuma->curve[6].x = 1.0f;



More information about the Bf-blender-cvs mailing list