Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2019-06-04 18:42:39 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-06-04 18:42:39 +0300
commit636751bb36097e57c191652575ed6394b6dae105 (patch)
tree426d4b82c9175e005f609dd8a87571eab2b13ffe /source/blender/editors/gpencil
parent8b1ca3ec537cc13d87e15dc80dc04d53ee2d95ca (diff)
GPencil: Clarify Target weight tooltip and remove lower limit
The target value was affecting the lower value and this was weird. Now the value is clamped between 0 and target weight.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_brush.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/editors/gpencil/gpencil_brush.c b/source/blender/editors/gpencil/gpencil_brush.c
index 7e871e03b99..3274f9657db 100644
--- a/source/blender/editors/gpencil/gpencil_brush.c
+++ b/source/blender/editors/gpencil/gpencil_brush.c
@@ -922,13 +922,7 @@ static bool gp_brush_weight_apply(
float curweight = dw ? dw->weight : 0.0f;
if (gp_brush_invert_check(gso)) {
- /* reduce weight (verify mainimum target) */
- if (curweight - inf < gso->gp_brush->weight) {
- curweight = gso->gp_brush->weight;
- }
- else {
- curweight -= inf;
- }
+ curweight -= inf;
}
else {
/* increase weight */