Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix: check if path tool is interacting with raster layer to prevent crashing. #3182

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

Open
KartikSharma0 wants to merge 8 commits into GraphiteEditor:master
base: master
Choose a base branch
Loading
from KartikSharma0:fix-raster-path-tool-bug

Conversation

Copy link

@KartikSharma0 KartikSharma0 commented Sep 16, 2025

Resolves #2687
Added a check that returns PathToolFsmState::Ready if the path tool is used on a raster layer.

@Keavon Keavon force-pushed the fix-raster-path-tool-bug branch from 581ff33 to e8a0e36 Compare September 16, 2025 04:32
Copy link
Member

Keavon commented Sep 16, 2025

!build

Copy link

📦 Build Complete for e8a0e36
https://96d679d7.graphite.pages.dev

Copy link
Author

Video of the fix:

Graphite.path.tool.bugfix.mov

Copy link
Author

Please let me know if the video above captures the expected behavior.

Copy link
Member

Keavon commented Sep 16, 2025

This does not remove anchors from the corners of the image. All it does is break the Path tool's ability to select stuff, either a box selection or even clicking on other valid points if multiple layers (including actual vector layers) are selected. Please give it another shot so it addresses the requested change (first sentence of this reply).

@Keavon Keavon marked this pull request as draft September 16, 2025 05:07
Copy link
Author

So there shouldn't be any anchors displayed on the image at all when the path tool is selected? The path tool still works on the spline as shown, it's just ignoring the raster image.

Copy link
Author

I added a check before showing the anchors/handles. Please let me know if this PR is in-line with what you expected now.

Copy link
Author

Okay, I simplified the code changes. I think this PR should fulfill the requirements now.

@KartikSharma0 KartikSharma0 marked this pull request as ready for review September 19, 2025 00:40
Copy link

📦 Build Complete for fca9dab
https://f3db9350.graphite.pages.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Keavon Keavon Keavon left review comments

+1 more reviewer

@0HyperCube 0HyperCube 0HyperCube left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Using the path edit tool on one of the corners of a raster image breaks the graph

AltStyle によって変換されたページ (->オリジナル) /