Skip to content

Commit

Permalink
Shortcut flood fills on blank layers and canvas
Browse files Browse the repository at this point in the history
Users are prone to use the flood fill tool to fill the entire canvas,
which wastes a bunch of time flooding the empty area. This adds an
optimization that checks if the layer or canvas look blank and in that
case skip the flooding business altogether. The optimization will at
most check three layers when filling the canvas and only takes tile
bounds into account, since this is meant to be a quick check.

Implements #1414.
  • Loading branch information
askmeaboutlo0m committed Feb 3, 2025
1 parent f9237e0 commit c9aede5
Showing 1 changed file with 164 additions and 25 deletions.
Loading

0 comments on commit c9aede5

Please sign in to comment.