2
0
Эх сурвалжийг харах

Merge pull request #53258 from boruok/3.x-fix-atlas-texture-get_data-crash

Rémi Verschelde 4 жил өмнө
parent
commit
8d0b2edfc2

+ 1 - 1
scene/resources/texture.cpp

@@ -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>();
 	}