Skip to content
Permalink
Browse files

Move message about missing normal maps to infostream instead of error…

…stream.
  • Loading branch information...
RealBadAngel committed May 5, 2014
1 parent 6f511b1 commit c80d67f48e2011c88bbb9e755ee4f5e7f5391f63
Showing with 11 additions and 5 deletions.
  1. +11 −5 src/tile.cpp
@@ -973,13 +973,19 @@ bool TextureSource::generateImage(std::string part_of_name, video::IImage *& bas
}
}

if(image == NULL)
{
if(part_of_name != ""){
errorstream<<"generateImage(): Could not load image \""
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"
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

0 comments on commit c80d67f

Please sign in to comment.
You can’t perform that action at this time.