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

Add region rect and frames support to Sprite2DPlugin converter #84754

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

aXu-AP
Copy link
Contributor

@aXu-AP aXu-AP commented Nov 11, 2023

Readds support for rects for sprite to mesh/polygon converter. (removed in #84361 due to feature being broken)
Adds support for conversion from animation frame (it was trivial to add and a +3-3 LOC change, so it felt reasonable to add).
Fixes converter not taking offset into account.
Fixes 1 pixel shift when converting flipped sprites (this seemed deliberate but maybe it is a legacy thing?).
Removes some comments which state the obvious (if these seem necessary after all we could just update them to adhere to comment style).

rect

@aXu-AP aXu-AP requested a review from a team as a code owner November 11, 2023 14:39
@aXu-AP aXu-AP changed the title Readd rect support for Sprite2DPlugin converter Readd rect support for Sprite2DPlugin converter (+small fixes) Nov 11, 2023
@AThousandShips AThousandShips added this to the 4.x milestone Nov 11, 2023
@aXu-AP aXu-AP force-pushed the sprite2dplugin-rect branch 2 times, most recently from 526a8bd to cc97747 Compare November 12, 2023 09:42
Readds support for rects for sprite to mesh/polygon converter.
Adds support for conversion from animation frame.
Fixes converter not taking offset into account.
Fixes 1 pixel shift when converting flipped sprites.
@aXu-AP aXu-AP force-pushed the sprite2dplugin-rect branch from cc97747 to cb88108 Compare November 12, 2023 09:49
@YuriSizov YuriSizov modified the milestones: 4.x, 4.3 Dec 13, 2023
@YuriSizov YuriSizov changed the title Readd rect support for Sprite2DPlugin converter (+small fixes) Re-add region rect support to Sprite2DPlugin converter Dec 14, 2023
@YuriSizov YuriSizov changed the title Re-add region rect support to Sprite2DPlugin converter Add region rect and frames support to Sprite2DPlugin converter Dec 14, 2023
@YuriSizov YuriSizov merged commit daddb2b into godotengine:master Dec 14, 2023
15 checks passed
@YuriSizov
Copy link
Contributor

Thanks, great work!

@aXu-AP aXu-AP deleted the sprite2dplugin-rect branch January 10, 2024 10:18
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.

4 participants