<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>421314</bug_id>
          
          <creation_ts>2020-05-11 05:36:22 +0000</creation_ts>
          <short_desc>[stabilizer] &quot;Scalable distance&quot;:  doesn&apos;t work as advertised</short_desc>
          <delta_ts>2020-05-20 13:13:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>Usability</component>
          <version>4.3.0-beta1</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David REVOY">info</reporter>
          <assigned_to name="Dmitry Kazakov">dimula73</assigned_to>
          <cc>halla</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1928816</commentid>
    <comment_count>0</comment_count>
    <who name="David REVOY">info</who>
    <bug_when>2020-05-11 05:36:22 +0000</bug_when>
    <thetext>Hi,

The option &quot;Scalable distance [ ]&quot; in tool options of the Freehand Brush tool confused me a lot over the past days as I tried to use again stabilizer after two years being away and using &quot;none&quot; for all. 

The documentation and infobox tells this:

- Documentation: &quot;This makes it so that the numbers involved will be scaled along the zoom level.&quot; (src: https://docs.krita.org/en/reference_manual/tools/freehand_brush.html) 

- Infobox (when mouse over the checkbox): &quot;Scalable distance takes zoom level into account and make the distance visually constant whatever zoom level is choosen.&quot;

If you test with a dramatic distance to be sure to notice the effect (140px here is enough), check &quot;Scalable Distance&quot;; you&apos;ll end with a very very slow brush at 12% zoom, a slow at 25% and faster at 50% then &apos;quicker&apos; at 100%. So, not really &quot;Visually constant&quot; as promised. The gesture is not constant either and visually the resulting stroke is not constant too being overly weighted at lower zoom size. To get a constant behavior whatever the zoom size (I guess 99% of what drawer/painter expects) the good option is to uncheck it. Could be maybe the wording about this option improved or just maybe more hints in the infobox and documentation?

(Note: This is not a regression.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929689</commentid>
    <comment_count>1</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2020-05-14 08:05:37 +0000</bug_when>
    <thetext>I think we&apos;re going to have to discuss this at the next meeting. I&apos;ve added a note to https://docs.google.com/document/d/18LYxzHO-KpThsJJ65nb8A1kltkjpQKMStyZ4W-gv_WA/edit# -- the meeting document for next week</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1930854</commentid>
    <comment_count>2</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2020-05-18 14:06:55 +0000</bug_when>
    <thetext>This was the commit that created the feature:

commit dedcbc777d3fbea570e95fbcefbff2f37957afc0
Author: Dmitry Kazakov &lt;dimula73@gmail.com&gt;
Date:   Fri Jun 6 16:16:39 2014 +0400
 
    [FEATURE] Added a Scalable Distance option to Weighted Smoothing
   
    Now if you activate &quot;Scalable Distance&quot; option for a brush tool,
    the distance will be corrected to your current zoom level. It means
    that your stylus will be &quot;stabilized&quot; the same way at any zoom level
    you choose.
   
    BUG:335834
    CCMAIL:kimageshop@kde.org</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931336</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2020-05-20 12:19:22 +0000</bug_when>
    <thetext>Git commit 46641c91ee3713368e6877441367324e9bc4fd31 by Dmitry Kazakov.
Committed on 20/05/2020 at 12:01.
Pushed by dkazakov into branch &apos;master&apos;.

Make &quot;Scalable Distance&quot; always on for the Stabilizer

And also hide the option from the GUI.

M  +5    -1    libs/ui/tool/kis_smoothing_options.cpp
M  +3    -1    plugins/tools/basictools/kis_tool_brush.cc

https://invent.kde.org/graphics/krita/commit/46641c91ee3713368e6877441367324e9bc4fd31</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931337</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2020-05-20 12:19:22 +0000</bug_when>
    <thetext>Git commit fc8c150ae70ad4c2e3c092b28e0f22a3fe1cd34c by Dmitry Kazakov.
Committed on 20/05/2020 at 12:02.
Pushed by dkazakov into branch &apos;master&apos;.

Change &quot;Distance&quot; to &quot;Sample count&quot; for stabilizer

Stabilizer doesn&apos;t have any distance in its algorithm. It uses samples
instead.

M  +31   -5    plugins/tools/basictools/kis_tool_brush.cc
M  +3    -1    plugins/tools/basictools/kis_tool_brush.h

https://invent.kde.org/graphics/krita/commit/fc8c150ae70ad4c2e3c092b28e0f22a3fe1cd34c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931343</commentid>
    <comment_count>5</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2020-05-20 12:35:48 +0000</bug_when>
    <thetext>The bug is fixed in 

https://invent.kde.org/graphics/krita/-/commit/d59971da7ab52af8c23ebcfd3c62500d971bee07

The patch will be backported to 4.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931352</commentid>
    <comment_count>6</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2020-05-20 13:13:18 +0000</bug_when>
    <thetext>Git commit c16cf7cd9f0edd06c1dcb9d12afae3b6c19b0a22 by Dmitry Kazakov.
Committed on 20/05/2020 at 12:30.
Pushed by dkazakov into branch &apos;krita/4.3&apos;.

Make &quot;Scalable Distance&quot; always on for the Stabilizer

And also hide the option from the GUI.

M  +5    -1    libs/ui/tool/kis_smoothing_options.cpp
M  +3    -1    plugins/tools/basictools/kis_tool_brush.cc

https://invent.kde.org/graphics/krita/commit/c16cf7cd9f0edd06c1dcb9d12afae3b6c19b0a22</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>