Remove duplicate WARN_PRINTS macro

This commit is contained in:
Marcel Admiraal
2021-06-18 12:26:58 +01:00
parent fc95c4d84c
commit 7e03bd1671
37 changed files with 65 additions and 74 deletions

View File

@ -2042,7 +2042,7 @@ Image::AlphaMode Image::detect_alpha() const {
Error Image::load(const String &p_path) {
#ifdef DEBUG_ENABLED
if (p_path.begins_with("res://") && ResourceLoader::exists(p_path)) {
WARN_PRINTS("Loaded resource as image file, this will not work on export: '" + p_path + "'. Instead, import the image file as an Image resource and load it normally as a resource.");
WARN_PRINT("Loaded resource as image file, this will not work on export: '" + p_path + "'. Instead, import the image file as an Image resource and load it normally as a resource.");
}
#endif
return ImageLoader::load_image(p_path, this);