Skip to content

Fix square brush rotation direction#5598

Merged
dacap merged 1 commit into
aseprite:mainfrom
martincapello:fix-square-brush-angle-direction
Feb 13, 2026
Merged

Fix square brush rotation direction#5598
dacap merged 1 commit into
aseprite:mainfrom
martincapello:fix-square-brush-angle-direction

Conversation

@martincapello

Copy link
Copy Markdown
Member

Fix #5597

@martincapello martincapello requested a review from dacap as a code owner December 15, 2025 15:10

@aseprite-bot aseprite-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

Comment thread src/doc/brush.cpp
else {
double angle = PI * m_angle / 180;
double sin = -std::sin(angle);
double sin = std::sin(angle);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: variable 'sin' of type 'double' can be declared 'const' [misc-const-correctness]

Suggested change
double sin = std::sin(angle);
double const sin = std::sin(angle);

@martincapello martincapello assigned dacap and Gasparoken and unassigned dacap Dec 15, 2025
@Gasparoken Gasparoken assigned dacap and unassigned Gasparoken Dec 16, 2025
@dacap dacap merged commit 307b59d into aseprite:main Feb 13, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rotational direction of square brush is inverted

4 participants