Merge pull request #53258 from boruok/3.x-fix-atlas-texture-get_data-crash
This commit is contained in:
commit
8d0b2edfc2
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue