[3.x] Fix AtlasTexture get_data crash
This commit is contained in:
parent
0a7c6c0f1d
commit
85dd970b81
|
@ -960,7 +960,7 @@ bool AtlasTexture::has_filter_clip() const {
|
|||
}
|
||||
|
||||
Ref<Image> AtlasTexture::get_data() const {
|
||||
if (!atlas.is_valid()) {
|
||||
if (!atlas.is_valid() || !atlas->get_data().is_valid()) {
|
||||
return Ref<Image>();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue