1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-23 08:08:47 -05:00

Move message about missing normal maps to infostream instead of errorstream.

This commit is contained in:
RealBadAngel 2014-05-05 12:37:12 +02:00
parent 6f511b1d05
commit c80d67f48e

View File

@ -973,13 +973,19 @@ bool TextureSource::generateImage(std::string part_of_name, video::IImage *& bas
}
}
if(image == NULL)
{
if(part_of_name != ""){
if (image == NULL) {
if (part_of_name != "") {
if (part_of_name.find("_normal.png") == std::string::npos){
errorstream<<"generateImage(): Could not load image \""
<<part_of_name<<"\""<<" while building texture"<<std::endl;
errorstream<<"generateImage(): Creating a dummy"
<<" image for \""<<part_of_name<<"\""<<std::endl;
} else {
infostream<<"generateImage(): Could not load normal map \""
<<part_of_name<<"\""<<std::endl;
infostream<<"generateImage(): Creating a dummy"
<<" normal map for \""<<part_of_name<<"\""<<std::endl;
}
}
// Just create a dummy image