mirror of
https://github.com/godotengine/godot.git
synced 2026-01-08 00:25:01 +03:00
[3.x] Fix AtlasTexture get_data crash
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user