You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Fix AtlasTexture get_data() crash
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user