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

Fix snapping when zoomed in Polygon2D UV editor #95259

Merged

Conversation

kleonc
Copy link
Member

@kleonc kleonc commented Aug 7, 2024

After reading the code I concluded that uv_draw_ofs is not affected by the uv_draw_zoom, hence should be multpliplied by it as well when snapping.
Also simplified some code when reading.

Fixes #94385.

Before
(v4.3.rc2.official [3978628])
After
(this PR)
Xllk5eJ1fi TxAtJxtFT2

@kleonc kleonc added this to the 4.3 milestone Aug 7, 2024
@kleonc kleonc requested a review from a team as a code owner August 7, 2024 19:29
@akien-mga akien-mga modified the milestones: 4.3, 4.4 Aug 7, 2024
@akien-mga akien-mga added the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Aug 7, 2024
@kleonc kleonc force-pushed the polygon2d_uv_editor_fix_zoomed_snapping branch from e9be686 to 1b7626f Compare August 27, 2024 15:02
@akien-mga akien-mga merged commit ae241ab into godotengine:master Aug 27, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@kleonc kleonc deleted the polygon2d_uv_editor_fix_zoomed_snapping branch August 27, 2024 16:41
@akien-mga
Copy link
Member

Cherry-picked for 4.3.1.

@akien-mga akien-mga removed the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect grid snapping when zoomed in Polygon2D UV editor
3 participants