Merge pull request #53259 from boruok/fix-atlas-texture-get_data-crash

This commit is contained in:
Rémi Verschelde 2021-09-30 18:31:15 +02:00 committed by GitHub
commit a201f30c7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1249,7 +1249,7 @@ bool AtlasTexture::is_pixel_opaque(int p_x, int p_y) const {
}
Ref<Image> AtlasTexture::get_image() const {
if (!atlas.is_valid()) {
if (!atlas.is_valid() || !atlas->get_image().is_valid()) {
return Ref<Image>();
}