Fix loading of fallback image in exported builds
This commit is contained in:
@@ -30,7 +30,8 @@ func GetRemoteImage(url):
|
|||||||
error = image.load_jpg_from_buffer(res[3])
|
error = image.load_jpg_from_buffer(res[3])
|
||||||
if error != OK:
|
if error != OK:
|
||||||
print("Error fetching image ", str(error))
|
print("Error fetching image ", str(error))
|
||||||
image.load("res://assets/fallback_card.png")
|
image = load("res://assets/fallback_card.png")
|
||||||
image.save_png(outFile)
|
else:
|
||||||
print("Saved new image to cache. " + outFile)
|
image.save_png(outFile)
|
||||||
|
print("Saved new image to cache. " + outFile)
|
||||||
return image
|
return image
|
||||||
|
|||||||
Reference in New Issue
Block a user