mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Fix property warnings and hide some debug prints
"ALL IS GOOD" was a lie. In particular, removes verbose "path not recognized" false positive. The actual logic is to (somewhat naively) check all ResourceFormatLoaders and to pick the first good match, so no need to warn about the formats that do not match the type hint.
This commit is contained in:
@@ -87,9 +87,11 @@ static Image _webp_lossy_unpack(const PoolVector<uint8_t> &p_buffer) {
|
||||
ERR_FAIL_V(Image());
|
||||
}
|
||||
|
||||
//print_line("width: "+itos(features.width));
|
||||
//print_line("height: "+itos(features.height));
|
||||
//print_line("alpha: "+itos(features.has_alpha));
|
||||
/*
|
||||
print_line("width: "+itos(features.width));
|
||||
print_line("height: "+itos(features.height));
|
||||
print_line("alpha: "+itos(features.has_alpha));
|
||||
*/
|
||||
|
||||
PoolVector<uint8_t> dst_image;
|
||||
int datasize = features.width * features.height * (features.has_alpha ? 4 : 3);
|
||||
@@ -130,9 +132,11 @@ Error ImageLoaderWEBP::load_image(Image *p_image, FileAccess *f) {
|
||||
ERR_FAIL_V(ERR_FILE_CORRUPT);
|
||||
}
|
||||
|
||||
/*
|
||||
print_line("width: " + itos(features.width));
|
||||
print_line("height: " + itos(features.height));
|
||||
print_line("alpha: " + itos(features.has_alpha));
|
||||
*/
|
||||
|
||||
src_w = PoolVector<uint8_t>::Write();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user