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 BitMapEditor crash when bitmap is empty #104957

Merged
merged 1 commit into from
Apr 3, 2025

Conversation

arkology
Copy link
Contributor

@arkology arkology commented Apr 3, 2025

Fixes #104935

Also, I changed the custom minimum size setting for centering_container. If the bitmap is empty, there is no need to waste space on it.

Actually, empty bitmap handling could be improved even further (for example, not creating an image if the bitmap is empty), but the current changes are the minimum necessary to prevent crashes.

@akien-mga akien-mga added bug topic:editor crash cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release labels Apr 3, 2025
@akien-mga akien-mga added this to the 4.5 milestone Apr 3, 2025
@akien-mga akien-mga removed the cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release label Apr 3, 2025
@Repiteo Repiteo merged commit 6075e6a into godotengine:master Apr 3, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Apr 3, 2025

Thanks!

@arkology arkology deleted the empty-bitmap-crash branch April 3, 2025 14:45
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.

Crash when unfolding empty BitMap
3 participants