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

Fixed brightness tool symmetry and added multi-layer magic wand support #505

Merged
merged 5 commits into from
Apr 10, 2023

Conversation

flabbet
Copy link
Member

@flabbet flabbet commented Apr 8, 2023

@flabbet flabbet requested a review from Equbuxu April 8, 2023 12:38
@flabbet flabbet linked an issue Apr 8, 2023 that may be closed by this pull request
@flabbet flabbet changed the title Fixed brightness tool symmetry Fixed brightness tool symmetry and added multi-layer magic wand support Apr 8, 2023
@flabbet flabbet linked an issue Apr 8, 2023 that may be closed by this pull request
Copy link
Member

@Equbuxu Equbuxu left a comment

Choose a reason for hiding this comment

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

gj overall, seems to work well

{
path.MoveTo(point);
this.mode = mode;
this.memberGuid = memberGuid;
this.referenceAll = referenceAll;
this.memberGuids = memberGuids;
this.drawOnMask = drawOnMask;
Copy link
Member

Choose a reason for hiding this comment

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

I've just noticed that drawOnMask is completely unused, let's remove it

var pos = controller!.LastPixelPosition;

internals!.ActionAccumulator.AddActions(new MagicWand_Action(memberGuid, pos, mode, considerAllLayers, drawOnMask));
internals!.ActionAccumulator.AddActions(new MagicWand_Action(memberGuids, pos, mode, considerAllLayers));
Copy link
Member

Choose a reason for hiding this comment

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

you are passing considerAllLayers as the drawOnMask argument (which is completely unused so this isn't a bug, it's just weird)

@flabbet flabbet requested a review from Equbuxu April 10, 2023 10:21
@flabbet flabbet merged commit 71e8e19 into master Apr 10, 2023
@Equbuxu Equbuxu deleted the brightness-tool-improvements branch January 7, 2024 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants