-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Add proper snapping to tile polygon editor #70488
Conversation
Made like that it's not possible to snap to subpixel values. So e.g. for odd sized tiles you won't be able to snap to the tile's center. Meaning being able to snap to half pixels is a must. So at least |
Odd-sized tiles are a weird use-case and I never understood why it was half-pixel in the first place, but setting step to 0.5 should be enough. |
I believe the feature is fine, but I think it takes too much space as it is and is not the best to configure IMO.
|
i really like your idea of a simple one-line subdivision value, although imo putting it into a dropdown would be unnecessary. i guess its time to learn c++, i'd love to contribute to this PR :) |
I created small editor plugin to help with this problem. Maybe it helps to add custom vertex snapping in future |
Updated based on feedback (including #73495 feedback)
The original feedback was to move half-pixel to popup and make it separate from grid snap, with grid taking priority. This has a problem though: if grid is enabled, toggling half-pixel snap has no effect. So there is awkward setup where there are 4 states, but 2 are effectively the same. So instead of weird toggle/button combo, I went with 3-state popup. godot.windows.editor.dev.x86_64_JxVow5t71w.mp4You can either disable snap, enable half-pixel snap or enable grid snap. |
Thanks! |
Closes godotengine/godot-proposals#5847
The grid does not draw, but I could add it if it's important.