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

Reset tool state on tool change #155

Merged
merged 1 commit into from
Jun 16, 2022
Merged

Conversation

hansemro
Copy link
Contributor

Resolves #153

@hansemro hansemro marked this pull request as draft June 16, 2022 05:12
@hansemro

This comment was marked as outdated.

@hansemro hansemro marked this pull request as ready for review June 16, 2022 05:48
Fixes (mbrlabs#153) "Segmentation fault when switching modes mid-stroke"
@hansemro
Copy link
Contributor Author

Cleaned up fix by having tools implement their own state reset function if it involves clearing additional objects.

@hansemro hansemro changed the title End stroke on tool change Reset tool state on tool change Jun 16, 2022
Copy link
Owner

@mbrlabs mbrlabs left a comment

Choose a reason for hiding this comment

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

Looks and works good! Let me know when this is ready to merge

@hansemro
Copy link
Contributor Author

Ready to merge

@mbrlabs mbrlabs merged commit bc83fbe into mbrlabs:main Jun 16, 2022
@mbrlabs
Copy link
Owner

mbrlabs commented Jun 16, 2022

Thanks!

@hansemro hansemro deleted the tool-change-fix branch June 16, 2022 10:49
hansemro added a commit to hansemro/Lorien that referenced this pull request Dec 21, 2022
Fixes missing on-canvas cursor when switching to SelectionTool for the
first time.

Fixes: bc83fbe (`Reset state of tool being switched (mbrlabs#155)`)
mbrlabs pushed a commit that referenced this pull request Aug 5, 2023
Fixes missing on-canvas cursor when switching to SelectionTool for the
first time.

Fixes: bc83fbe (`Reset state of tool being switched (#155)`)
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.

Segmentation fault when switching modes mid-stroke
2 participants