aseprite icon indicating copy to clipboard operation
aseprite copied to clipboard

Add snap line to more angles (fix #1641)

Open Gasparoken opened this issue 1 month ago • 4 comments

This PR is a cherry-pick and updates the original PR #4241 from tsone fix #1641

Gasparoken avatar Nov 17 '25 18:11 Gasparoken

I'll review the tests that are failing. I can change MAX_M from 8 to 2 to allow immediate inclusion of this pull request, then I can send a new commit that will add an additional checkbox to enable/disable more perfect slopes in Edit > Preferences > Editor > Line Tool with more snap slopes (disabled by default).

Gasparoken avatar Nov 17 '25 18:11 Gasparoken

clang-tidy review says "All clean, LGTM! :+1:"

aseprite-bot avatar Nov 17 '25 19:11 aseprite-bot

I think we talked about adding an option to enable this. Probably I'm missing something from the PR.

dacap avatar Dec 01 '25 17:12 dacap

This last change removes the static variable fixed_step_tilt in algo.h and replaces it with explicit parameter passing through std::function callback. @martincapello suggested this approach, which I wasn’t familiar with. Thank you!

Gasparoken avatar Dec 10 '25 16:12 Gasparoken