Move message about missing normal maps to infostream instead of errorstream.
authorRealBadAngel <maciej.kasatkin@o2.pl>
Mon, 5 May 2014 10:37:12 +0000 (12:37 +0200)
committerRealBadAngel <maciej.kasatkin@o2.pl>
Mon, 5 May 2014 17:25:18 +0000 (19:25 +0200)
src/tile.cpp

index 78aa4d94659fd10a23203b7e9294a771c3e72a5c..cff45dc762e3c79db1149dbb89cd08a606dfb28a 100644 (file)
@@ -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