Don't load materials without a name
This commit is contained in:
@@ -215,11 +215,11 @@ SGMakeSign(SGMaterialLib *matlib, const string& path, const string& content)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SGMaterial *material = NULL;
|
|
||||||
|
|
||||||
if (newmat.size()) {
|
if (newmat.size() == 0 )
|
||||||
material = matlib->find(newmat);
|
continue;
|
||||||
}
|
|
||||||
|
SGMaterial *material = matlib->find(newmat);
|
||||||
if (!material) {
|
if (!material) {
|
||||||
SG_LOG(SG_TERRAIN, SG_ALERT, SIGN "ignoring unknown material `" << newmat << '\'');
|
SG_LOG(SG_TERRAIN, SG_ALERT, SIGN "ignoring unknown material `" << newmat << '\'');
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user