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

Improve polygon undo function #11035

Merged
merged 1 commit into from
Apr 19, 2024
Merged

Improve polygon undo function #11035

merged 1 commit into from
Apr 19, 2024

Conversation

hawkeye217
Copy link
Collaborator

The undo button in the mask/zone editor was only removing the very last point in the points array, even if that point was not added last in time (like if a point was added on a line between two existing points, for instance). This PR simplifies the logic of adding points and handles removing the correct point when clicking the undo button.

Copy link

netlify bot commented Apr 19, 2024

Deploy Preview for frigate-docs ready!

Name Link
🔨 Latest commit 034edae
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/662275a75b56ab000827cf6e
😎 Deploy Preview https://deploy-preview-11035--frigate-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@NickM-27 NickM-27 merged commit d6dfa59 into dev Apr 19, 2024
13 checks passed
@NickM-27 NickM-27 deleted the better-polygon-undo branch April 19, 2024 13:59
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.

2 participants