Merge pull request #53259 from boruok/fix-atlas-texture-get_data-crash
This commit is contained in:
commit
a201f30c7f
1 changed files with 1 additions and 1 deletions
|
@ -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>();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue