Add usage of log macros, next files.
This commit is contained in:
@@ -142,7 +142,7 @@ void MS3DImporter :: ReadComments(StreamReaderLE& stream, std::vector<T>& outp)
|
||||
stream >> index >> clength;
|
||||
|
||||
if(index >= outp.size()) {
|
||||
DefaultLogger::get()->warn("MS3D: Invalid index in comment section");
|
||||
ASSIMP_LOG_WARN("MS3D: Invalid index in comment section");
|
||||
}
|
||||
else if (clength > stream.GetRemainingSize()) {
|
||||
throw DeadlyImportError("MS3D: Failure reading comment, length field is out of range");
|
||||
@@ -408,7 +408,7 @@ void MS3DImporter::InternReadFile( const std::string& pFile,
|
||||
// 2 ------------ convert to proper aiXX data structures -----------------------------------
|
||||
|
||||
if (need_default && materials.size()) {
|
||||
DefaultLogger::get()->warn("MS3D: Found group with no material assigned, spawning default material");
|
||||
ASSIMP_LOG_WARN("MS3D: Found group with no material assigned, spawning default material");
|
||||
// if one of the groups has no material assigned, but there are other
|
||||
// groups with materials, a default material needs to be added (
|
||||
// scenepreprocessor adds a default material only if nummat==0).
|
||||
|
||||
Reference in New Issue
Block a user