[Bf-blender-cvs] [d5208c45fad] master: GPencil: Fix unreported Use Falloff curve for active frame not working
Antonio Vazquez
noreply at git.blender.org
Fri Jul 10 17:56:44 CEST 2020
Commit: d5208c45fadbfd59a686eb77a0c4161b02b0e482
Author: Antonio Vazquez
Date: Fri Jul 10 17:56:05 2020 +0200
Branches: master
https://developer.blender.org/rBd5208c45fadbfd59a686eb77a0c4161b02b0e482
GPencil: Fix unreported Use Falloff curve for active frame not working
For the active frame it was using always a value of 1.0 and it was not using the curve.
===================================================================
M source/blender/blenkernel/intern/gpencil.c
===================================================================
diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c
index c86bb10050c..eeb55c44d6e 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -1782,7 +1782,8 @@ float BKE_gpencil_multiframe_falloff_calc(
value = BKE_curvemapping_evaluateF(cur_falloff, 0, fnum + 0.5f);
}
else {
- value = 1.0f;
+ /* Center of the curve. */
+ value = BKE_curvemapping_evaluateF(cur_falloff, 0, 0.5f);
}
return value;
More information about the Bf-blender-cvs
mailing list