[3.x] Fix AtlasTexture get_data crash

This commit is contained in:
boruok 2021-09-30 22:22:10 +09:00
parent 0a7c6c0f1d
commit 85dd970b81
1 changed files with 1 additions and 1 deletions

View File

@ -960,7 +960,7 @@ bool AtlasTexture::has_filter_clip() const {
} }
Ref<Image> AtlasTexture::get_data() const { Ref<Image> AtlasTexture::get_data() const {
if (!atlas.is_valid()) { if (!atlas.is_valid() || !atlas->get_data().is_valid()) {
return Ref<Image>(); return Ref<Image>();
} }