Remove duplicate WARN_PRINT macro.
This commit is contained in:
parent
5af3b4ca27
commit
f0db13502a
37 changed files with 64 additions and 69 deletions
|
|
@ -1879,7 +1879,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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue