[gimp] app: fix brush outline when dynamics is disabled.



commit 0ea6e9f783d87f55b5103b7d5303849b87de5298
Author: Jehan <jehan girinstud io>
Date:   Sat Mar 12 16:43:53 2022 +0100

    app: fix brush outline when dynamics is disabled.
    
    Since the "Dynamics Off" is set when the brushcore is started, when we
    were running gimp_brush_core_eval_transform_dynamics(), we were using a
    previous dynamics output.
    
    Also it's better to shortcut the computation anyway when we know the
    dynamics is not for use.

 app/paint/gimpbrushcore.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/app/paint/gimpbrushcore.c b/app/paint/gimpbrushcore.c
index 1013ae1a3c..be9848cbbe 100644
--- a/app/paint/gimpbrushcore.c
+++ b/app/paint/gimpbrushcore.c
@@ -1198,7 +1198,8 @@ gimp_brush_core_eval_transform_dynamics (GimpBrushCore     *core,
       core->reflect  = coords->reflect;
     }
 
-  if (! GIMP_IS_DYNAMICS (core->dynamics))
+  if (! GIMP_IS_DYNAMICS (core->dynamics) ||
+      ! gimp_paint_options_are_dynamics_enabled (paint_options))
     return;
 
   if (GIMP_BRUSH_CORE_GET_CLASS (core)->handles_dynamic_transforming_brush)


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