File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -1208,17 +1208,17 @@ bool TextureSource::generateImagePart(std::string part_of_name,
1208
1208
#endif
1209
1209
if (image == NULL ) {
1210
1210
if (part_of_name != " " ) {
1211
- if (part_of_name.find (" _normal.png" ) == std::string::npos){
1212
- errorstream<<" generateImage(): Could not load image \" "
1213
- <<part_of_name<<" \" " <<" while building texture" <<std::endl;
1214
- errorstream<<" generateImage(): Creating a dummy"
1215
- <<" image for \" " <<part_of_name<<" \" " <<std::endl;
1216
- } else {
1217
- infostream<<" generateImage(): Could not load normal map \" "
1218
- <<part_of_name<<" \" " <<std::endl;
1219
- infostream<<" generateImage(): Creating a dummy"
1220
- <<" normal map for \" " <<part_of_name<<" \" " <<std::endl;
1211
+
1212
+ // Do not create normalmap dummies
1213
+ if (part_of_name.find (" _normal.png" ) != std::string::npos) {
1214
+ warningstream << " generateImage(): Could not load normal map \" "
1215
+ << part_of_name << " \" " << std::endl;
1216
+ return true ;
1221
1217
}
1218
+
1219
+ errorstream << " generateImage(): Could not load image \" "
1220
+ << part_of_name << " \" while building texture; "
1221
+ " Creating a dummy image" << std::endl;
1222
1222
}
1223
1223
1224
1224
// Just create a dummy image
You can’t perform that action at this time.
0 commit comments