[gimp] app: fix force default handling
- From: Alexia Death <alexiade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix force default handling
- Date: Mon, 17 Nov 2014 13:40:32 +0000 (UTC)
commit d0862180c4e846bf2992c822d98e934c25a97c2f
Author: Alexia Death <alexiadeath gmail com>
Date: Mon Nov 17 15:40:21 2014 +0200
app: fix force default handling
app/paint/gimppaintbrush.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/paint/gimppaintbrush.c b/app/paint/gimppaintbrush.c
index 4b889cb..c8ac50c 100644
--- a/app/paint/gimppaintbrush.c
+++ b/app/paint/gimppaintbrush.c
@@ -208,13 +208,13 @@ _gimp_paintbrush_motion (GimpPaintCore *paint_core,
coords,
paint_options,
fade_point);
- force = 0.0;
+ force = 0.5;
option_force = paint_options->brush_force / 100.0;
- if ((option_force > 0.0) && gimp_dynamics_output_is_enabled (dyn_output))
+ if ((option_force != 0.5) && gimp_dynamics_output_is_enabled (dyn_output))
force = option_force + (1 - option_force) * dyn_force;
- else if (option_force > 0.0)
+ else if (option_force != 0.5)
force = option_force;
/* finally, let the brush core paste the colored area on the canvas */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]