Remove duplicate WARN_PRINTS macro
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user