[gimp] Fix 180 degrees rotated brushes with dynamics off and direction following.



commit fc3c368f9688331f7e8a640d54576d5370312b64
Author: Alexia Death <alexiadeath gmail com>
Date:   Sun Oct 25 17:15:48 2009 +0200

    Fix 180 degrees rotated brushes with dynamics off and direction following.

 app/core/gimpdynamicsoutput.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/core/gimpdynamicsoutput.c b/app/core/gimpdynamicsoutput.c
index 7eb23cd..18d484d 100644
--- a/app/core/gimpdynamicsoutput.c
+++ b/app/core/gimpdynamicsoutput.c
@@ -302,7 +302,7 @@ gimp_dynamics_output_get_angular_value (GimpDynamicsOutput *output,
                                         gdouble             fade_point)
 {
   gdouble total   = 0.0;
-  gdouble result  = 1.0;
+  gdouble result  = 0.0; /* angles are additive, so we retun zero for no change. */
   gint    factors = 0;
 
   if (output->use_pressure)
@@ -319,7 +319,7 @@ gimp_dynamics_output_get_angular_value (GimpDynamicsOutput *output,
 
   if (output->use_direction)
     {
-      total += coords.direction + 0.5;
+      total += coords.direction;
       factors++;
     }
 
@@ -382,7 +382,7 @@ gimp_dynamics_output_get_angular_value (GimpDynamicsOutput *output,
               result, factors, total);
 #endif
 
-   return result + 0.5;
+   return result;
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]