Bug 436618

Summary: Incorrect tilt direction with stabilizer when canvas is rotated
Product: [Applications] krita Reporter: Alvin Wong <alvin>
Component: Tools/FreehandAssignee: Dmitry Kazakov <dimula73>
Status: RESOLVED FIXED    
Severity: normal CC: dimula73
Priority: NOR    
Version: 4.4.3   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alvin Wong 2021-05-05 09:53:35 UTC
SUMMARY

When the canvas is rotated, with the brush smoothing st to "stabilizer" and "stabilize sensors" set to off, the stylus tilt direction is rotated incorrectly.

STEPS TO REPRODUCE
1. Set cursor outline shape to "tilt outline" or choose a brush preset that uses tilt angle and direction
2. Set brush smoothing to "stabilizer" and disable "stabilize sensors"
3. Rotate canvas
4. Draw on the canvas

OBSERVED RESULT

Tilt direction is wrong.

EXPECTED RESULT

Tilt direction should not be wrong.

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION

/
Comment 1 Dmitry Kazakov 2021-11-23 15:26:20 UTC
Git commit 42f80129af535e3585334e76c0950202a1da3f51 by Dmitry Kazakov.
Committed on 23/11/2021 at 15:26.
Pushed by dkazakov into branch 'master'.

Fix tilt-rotation when the canvas is rotated and stabilizer is active

M  +4    -0    libs/ui/tool/kis_tool_freehand_helper.cpp

https://invent.kde.org/graphics/krita/commit/42f80129af535e3585334e76c0950202a1da3f51
Comment 2 Dmitry Kazakov 2021-11-23 15:27:57 UTC
Git commit 11a8a3e466d26aed7e3965e28970d53e84d926b5 by Dmitry Kazakov.
Committed on 23/11/2021 at 15:27.
Pushed by dkazakov into branch 'krita/5.0'.

Fix tilt-rotation when the canvas is rotated and stabilizer is active
(cherry picked from commit 42f80129af535e3585334e76c0950202a1da3f51)

M  +4    -0    libs/ui/tool/kis_tool_freehand_helper.cpp

https://invent.kde.org/graphics/krita/commit/11a8a3e466d26aed7e3965e28970d53e84d926b5