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: LoadAnimationTexture, Sprite and TransformedSprite #1807

Merged
merged 1 commit into from Jun 5, 2023

Conversation

Arufonsu
Copy link
Contributor

@Arufonsu Arufonsu commented May 8, 2023

@Arufonsu Arufonsu added the chore Cleans up code, documentation or project structure without altering functionality label May 8, 2023
@Arufonsu Arufonsu requested review from a team May 8, 2023 16:25
Copy link
Member

@lodicolo lodicolo left a comment

Choose a reason for hiding this comment

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

Use IsNullorWhiteSpace for all

- Previous attempt to fix AscensionGameDev#1649 by swapping `Sprite ?? TransformedSprite` for `TransformedSprite ?? Sprite` at SpellCast specifically was a total mess as it broke Weylon's custom animation override for casting. So, after some testing and code reading, i've concluded that replacing these with `string.IsNullOrEmpty(TransformedSprite) ? Sprite : TransformedSprite` is instead, the good way to go, this fixes the originally reported issues at AscensionGameDev#1649 while maintaining the original behavior for non-transformed entities.

- review: uses IsNullOrWhiteSpace
@Arufonsu
Copy link
Contributor Author

Arufonsu commented May 9, 2023

updated with IsNullOrWhiteSpace, stashed, then updated the branch and signed the commit.

@lodicolo lodicolo merged commit fa0f117 into AscensionGameDev:main Jun 5, 2023
1 check passed
@Arufonsu Arufonsu deleted the fix/1806 branch June 10, 2023 16:55
naziozeno pushed a commit to naziozeno/Intersect-Engine that referenced this pull request Jul 18, 2023
…eDev#1807)

- Previous attempt to fix AscensionGameDev#1649 by swapping `Sprite ?? TransformedSprite` for `TransformedSprite ?? Sprite` at SpellCast specifically was a total mess as it broke Weylon's custom animation override for casting. So, after some testing and code reading, i've concluded that replacing these with `string.IsNullOrEmpty(TransformedSprite) ? Sprite : TransformedSprite` is instead, the good way to go, this fixes the originally reported issues at AscensionGameDev#1649 while maintaining the original behavior for non-transformed entities.

- review: uses IsNullOrWhiteSpace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Cleans up code, documentation or project structure without altering functionality
Projects
None yet
2 participants