Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression - #1799: Fix pen dabs being added to each other #1800

Merged
merged 1 commit into from
Dec 10, 2023

Conversation

MrStevns
Copy link
Member

@MrStevns MrStevns commented Dec 3, 2023

@MrStevns MrStevns force-pushed the #1799-pen-dab-alpha-fix branch from a6a17d1 to 4dbd2bc Compare December 3, 2023 15:53
@MrStevns MrStevns changed the title The effect is only evident when using an alpha value less than 100% Regression - #1799: Fix pen dabs being added to each other Dec 3, 2023
@J5lx J5lx added this to the v0.6.7 milestone Dec 3, 2023
@J5lx J5lx self-assigned this Dec 3, 2023
Copy link
Member

@J5lx J5lx left a comment

Choose a reason for hiding this comment

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

This is not the original behaviour. Old:
image
New (this PR):
image

@MrStevns MrStevns force-pushed the #1799-pen-dab-alpha-fix branch from 4dbd2bc to 8baa511 Compare December 3, 2023 18:19
@MrStevns
Copy link
Member Author

MrStevns commented Dec 3, 2023

Hmm.. you're right, that was not correct. Even though I tested and compared against the stable version, I failed to see the difference. This time i've made sure to apply the exact same steps.

Copy link
Member

@J5lx J5lx left a comment

Choose a reason for hiding this comment

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

Very good, the pen tool does indeed seem to be working as intended again, but now the eraser is broken. Using it has no effect at all.

@MrStevns
Copy link
Member Author

MrStevns commented Dec 4, 2023

Ah you're right, that seems to be the case with master as well though but it's likely my fault too and related, so I'll look into it. If only i had written some tests to avoid these cases 😔

There's still room for improvements regarding separation of concern 🙃

@J5lx
Copy link
Member

J5lx commented Dec 4, 2023

No, I’m seeing that eraser issue only with this PR. Whatever you’re seeing on master must be a separate issue from what I described above.

Actually the first check in canvas painter would always return true because the blitRect and mTilledBuffer rect are in different coordinate spaces.
@MrStevns MrStevns force-pushed the #1799-pen-dab-alpha-fix branch from b4e4faa to 061e085 Compare December 10, 2023 10:49
@MrStevns
Copy link
Member Author

I've had some time to think and experimented a bit.. try again with the latest changes.

Also thanks for reviewing and being meticulous 😄

Copy link
Member

@J5lx J5lx left a comment

Choose a reason for hiding this comment

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

Looking good now, thanks for figuring that out!

Though I noticed another issue unrelated to this PR where the smudge tool is kinda broken… well more broken than before I guess. Welp.

@J5lx J5lx merged commit 363dcd7 into pencil2d:master Dec 10, 2023
8 checks passed
@MrStevns MrStevns deleted the #1799-pen-dab-alpha-fix branch December 10, 2023 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Pen dabs are being added on top of each other
2 participants