Diffusion Krita 0d6b2a86082f

Limit Gaussian Blur filter radius to 100px when used as a mask

Authored by dkazakov on May 7 2019, 8:05 PM.

Description

Limit Gaussian Blur filter radius to 100px when used as a mask

When used as a mask, Krita should recalculate additional
need/changeRect of the processed area of size:
actualSize + 4 * radius, which is too much of work.

In older version of Krita the test file loaded fine, because
colorize mask did update itself on loading and didn't provoke
full mask update. If you provoke full gaussian mask update
manually, you'll get the same 12-minutes recalculation process
(and it cannot run in threads, because access rects intersect
heavily).

The patch does the following:

  1. When loading filter masks and filter layers: forcefully (and silently) limit gaussian blur size to 100 px.
  1. When creating filter masks and filter layers, limit radius slider to 100 px.
  1. When changing properties of Gaussian Blur mask, limit the radius slider to 100 px.
  1. When applying Gaussian Blur filter directly, allow the user to select radius in full range: 0...1000 px

BUG:407062

Details

Committed
dkazakovMay 7 2019, 8:14 PM
Parents
R37:a3a4a7bfa73b: Set the document to modified if any layer properties change
Branches
Unknown
Tags
Unknown